-
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
Clarify docs for multiple access controls #24549
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,29 @@ cluster nodes: | |
access-control.name=allow-all | ||
``` | ||
|
||
Multiple system access control implementations may be configured at once | ||
using the `access-control.config-files` configuration property. It should | ||
contain a comma separated list of the access control property files to use | ||
(rather than the default `etc/access-control.properties`). | ||
(multiple-access-control)= | ||
## Multiple access control systems | ||
|
||
Multiple system access control implementations may be configured at once using | ||
the `access-control.config-files` configuration property. It must contain a | ||
comma-separated list of the access control property files to use, rather than | ||
the default `etc/access-control.properties`. Relative paths from the Trino | ||
`INSTALL_PATH` or absolute paths are supported. | ||
|
||
The configured access control systems are used in order until access rights are | ||
either granted or denied, and must use different types. Each system is | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is actually "access is granted if none of the access controls denies it" - or: all access controls must allow. But if there are no access controls at all, all access is allowed. That's at the engine level (which is of interest here) and not to be confused with how each individual access control works. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what you mean by "different types"? |
||
configured in a separate configuration file. | ||
|
||
For example, you can combine `file` access control and `ranger` | ||
access control with the two separate configuration files `file-based.properties` | ||
and `ranger.properties`, but you can not use two separate file-based access | ||
control configurations. | ||
|
||
```properties | ||
access-control.config-files=etc/file-based.properties,etc/ranger.properties | ||
``` | ||
|
||
## Available access control systems | ||
|
||
Trino offers the following built-in system access control implementations: | ||
|
||
|
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.
I am not sure about this .. also would be good to explain more with an example.
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.
I believe this is true, but ordering shouldn't matter. Each access control is independent from the others.