Repository navigation
feat(auth): Route service account URLs to control silo - #127716
Merged
Merged
Conversation
The service account management endpoints live in the control silo. List them in the generated control silo URL patterns so the frontend sends them to control.
trevor-e
approved these changes
Oct 16, 2026
gricha
added a commit
that referenced
this pull request
Oct 16, 2026
Mocked service account APIs behind `organizations:service-accounts`.
They return canned, fully typed responses and persist nothing, so Seer
can build against the contract while the real implementation lands
behind it.
- **Management** (control silo): `GET/POST
/organizations/{org}/service-accounts/` and `GET/PUT/DELETE .../{id}/`.
Reads need `org:read`, writes need `org:admin`. An optional `projectIds`
limits project access when the org doesn't have open membership (ignored
when it does, like team membership for people). You can only grant
scopes and projects you have.
- **Viewer context** (cell silo, Seer only): `POST
.../{id}/viewer-context/`. This is the service account counterpart of
agent token minting. Seer sends its org-only ViewerContext and gets back
`{viewerContext, expiresAt, scopes}`. It lives in the cell because Seer
only reaches its region's Sentry. Until the service account actor
exists, it returns Seer's own ViewerContext.
`owner` is a placeholder until the owning team has a tag.
Design: [Service
accounts](https://app.notion.com/p/sentry/Service-accounts-3ca8b10e4b5d81c88869fc35039c1cf8),
[build
order](https://app.notion.com/p/3f98b10e4b5d813596a8c966e8ff67db).
Depends on #127716 (control silo URL patterns, frontend), which lands
first.
---------
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
RudraPatel2003
pushed a commit
that referenced
this pull request
Oct 19, 2026
Lists the service account management routes in the control silo URL patterns, so the frontend sends them to control. Frontend half of #127588, split out because frontend and backend deploy separately. It lands first: the patterns are harmless before the backend routes exist, and #127588's `test_no_missing_urls` passes once this is in.
RudraPatel2003
pushed a commit
that referenced
this pull request
Oct 19, 2026
Mocked service account APIs behind `organizations:service-accounts`.
They return canned, fully typed responses and persist nothing, so Seer
can build against the contract while the real implementation lands
behind it.
- **Management** (control silo): `GET/POST
/organizations/{org}/service-accounts/` and `GET/PUT/DELETE .../{id}/`.
Reads need `org:read`, writes need `org:admin`. An optional `projectIds`
limits project access when the org doesn't have open membership (ignored
when it does, like team membership for people). You can only grant
scopes and projects you have.
- **Viewer context** (cell silo, Seer only): `POST
.../{id}/viewer-context/`. This is the service account counterpart of
agent token minting. Seer sends its org-only ViewerContext and gets back
`{viewerContext, expiresAt, scopes}`. It lives in the cell because Seer
only reaches its region's Sentry. Until the service account actor
exists, it returns Seer's own ViewerContext.
`owner` is a placeholder until the owning team has a tag.
Design: [Service
accounts](https://app.notion.com/p/sentry/Service-accounts-3ca8b10e4b5d81c88869fc35039c1cf8),
[build
order](https://app.notion.com/p/3f98b10e4b5d813596a8c966e8ff67db).
Depends on #127716 (control silo URL patterns, frontend), which lands
first.
---------
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lists the service account management routes in the control silo URL patterns, so the frontend sends them to control.
Frontend half of #127588, split out because frontend and backend deploy separately. It lands first: the patterns are harmless before the backend routes exist, and #127588's
test_no_missing_urlspasses once this is in.