Repository navigation
feat(service-accounts): Require service_account:write for service account writes - #129481
Merged
Merged
Conversation
…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>
DominikB2014
approved these changes
Nov 2, 2026
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.
Step 6 of the service accounts open-membership vs
allProjectsplan. Create, update and delete on the service account endpoints now requireservice_account:writeinstead oforg: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:adminnow gets a 403 on writes and must requestservice_account:write. The retired Admin role loses write access, which matches the plan. Reads stay onorg:read. The move toservice_account:readis 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]