-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add row-level security filter in query #17564
Merged
Merged
Changes from 19 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
3eb0b66
add row-level security filter
cecemei dd251c2
Add getPermissionErrorMessage method to AuthorizationResult, and use …
cecemei b19728b
policy change
cecemei aae0bb1
minor change, Optional.stream is not supported java8
cecemei c7dc930
Merge remote-tracking branch 'apache/master' into security3
cecemei af51747
update test case for JoinDataSource since it has a new JoinAlgorithm …
cecemei 92077ed
fix a bug in AuthorizationResult
cecemei a470236
fix style and bug
cecemei 0664dfc
Policy change
cecemei e7ebcf8
Added a Policy class to wrap the filter, updated some Javadoc
cecemei cfe8e73
Merge branch 'master' into security2
cecemei 5199354
fix test
cecemei 390caac
remove VIEW from restricted applicable resource types, add tests for …
cecemei 6bdc39d
Merge branch 'master' into security2
cecemei e81a25d
add Permission enum in AuthorizationResult class, add TablePolicySecu…
cecemei ec6e3b5
reverted changes in SegmentMetadataQuery, since now query from druid-…
cecemei f1aa791
revert change in test as well
cecemei a1b3b06
clean up a bit
cecemei 17313d9
updated the AuthorizationResult class a bit, along with some tests
cecemei 2eaf63a
update on RestrictedSegment to implement SegmentReference directly.
cecemei 6407479
Update Policy inteface and added NoRestrictionPolicy and RowFilterPol…
cecemei 009e8db
added back AuthResult class, and some javadoc
cecemei cedf9bb
minor update
cecemei e275b1f
add visit(CursorBuilderSpec) to policy interface, and add tests for p…
cecemei 0d26d74
format
cecemei ab8eed1
Remove TablePolicySecurityLevel enum and add tests in QueryLifecycleT…
cecemei 18c4828
Update QueryResource to check for basic access, native json query sho…
cecemei 3ba7d35
rename isUserWithNoRestriction to allowAccessWithNoRestriction
cecemei 43c0312
In DataSource interface, rename mapWithRestriction to withPolicies.
cecemei ced5172
Merge remote-tracking branch 'apache/master' into security2
cecemei 196604f
Merge remote-tracking branch 'apache/master' into security2
cecemei cbce573
remove NullHandling.initializeForTests
cecemei 0443967
fix calcite test
cecemei 530fcba
javadoc updates
cecemei 9b7652c
javadoc updates
cecemei 57574d6
update animal-sniffer-maven-plugin
cecemei b19f657
javadoc update
cecemei a1359a6
revert change in SegmentMetadataQuery style change
cecemei afe8f64
update javadoc, and a few small edits
cecemei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
its weird that we throw a 401 if there is a permission error message. There should be a function available in AuthorizationResult to directly return a boolean indicating whether user is authorized or not.