-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix admin integrations #10076
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
Fix admin integrations #10076
Conversation
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
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.
Pull Request Overview
This PR fixes admin integration access by replacing the special admin token handling with a proper service-based approach. The changes ensure that admin operations use the 'admin' service designation instead of a generic admin flag.
- Replaced admin-specific token handling with service-based authentication
- Updated integration test utilities to use the new service account client approach
- Added 'admin' as a recognized service in the integration services list
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| ws-tests/api-tests/src/tests/rest.test.ts | Updated admin token generation to include service designation |
| tests/sanity/tests/integrations.spec.ts | Replaced admin account client with service account client for GitHub |
| tests/sanity/tests/API/AccountClient.ts | Added new service account client function for service-based authentication |
| tests/sanity/package.json | Added server-token dependency for token generation |
| server/account/src/utils.ts | Removed admin bypass logic and added 'admin' to integration services |
| server/account/src/serviceOperations.ts | Added admin check bypass for social ID operations |
| server/account/src/operations.ts | Added 'admin' service to allowed services lists |
| server/account/src/tests/utils.test.ts | Removed test for deprecated admin bypass functionality |
Files not reviewed (1)
- common/config/rush/pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
|
Connected to Huly®: UBERF-13928 |
No description provided.