-
Notifications
You must be signed in to change notification settings - Fork 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
Cleanup file access control #5039
Conversation
...in-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java
Show resolved
Hide resolved
ee6e12c
to
2c49db5
Compare
...o-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedAccessControl.java
Outdated
Show resolved
Hide resolved
...in-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java
Outdated
Show resolved
Hide resolved
...-toolkit/src/main/java/io/prestosql/plugin/base/security/CatalogSchemaAccessControlRule.java
Outdated
Show resolved
Hide resolved
2c49db5
to
9347c2e
Compare
6bbb705
to
5e2da1a
Compare
ab29061
to
12762aa
Compare
12762aa
to
92cc3e5
Compare
presto-docs/src/main/sphinx/security/file-system-access-control.rst
Outdated
Show resolved
Hide resolved
presto-docs/src/main/sphinx/security/file-system-access-control.rst
Outdated
Show resolved
Hide resolved
presto-docs/src/main/sphinx/security/file-system-access-control.rst
Outdated
Show resolved
Hide resolved
presto-docs/src/main/sphinx/security/file-system-access-control.rst
Outdated
Show resolved
Hide resolved
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.
A bunch of minor suggestions for docs submitted. I have not looked at the code...
92cc3e5
to
db77636
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.
LGTM for first 3 commits. Up to Change catalog check to match other checks
. If you could merge them, then it will be easier to continue with that. It is quite hard for me to digest it all at once.
presto-plugin-toolkit/src/test/resources/file-based-system-no-access.json
Show resolved
Hide resolved
...in-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java
Show resolved
Hide resolved
...o-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedAccessControl.java
Show resolved
Hide resolved
...ugin-toolkit/src/test/java/io/prestosql/plugin/base/security/TestFileBasedAccessControl.java
Show resolved
Hide resolved
...oolkit/src/test/java/io/prestosql/plugin/base/security/TestFileBasedSystemAccessControl.java
Show resolved
Hide resolved
@kokosing I prefer to wait until you are done, and then I will merge... the first couple are simple cleanups, and I don't really want to split the PR. |
Code has been significantly updated since review
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.
Just few comments.
presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/ImpersonationRule.java
Outdated
Show resolved
Hide resolved
...o-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedAccessControl.java
Show resolved
Hide resolved
...in-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java
Show resolved
Hide resolved
...ugin-toolkit/src/test/java/io/prestosql/plugin/base/security/TestFileBasedAccessControl.java
Show resolved
Hide resolved
...oolkit/src/test/java/io/prestosql/plugin/base/security/TestFileBasedSystemAccessControl.java
Show resolved
Hide resolved
db77636
to
f9fa302
Compare
Place check catalog method near other checks
Old camel case names are still supported
Changed file based access control to check for table ownership to create, rename, or drop tables or views.
Only show tables the user has permissions on
If no catalog rules are defined, allow all catalog access
Table and schema default to allow if there are no rules defined, so replace Optional empty with an allow allow rule
System access control defaults to allow if no rules are defined for table, schema, and session property
Catalog file access control is static and not used in combination with other access control systems, so grant and revoke are denied.
f9fa302
to
a4bc95a
Compare
👍 |
No description provided.