-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(superuser): Being superuser:read even if you're org owner results in fewer permissions #87689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… in fewer permissions
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #87689 +/- ##
===========================================
+ Coverage 51.76% 67.99% +16.22%
===========================================
Files 9882 9885 +3
Lines 561062 561429 +367
Branches 22134 22134
===========================================
+ Hits 290421 381725 +91304
+ Misses 270240 179303 -90937
Partials 401 401 |
Is this a recent regression? |
result = self.from_request(request, self.org) | ||
assert result.scopes == SUPERUSER_READONLY_SCOPES | ||
assert result.scopes == set(member.get_scopes()).union(SUPERUSER_READONLY_SCOPES) | ||
|
||
# readonly scopes does not override owner scopes if passed in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: update comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
… in fewer permissions (#87689) If you're in superuser mode with only `superuser.read` permissions, and you're browsing a Sentry organization where you're the owner, you'll find that you have fewer permissions than expected. ### Before  ### After  --------- Co-authored-by: Raj Joshi <[email protected]>
If you're in superuser mode with only
superuser.read
permissions, and you're browsing a Sentry organization where you're the owner, you'll find that you have fewer permissions than expected.Before
After