Repository navigation
ref(auth): Simplify dashboard scopes to read and write - #129012
Merged
DominikB2014 merged 1 commit intoOct 28, 2026
Merged
DominikB2014 merged 1 commit into
DominikB2014 merged 1 commit into
Conversation
Replace dashboard:create, dashboard:update and dashboard:delete with dashboard:write. dashboard:read covers viewing dashboards, and dashboard:write covers creating, updating and deleting them. The scope lists, hierarchy, granular roles, OAuth consent groups, org:read translation and dashboard endpoint scope maps are updated. The separate create permission is no longer needed. Refs ENG-8922
DominikB2014
marked this pull request as ready for review
October 28, 2026 15:42
Contributor
decision-model-lintersecurity
decision-model-linter: 17 calls on 6 files, 36,237 input tokens, $0.0015, model typesafe/jev-1.13-20260917 |
skaasten
approved these changes
Oct 28, 2026
DominikB2014
deleted the
dominikbuszowiecki/eng-8922-simplify-dashboard-scopes-to-dashboardread-and
branch
October 28, 2026 17:00
DominikB2014
added a commit
that referenced
this pull request
Oct 28, 2026
) Dashboard scopes are simplified to `dashboard:read` and `dashboard:write` in #129012. The granular token UI now offers Dashboards as Read or Write, and Write requests `dashboard:read` and `dashboard:write`. Today the Write level also requests `dashboard:create`, which #129012 unregisters, so creating such a token would fail. **Merge after #129012 is deployed.** Until then, Write requests `dashboard:write`, which isn't registered yet. The UI is behind `organizations:granular-permission-scopes-ui`. Refs ENG-8922
3 tasks done
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.
We're starting dashboards with read/write scopes instead of full CRUD, and can make them more granular later. This replaces
dashboard:create,dashboard:updateanddashboard:deletewithdashboard:write:dashboard:readlists and views dashboards.dashboard:writecreates, updates and deletes dashboards, and impliesdashboard:read.Changes
SENTRY_SCOPES,GRANULAR_SCOPES, the scope hierarchy, scope sets,ApiScopesand the granular roles inconf/server.pynow listdashboard:readanddashboard:write.org:readtranslation addsdashboard:readanddashboard:write.dashboard:writefor POST, PUT and DELETE, and the starred endpoint accepts it for PUT.OrganizationDashboardsCreatePermissiononly existed to acceptdashboard:create, so it's removed.Rollout
dashboard:write. Neither was updated for thedashboard:updaterename (ref(auth): Rename dashboard:write scope to dashboard:update #128801), so this restores update access for members of flagged orgs and makes the token UI's Write level work again.dashboard:createanddashboard:deletefrom its granular roles, and a frontend PR offers only Read and Write. Neither is needed for this PR to work.dashboard:create,dashboard:updateordashboard:deletelose dashboard access. The granular scope flags are only enabled for test orgs and users, so these are test tokens.Refs ENG-8922