Skip to content

feat(service-accounts): Require service_account:write for service account writes - #129481

Merged
skaasten merged 1 commit into
masterfrom
feat/service-account-write-scope
Nov 2, 2026
Merged

skaasten merged 1 commit into
masterfrom
feat/service-account-write-scope

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Step 6 of the service accounts open-membership vs allProjects plan. Create, update and delete on the service account endpoints now require service_account:write instead of org:admin. The scope landed in #129204 and is granted to Manager and Owner.

This is a contract change for token callers: a token or org API key with only org:admin now gets a 403 on writes and must request service_account:write. The retired Admin role loses write access, which matches the plan. Reads stay on org:read. The move to service_account:read is a separate follow-up.

This PR does not depend on #129343 (access based on allProjects). It touches the same endpoint file as #129460, but not the same lines.

via shaun.kaasten.

--

View Session [Sentry]

…ount writes

Create, update and delete now require service_account:write instead of
org:admin. Manager and Owner hold the new scope. API tokens and keys that
manage service accounts must request service_account:write; org:admin no
longer grants these writes. Reads stay on org:read.

Co-Authored-By: Shaun Kaasten <shaun.kaasten@sentry.io>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 2, 2026
@skaasten
skaasten merged commit f8c0d1a into master Nov 2, 2026
74 checks passed
@skaasten
skaasten deleted the feat/service-account-write-scope branch November 2, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants