kumaab opened a new pull request, #895: URL: https://github.com/apache/ranger/pull/895
## What changes were proposed in this pull request? Atlas added support for Trino entity-types via [ATLAS-5021](https://issues.apache.org/jira/browse/ATLAS-5021). To enable use of tag-based access and masking policies in Ranger plugin for Trino, Ranger tagsync should be updated to process Atlas notifications for following Trino entity types: ``` trino_instance trino_catalog trino_schema trino_table trino_column ``` ## How was this patch tested? - successful build - tested with CLI in `kafka` container using below configs: ``` kinit -kt /etc/keytabs/kafka.keytab kafka/[email protected] cat >/tmp/kafka-client-jaas.conf <<'EOF' KafkaClient { com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true storeKey=true serviceName="kafka" keyTab="/etc/keytabs/kafka.keytab" principal="kafka/[email protected]"; }; EOF cat >/tmp/kafka-client.properties <<'EOF' security.protocol=SASL_PLAINTEXT sasl.mechanism=GSSAPI sasl.kerberos.service.name=kafka EOF export KAFKA_OPTS="-Djava.security.krb5.conf=/etc/krb5.conf -Djava.security.auth.login.config=/tmp/kafka-client-jaas.conf" cat <<'EOF' | /opt/kafka/bin/kafka-console-producer.sh --bootstrap-server ranger-kafka.rangernw:9092 --topic ATLAS_ENTITIES --producer.config /tmp/kafka-client.properties {"version":{"version":"1.0.0"},"msgCreationTime":1710000002000,"spooled":false,"message":{"type":"ENTITY_NOTIFICATION_V2","operationType":"CLASSIFICATION_ADD","eventTime":1710000002000,"entity":{"typeName":"trino_column","guid":"32222222-2222-2222-2222-222222222224","status":"ACTIVE","displayText":"customer_id","isIncomplete":false,"attributes":{"qualifiedName":"sales.reporting.orders.customer_id@dev"},"classificationNames":["SENSITIVE"],"classifications":[{"typeName":"SENSITIVE","entityGuid":"32222222-2222-2222-2222-222222222224","entityStatus":"ACTIVE","propagate":false,"removePropagationsOnEntityDelete":false,"attributes":{"kind":"customer"}}]}}} EOF ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
