-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
chore: remove CssTemplate and Annotation access from gamma role #24826
chore: remove CssTemplate and Annotation access from gamma role #24826
Conversation
@lilykuang what's the difference (from a Gamma role perspective) between providing access to these lists and say charts or dashboards. |
fdcc6cc
to
e3a30cc
Compare
Codecov Report
@@ Coverage Diff @@
## master #24826 +/- ##
==========================================
- Coverage 69.00% 68.99% -0.01%
==========================================
Files 1906 1906
Lines 74134 74134
Branches 8208 8208
==========================================
- Hits 51153 51152 -1
- Misses 20858 20859 +1
Partials 2123 2123
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
7feba28
to
60ff3a0
Compare
60ff3a0
to
a5512db
Compare
@john-bodley this is one of those odd cases where the user doesn't have list/menu view access, but has access to the underlying data, which they shouldn't have. So it's just aligning the existing view perms with the underlying data. |
"Queries", | ||
"ReportSchedule", | ||
"TableSchemaView", | ||
"Upload a CSV", |
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.
yey for alphabetization! 🙏
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.
LGTM!
(cherry picked from commit 6ac906f)
Sorry for being late to the party @lilykuang @eschutho , but would it be a good idea to include this change in |
@michael-s-molina if, per @villebro's comment, this is deemed breaking change, wouldn't this need to wait until Superset 4.0? |
@lilykuang @eschutho @john-bodley @michael-s-molina this may well be murky, and I'm not personally super opinionated one way or another, as I don't think these are commonly used perms. but in the past I think we've erred on the side of caution to be as semver compliant as possible. |
I agree that if we think it's a breaking change, then we should wait until 4.0, but my understanding was that the user cannot access these menus from the client, so I don't believe that this change should impact any current workflows. Not sure @lilykuang if you have any other context. Where it does break functionality, is for api usage on these endpoints for /csstemplatemodelview/ and /annotationlayer/ which similar to what @villebro mentioned about the perms, these endpoints aren't widely used. We could leave it in master, but take it out of 2.1.2 or take it out of master and put it in 4.0, or just leave as is. @dpgaspar may have an opinion on this as well. |
This is actually a bug. A Gamma user should not have access to these views and users don't have access to it via the UI. Really don't view it as a breaking change, but a note on UPDATING would have been nice. This was included on 3.0 |
I agree with @dpgaspar here. I don't think this is a breaking change as we shouldn't have granted the access in the first place. It may impact current workflows as @villebro mentioned but that's exactly what I expect this change to do given that these users are accessing resources they shouldn't have access to. |
Thanks for the comments @dpgaspar and @michael-s-molina - in other words it sounds like this can be thought of as a security fix of sorts. For future reference, let's try to add a note in |
SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION