Skip to content

feat(service-accounts): Add settings pages to list and create service accounts - #130140

Closed
sentry-junior[bot] wants to merge 6 commits into
masterfrom
feat/service-accounts-settings-list-create
Closed

sentry-junior[bot] wants to merge 6 commits into
masterfrom
feat/service-accounts-settings-list-create

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Rough draft of the service account settings UI, hidden behind service accounts feature flag.

List (/settings/{org}/service-accounts/)
Create (/settings/{org}/service-accounts/new/)
Nav: "Service Accounts" sits under Members and is shown only when the org has organizations:service-accounts.

Not in this PR: the details page, edit, delete and tokens.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ no issues found

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 6, 2026
@sentry-junior
sentry-junior Bot force-pushed the feat/service-accounts-settings-list-create branch from 7801878 to c6d16ee Compare November 6, 2026 18:47
@github-actions github-actions Bot removed the Scope: Backend Automatically applied to PRs that change backend components label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

No findings on the latest commit.

@sentry-junior

sentry-junior Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Re the decision-model-linter voice warning: I'm keeping "Service Accounts" as is. Every other item in userOrgNavigationConfiguration.tsx uses title case ("API Keys", "Audit Log", "Organization Tokens", and so on), so switching just this one to sentence case would look inconsistent in the nav. If the nav moves to sentence case, that should happen in its own change.

skaasten added a commit that referenced this pull request Nov 9, 2026
Sets `api_expose=True` on `organizations:service-accounts` so the flag
shows up in `organization.features` on the frontend.

The settings pages in #130140 use this flag to show the "Service
Accounts" nav item. Without it, the item stays hidden even for orgs with
the flag enabled. This was split out of #130140 so that PR stays
frontend-only. Either PR can deploy first: if the frontend ships first,
the nav item just stays hidden until this lands.

Nothing else changes. Backend checks still go through
`features.has(...)`.

<!-- junior-request-attribution:start -->
via **shaun.kaasten**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0CA89MBDQB%3A1793911581.772709 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CA89MBDQB%3A1793911581.772709)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CA89MBDQB%3A1793911581.772709/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: Shaun Kaasten <[email protected]>
Co-authored-by: Shaun Kaasten <[email protected]>
@sentry-junior
sentry-junior Bot force-pushed the feat/service-accounts-settings-list-create branch from 83ccd6f to d6f239e Compare November 9, 2026 15:06
@skaasten
skaasten marked this pull request as ready for review November 9, 2026 15:53
@skaasten
skaasten requested a review from a team as a code owner November 9, 2026 15:53

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d6f239e. Configure here.

sentry-junior Bot and others added 3 commits November 12, 2026 17:07
… accounts

Rough draft of the service account settings UI, wired to the existing
control-silo endpoints. The list page shows each account's scopes,
project access and creation date. The create page takes a name, project
access (specific projects or all projects) and permissions, and posts
to /organizations/{org}/service-accounts/.

The nav item is behind organizations:service-accounts. Tokens come in a
later PR.

Co-Authored-By: Shaun Kaasten <[email protected]>
Parse the API error detail with zod and check the org's access through a
Set<string>, so neither page needs an `as` cast.

Co-Authored-By: Shaun Kaasten <[email protected]>
…cess

Add service_account:read and service_account:write to ALLOWED_SCOPES so the
frontend Scope type knows about them, and use the standard access helper
instead of reading organization.access by hand.

Co-Authored-By: Shaun Kaasten <[email protected]>
sentry-junior Bot and others added 3 commits November 12, 2026 17:07
A duplicate name or bad projectIds error already shows on its field, so the
generic failure toast on top of it was noise. Toast only for string details,
scope errors, and responses with no field to attach to.
Pick service account scopes from a searchable multi-select that starts
with read scopes, the same field the Seer automation form uses, instead
of the integration permission dropdowns. The grantable-scope filter,
read defaults and option list move to a shared scopes module that both
forms import, and a scopes error from the API now shows on the field.

Co-Authored-By: Shaun Kaasten <[email protected]>
master replaced field.Radio.Group and field.Radio.Item with the
type-safe field.RadioGroup (#130231), so the project access radios
move to it and pass field.handleChange directly.
@sentry-junior

sentry-junior Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing: #131795 (list and details pages) and #131876 (create, edit, delete) replace this PR. Both are merged.

@sentry-junior sentry-junior Bot closed this Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 03abc087 Deployed Nov 12, 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.

0 participants