-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 query integrity check in AccessControlManager #13632
Conversation
f065d91
to
2c229ab
Compare
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.
some comments
presto-spi/src/main/java/com/facebook/presto/spi/security/SystemAccessControl.java
Outdated
Show resolved
Hide resolved
presto-main/src/main/java/com/facebook/presto/execution/SqlQueryManager.java
Show resolved
Hide resolved
5ad1dcd
to
afdc6fa
Compare
afdc6fa
to
93d35e3
Compare
The change overall looks good to me. My only concern is with the naming. Lets get some other opinion on this - @highker , @rschlussel - what are your thoughts on this? |
Right, |
93d35e3
to
47a1daf
Compare
47a1daf
to
ce459ec
Compare
yeah, it's not a perfect fit, but I think it's okay. We are basically saying we won't run your query because you don't have a valid token that we're expecting, so it's a form of an access check. |
@highker - can you accept or request changes. I will take over this PR and get it landed |
Rebased and opened #13878 so that I can work with the committers to land this |
This PR adds support to validate query integrity before we execute it. Client will provide certain token in
Identity
(most likely inextraCredentials
).