-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[server] move FGA calls into AuthProviderService #19017
Conversation
DI issue to be solved:
✅ |
3d48608
to
931fbcb
Compare
@AlexTugarev is good to review? asking because it is still in draft |
53e3ecb
to
42b51f3
Compare
37433cc
to
ab06e0b
Compare
ab06e0b
to
a5ac3da
Compare
* split internal upsert method `updateAuthProvider` into create and update * refactor: move `getAuthProviders` logic from gitpod-server-impl to auth-provider-service * adding db tests for auth provider server * use redacted results in service
a5ac3da
to
341a5bd
Compare
@mustard-mh it would be good if you review code and test as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been testing with Anton and one situation was unclear which deserves to be covered in a test case. |
* as regular member, should find org-level providers if no built-in providers present * as regular member, should find only built-in providers if present
@akosyakov, the behavior we've seen during testing is consistent with previous decisions. I've added test cases to cover the very in b54761f |
@AlexTugarev good, do you need any other support or good to land? |
/unhold |
Description
This change set was extracted out of #19008.
What happens here is a refactoring of the json-rpc api and implementation in order to make it, i.e. the AuthProviderService, reusable to implement the public-api interfaces.
Summary generated by Copilot
🤖 Generated by Copilot at 1010fde
This pull request refactors the auth provider API and the
GitpodServer
interface to improve the security, clarity, and modularity of the auth provider operations. It introduces new methods for managing auth providers at the user and org level, and applies rate limiting and authorization checks to them. It also updates theUserDeletionService
class to use the new method for deleting the user's own auth providers.Related Issue(s)
Fixes #
How to test
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold