forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ranger plugin: added Apache Ranger authorizer plugin implementation - t…
…rinodb#22674 (RANGER-4816)
- Loading branch information
1 parent
8994e73
commit 4d12e62
Showing
21 changed files
with
4,031 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Apache Ranger authorizer for Trino | ||
This plugin enables Trino to use [Apache Ranger](https://ranger.apache.org/) policies to authorize access to Trino resources like catalogs, schemas, tables, columns. This plugin supports column-masking and row-filtering. | ||
|
||
## Requirements | ||
* Access to an Apache Ranger instance having authorization policies to be enforced by this plugin | ||
* Access to audit stores (Solr/Elasticsearch/S3/HDFS) to save access audit logs | ||
|
||
## Configuration | ||
Add following entries in `/etc/trino/access-control.properties` to configure Apache Ranger as the authorizer in Trino: | ||
|
||
```` | ||
access-control.name ranger | ||
ranger.service_name dev_trino | ||
ranger.security_config /etc/trino/ranger-trino-security.xml | ||
ranger.audit_config /etc/trino/ranger-trino-audit.xml | ||
ranger.policy_mgr_ssl_config /etc/trino/ranger-trino-policymgr-ssl.xml | ||
```` | ||
|
||
Apache Ranger plugin configurations for policy store and audit store should be updated in following configuration files: | ||
```` | ||
/etc/trino/ranger-trino-security.xml | ||
/etc/trino/ranger-trino-audit.xml | ||
/etc/trino/ranger-trino-policymgr-ssl.xml | ||
```` |
Oops, something went wrong.