Skip to content

Commit

Permalink
Ranger plugin: added Apache Ranger authorizer plugin implementation - t…
Browse files Browse the repository at this point in the history
…rinodb#22674 (RANGER-4816)
  • Loading branch information
mneethiraj committed Sep 3, 2024
1 parent 8994e73 commit 4d12e62
Show file tree
Hide file tree
Showing 21 changed files with 4,031 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/trino-server/src/main/provisio/trino.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@
</artifact>
</artifactSet>

<artifactSet to="plugin/ranger">
<artifact id="${project.groupId}:trino-ranger:zip:${project.version}">
<unpack />
</artifact>
</artifactSet>

<artifactSet to="plugin/raptor-legacy">
<artifact id="${project.groupId}:trino-raptor-legacy:zip:${project.version}">
<unpack />
Expand Down
1 change: 1 addition & 0 deletions plugin/trino-ranger/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
25 changes: 25 additions & 0 deletions plugin/trino-ranger/README.md
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
````
Loading

0 comments on commit 4d12e62

Please sign in to comment.