Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

No description provided.

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>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
Copy link
Contributor

Copilot AI left a 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>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review October 14, 2025 09:33
@ArtyomSavchenko ArtyomSavchenko merged commit 35cd8a3 into develop Oct 14, 2025
15 checks passed
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13928

@BykhovDenis BykhovDenis deleted the fix-admin-integrations branch October 22, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants