Skip to content

feat(auth): Route service account URLs to control silo - #127716

Merged
gricha merged 1 commit into
masterfrom
feat/service-account-control-silo-urls
Oct 16, 2026
Merged

gricha merged 1 commit into
masterfrom
feat/service-account-control-silo-urls

Conversation

@gricha

@gricha gricha commented Oct 15, 2026

Copy link
Copy Markdown
Member

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.

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.
@gricha
gricha requested a review from trevor-e October 15, 2026 23:15
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 15, 2026
@gricha
gricha merged commit b5b9a2f into master Oct 16, 2026
81 checks passed
@gricha
gricha deleted the feat/service-account-control-silo-urls branch October 16, 2026 16:44
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

1 active deployment
Preview — 7f7f47ce Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants