-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix(Explore): Apply RLS at column values #30490
Conversation
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! Thanks for this improvement!
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.
Left some comments on how to improve the logic.
…o/fix/rls-at-column-values
0ac0335
to
453ca98
Compare
The changes discussed here were unnecessary as RLS should be applied as-is on the query to respect the original RLS intent.
/testenv up |
@geido Ephemeral environment spinning up at http://35.94.18.43:8080. Credentials are |
I've just tested in the ephemeral and it worked properly for me both when combining multiple RLS conditions with the same group key, or a different group key. Thanks @geido! |
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.
Nice!
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
Ephemeral environment shutdown and build artifacts deleted. |
Oof.. Nice catch + fix @geido! |
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net> (cherry picked from commit f314685)
SUMMARY
When applying a filter, column values would show all possible values without respecting RLS filters. This PR fixes that.
AFTER
rls_after.mp4
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION