Repository navigation
fix(cli): Stop requesting user_preference scopes by default - #2567
Merged
Merged
Conversation
This reverts commit a020760. Adding scopes to the default login set asks every existing user to log in again on their next upgrade, which we don't want to force right now. Co-Authored-By: Dominik Buszowiecki <44422760+DominikB2014@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
DominikB2014
marked this pull request as ready for review
November 27, 2026 18:53
DominikB2014
marked this pull request as draft
November 27, 2026 18:55
The scopes stay out of the default login request, so existing users are not asked to log in again, but `auth login --scope` and `auth refresh --scope` still accept them, and a 403 that needs one points at `auth refresh --scope` with the defaults plus that scope. Co-Authored-By: Dominik Buszowiecki <44422760+DominikB2014@users.noreply.github.com>
DominikB2014
marked this pull request as ready for review
November 27, 2026 18:59
BYK
approved these changes
Nov 27, 2026
BYK
enabled auto-merge (squash)
November 27, 2026 19:06
skaasten
approved these changes
Nov 27, 2026
This branch was successfully deployed
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.
Partially reverts #2503.
#2503 added
user_preference:readanduser_preference:writeto the default login scopes. Because of that, every existing CLI user would be asked to log in again on their nextsentry cli upgrade. We don't want to force that re-auth.This PR takes the two scopes back out of
OAUTH_SCOPES, the default login request, so--read-onlyand the generated scope docs no longer list them either. They stay inSENTRY_SCOPES, so they work as opt-in scopes, the same wayorg:tokensdoes:sentry auth login --scope …andsentry auth refresh --scope …still accept them.user_preference:*as an accepted scope tells the user to runsentry auth refresh --scope <defaults>,user_preference:read.Refs ENG-9142
via @DominikB2014.
--
View Session [Sentry]