-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Cleanup file access control #5039
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
334fc3d
Simplify FileBasedAccessControl
dain 6611817
Fix warnings in FileBasedSystemAccessControl
dain e10a04b
Change catalog check to match other checks
dain 06b1afc
Simplify catalog checks in FileBasedSystemAccessControl
dain 9e4dc78
Simplify query checks in FileBasedSystemAccessControl
dain 4f846b2
Clean up exception messages in FileBasedSystemAccessControl
dain 1c65efa
Change file access control to consistently use snake case
dain 162f3fe
Fix file access control for table create and rename checks
dain a5a0325
Fix system file create schema check
dain 78f61cd
Add missing table checks in file system access control
dain 4b83065
Filter tables in file access control
dain cf812ba
Add catalog regex to schema and table rules in file system access con…
dain 41aa1f9
Allow all catalog access by default in file-based access control
dain a65adc6
Simplify table and schema rules in file system access control
dain 4c24f4f
Change catalog file access default to allow for no rules
dain 6039d26
Only show catalog if user has schema or table permissions
dain a94a921
Only show schema if user is schema owner or has table permissions
dain 7cc4a2b
Deny grant and revoke for catalog file access control
dain b8da3dd
Add session property rules to system file access control
dain a4bc95a
Improve system file based access documentation
dain 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,4 @@ | ||
| { | ||
| "catalogs": [ | ||
| { | ||
| "allow": true | ||
| } | ||
| ], | ||
| "queries": [ | ||
| { | ||
| "user": "admin", | ||
|
|
||
31 changes: 31 additions & 0 deletions
31
presto-docs/src/main/sphinx/security/session-property-access.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "system_session_properties": [ | ||
| { | ||
| "user": "admin", | ||
| "allow": true | ||
| }, | ||
| { | ||
| "user": "banned_user", | ||
| "allow": false | ||
| }, | ||
| { | ||
| "property": "resource_overcommit", | ||
| "allow": true | ||
| } | ||
| ], | ||
| "catalog_session_properties": [ | ||
| { | ||
| "user": "admin", | ||
| "allow": true | ||
| }, | ||
| { | ||
| "user": "banned_user", | ||
| "allow": false | ||
| }, | ||
| { | ||
| "catalog": "hive", | ||
| "property": "bucket_execution_enabled", | ||
| "allow": true | ||
| } | ||
| ] | ||
| } |
5 changes: 0 additions & 5 deletions
5
presto-docs/src/main/sphinx/security/system-information-access.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,4 @@ | ||
| { | ||
| "catalogs": [ | ||
| { | ||
| "allow": true | ||
| } | ||
| ], | ||
| "system_information": [ | ||
| { | ||
| "user": "admin", | ||
|
|
||
21 changes: 8 additions & 13 deletions
21
presto-docs/src/main/sphinx/security/user-impersonation.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,22 @@ | ||
| { | ||
| "catalogs": [ | ||
| { | ||
| "allow": true | ||
| } | ||
| ], | ||
| "impersonation": [ | ||
| { | ||
| "originalUser": "alice", | ||
| "newUser": "bob", | ||
| "original_user": "alice", | ||
| "new_user": "bob", | ||
| "allow": false | ||
| }, | ||
| { | ||
| "originalUser": "bob", | ||
| "newUser": "alice", | ||
| "original_user": "bob", | ||
| "new_user": "alice", | ||
| "allow": false | ||
| }, | ||
| { | ||
| "originalUser": "alice|bob", | ||
| "newUser": ".*" | ||
| "original_user": "alice|bob", | ||
| "new_user": ".*" | ||
| }, | ||
| { | ||
| "originalUser": ".*", | ||
| "newUser": "test" | ||
| "original_user": ".*", | ||
| "new_user": "test" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.