Kafka, NiFi, and Trino
with policies in Ranger.
Four scenarios: automatic registration in Ranger Admin and the integration of Kafka, NiFi, and Trino. Each one covers: the chart default, what changes in the cluster, and the values file commented line by line.
The chart tdp-ranger can register the service and policies for each integrated component in Ranger Admin through a Job that runs after installation or upgrade. Each component enables its Ranger plugin in its own chart. For services, policies and plugins, see Ranger - Concepts.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.
Scenarios
- 1 · How it is accessed
- 2 · Kafka
- 3 · NiFi
- 4 · Trino
Each component's plugin, the Job that registers services and policies, and where values are configured.
Components reach Ranger through the Ranger plugin, enabled in each component's chart, which queries the policies for that component's service in Ranger Admin, Ranger's central server. The service and policies can be registered by this chart's integration Job, without using the interface.
By default, the Job and all integrations are disabled, and nothing is registered. When enabled, the Job runs after each release installation or upgrade, waits for the Ranger Admin API to respond, registers services for enabled integrations and creates the policies declared in defaultPolicies. Everything lives in the rangerIntegrations block.
The following tabs provide the values for each integration: Kafka in scenario 2, NiFi in scenario 3 and Trino in scenario 4.
rangerIntegrations.configJob.enabled: false and all integrations disabled: nothing is registered. Enable the Job together with each integration you enable.
The same structure appears in rangerIntegrations, read by the Job and integration ConfigMap; in tdp-ranger.rangerIntegrations, passed to the Apache Ranger subchart; and in global.rangerIntegrations, for subcharts that read global values.
serviceName and serviceDisplayName, connection (protocol and URLs), credentials (username and password) and defaultPolicies (policy list).
With the Job enabled, ranger.adminPassword is required in the values file (scenario 1 of Security - Ranger).
If a technical user or policy cannot be created, the post-install or post-upgrade hook explicitly fails.
The registered services and the plugins
- Integration Job. Runs after each release installation or upgrade. Waits for the Ranger Admin API to respond, registers services for enabled integrations and creates defaultPolicies policies. Chart default:
disabled. (rangerIntegrations.configJob.enabled) - Ranger Admin. Stores one service per integration, with its policies. The Job logs in with user admin and the ranger.adminPassword password. Chart default:
no registered services. (tdp-ranger.ranger.adminPassword) - Kafka. Brokers use the Ranger authorizer and only start after the service and policies exist. The kafka-ui user's password comes from a Secret. Chart default:
disabled. (rangerIntegrations.kafka.enabled) - NiFi. Ranger Admin queries NiFi resources over HTTPS using a client certificate generated by cert-manager with the NiFi Issuer. Chart default:
disabled. (rangerIntegrations.nifi.enabled) - Trino. The Trino coordinator loads the Ranger plugin, configured in the Trino chart. The Ranger service connects to Trino over JDBC. Chart default:
disabled. (rangerIntegrations.trino.enabled)
1rangerIntegrations:2configJob:3 enabled: true4 rangerReadyTimeout: 18005 retryInterval: 106 activeDeadlineSeconds: ""
Without it, enabling an integration does not register anything in Ranger Admin.
- Enable the Job (linha 3). Without it, enabling an integration does not register anything in Ranger Admin.
- Wait for the API (linha 4). How long, in seconds, the Job waits for the Ranger Admin API to respond. Ranger's first startup imports the database schema and takes the longest.
- Interval (linha 5). Interval between attempts, in seconds.
- Overall deadline (linha 6). Deadline for the entire Job. When empty, uses rangerReadyTimeout plus a margin for registering services and policies.
Values for each integration are in scenarios 2 through 4.
The Kafka service, policies and installation order.
You have Kafka in KRaft mode without ZooKeeper and want brokers to use the Ranger authorizer, the plugin that decides, on each request, whether the user can do that, by querying the policies in Ranger Admin. Brokers only start once Ranger has the Kafka service and policies, so installation order matters: first the kafka-ui user Secret, then Ranger with the integration, and finally Kafka.
rangerIntegrations.kafka.enabled: false.
The example uses tdp-kafka, the same name the chart tdp-kafka uses by default in security.authorization.ranger.serviceName.
Comes from the Secret kafka-ui-password, through credentials.existingSecret, and not the values file. The user kafka-ui in Kafka uses the same Secret.
Leave connection.zookeeperConnect empty: the Job only sends zookeeper.connect to Ranger when a value is set.
The Kafka service in Ranger
- Integration Job. Runs after each release installation or upgrade. Waits for the Ranger Admin API to respond, registers services for enabled integrations and creates defaultPolicies policies. Chart default:
disabled. (rangerIntegrations.configJob.enabled) - Ranger Admin. Stores one service per integration, with its policies. The Job logs in with user admin and the ranger.adminPassword password. Chart default:
no registered services. (tdp-ranger.ranger.adminPassword) - Kafka. Brokers use the Ranger authorizer and only start after the service and policies exist. The kafka-ui user's password comes from a Secret. Chart default:
disabled. (rangerIntegrations.kafka.enabled) - NiFi. Ranger Admin queries NiFi resources over HTTPS using a client certificate generated by cert-manager with the NiFi Issuer. Chart default:
disabled. (rangerIntegrations.nifi.enabled) - Trino. The Trino coordinator loads the Ranger plugin, configured in the Trino chart. The Ranger service connects to Trino over JDBC. Chart default:
disabled. (rangerIntegrations.trino.enabled) - kafka-ui user password. Created by you before Ranger and Kafka. The Job reads its password to register the service, and the Kafka kafka-ui user uses the same Secret. Chart default:
none. (rangerIntegrations.kafka.credentials.existingSecret)
1global:2rangerIntegrations:3 kafka:4 enabled: true5 serviceName: "tdp-kafka"6 serviceDisplayName: "TDP Kafka Cluster"7 connection:8 bootstrapServers: "tdp-kafka-kafka-bootstrap.<NAMESPACE>.svc.cluster.local:9092"9 zookeeperConnect: ""10 securityProtocol: "SASL_PLAINTEXT"11 saslMechanism: "SCRAM-SHA-512"12 credentials:13 username: "kafka-ui"14 password: ""15 existingSecret:16 name: "kafka-ui-password"17 passwordKey: "password"18tdp-ranger:19rangerIntegrations:20 kafka:21 enabled: true22 serviceName: "tdp-kafka"23 connection:24 bootstrapServers: "tdp-kafka-kafka-bootstrap.<NAMESPACE>.svc.cluster.local:9092"25 zookeeperConnect: ""26 securityProtocol: "SASL_PLAINTEXT"27 saslMechanism: "SCRAM-SHA-512"28 credentials:29 username: "kafka-ui"30 password: ""31 existingSecret:32 name: "kafka-ui-password"33 passwordKey: "password"34rangerIntegrations:35configJob:36 enabled: true37kafka:38 enabled: true39 serviceName: "tdp-kafka"40 serviceDisplayName: "TDP Kafka Cluster"41 connection:42 bootstrapServers: "tdp-kafka-kafka-bootstrap.<NAMESPACE>.svc.cluster.local:9092"43 zookeeperConnect: ""44 securityProtocol: "SASL_PLAINTEXT"45 saslMechanism: "SCRAM-SHA-512"46 credentials:47 username: "kafka-ui"48 password: ""49 existingSecret:50 name: "kafka-ui-password"51 passwordKey: "password"52 technicalUsers:53 - "kafka-ui"54 - "CN=tdp-kafka-kafka,O=io.strimzi"55 defaultPolicies:56 - name: "kafka-admin-topic"57 description: "Full topic access for admin users"58 resources:59 topic: "*"60 users:61 - "admin"62 - "kafka-ui"63 groups: []64 permissions:65 - "publish"66 - "consume"67 - "create"68 - "delete"69 - "describe"70 - "alter"71 - "alter_configs"72 - "describe_configs"73 - name: "kafka-admin-transactionalid"74 description: "Full transactionalid access for admin users"75 resources:76 transactionalid: "*"77 users:78 - "admin"79 - "kafka-ui"80 groups: []81 permissions:82 - "publish"83 - "describe"84 - name: "kafka-admin-delegationtoken"85 description: "Full delegationtoken access for admin users"86 resources:87 delegationtoken: "*"88 users:89 - "admin"90 - "kafka-ui"91 groups: []92 permissions:93 - "describe"
The same values, for subcharts that read global values.
- Global scope (linha 1). The same values, for subcharts that read global values.
- Service name (linha 5). The service name in Ranger Admin, matching the name Kafka queries.
- No ZooKeeper (linha 9). Empty in KRaft: the Job only sends zookeeper.connect when a value is set.
- Password from Secret (linha 15). The service password comes from the kafka-ui-password Secret, not the values file.
- Subchart (linha 18). Values passed to the Apache Ranger subchart.
- Integration Job (linha 34). Values read by the Job to register the service and policies.
- Enable the Job (linha 36). Required for registration to occur.
- Policies (linha 55). Full access to topics, transactional IDs and delegation tokens for admin and kafka-ui users.
Create the kafka-ui user password Secret
Before both charts, so Ranger registers the service before Kafka exists.
If the namespace does not exist, create it before the Secret with kubectl create namespace <NAMESPACE>.
kubectl -n <NAMESPACE> create secret generic kafka-ui-password --from-literal=password='<KAFKA_UI_PASSWORD>'
Install Ranger with the Kafka integration
The Job creates the service tdp-kafka and policies required by brokers to start.
Use the values file with the integration above.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
Without --version, Helm installs the latest published chart version. The version covered by this documentation is 3.0.3.
Success criteria
The service tdp-kafka appears in Ranger Admin with all three policies.
Se falhar
See When something goes wrong: the integration Job may not have run or may still be waiting for Ranger Admin.
Install Kafka with the Ranger authorizer
With the kafka-ui user using the same Secret.
Configuration for the chart tdp-kafka is in the Ranger scenario in Integrations - Kafka.
Connection only, without policies
To register only the service, without the policies above, values can be passed on the command line:
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> \
--set rangerIntegrations.configJob.enabled=true \
--set rangerIntegrations.kafka.enabled=true \
--set rangerIntegrations.kafka.connection.bootstrapServers=<KAFKA_BOOTSTRAP_SERVERS> \
--set rangerIntegrations.kafka.connection.securityProtocol=SASL_PLAINTEXT
In Ranger ❌ Valor não encontrado para rangerK8sCurrentVersion, Test Connection for a Kafka service without Kerberos always fails: the interface does not use the service username and password. This is a known limitation, not a configuration error. Broker authorization is unaffected because brokers query policies through another client.
The Ranger client certificate and NiFi technical policies.
You want NiFi policies in Ranger, with NiFi authenticating through LDAP or Active Directory. Ranger Admin queries NiFi resources over HTTPS using a client certificate. This certificate is generated by cert-manager, the cluster service that issues certificates, with NiFi's Issuer, the authority that signs its certificates. The chart tdp-ranger creates this certificate, technical users and minimum technical policies. For NiFi, use Ranger authorization mode in Security - NiFi.
rangerIntegrations.nifi.enabled: false and tlsClientCertificate.autoGenerate.enabled: false.
Comes from the Secret ranger-nifi-client-tls-password, which you create beforehand and the chart does not create. The same password generates the JKS files and allows Ranger to open them later, so it remains stable across upgrades and reinstallations.
nifiUrl points to /nifi-api/resources, using a name present in the NiFi certificate SANs: tdp-nifi-headless in the namespace, not the external NiFi Service.
The headless Service and node identities follow NiFi's nifiCluster.service.labels.clusterName with one identity per node in nifiCluster.nodes. If you changed either in the NiFi values file, adjust names in the file below.
NiFi identifies Ranger as CN=ranger-nifi-client. The technical user and policy for /resources use this full identity, which is also the Ranger admin identity configured in NiFi.
CN=ranger-nifi-client in /resources, CN=nifi-controller in /controller and /system, and node identities in /proxy. No policy /flow for people: create it later, using users and groups synchronized in Ranger.
The Ranger client certificate for NiFi
- Integration Job. Runs after each release installation or upgrade. Waits for the Ranger Admin API to respond, registers services for enabled integrations and creates defaultPolicies policies. Chart default:
disabled. (rangerIntegrations.configJob.enabled) - Ranger Admin. Stores one service per integration, with its policies. The Job logs in with user admin and the ranger.adminPassword password. Chart default:
no registered services. (tdp-ranger.ranger.adminPassword) - Kafka. Brokers use the Ranger authorizer and only start after the service and policies exist. The kafka-ui user's password comes from a Secret. Chart default:
disabled. (rangerIntegrations.kafka.enabled) - NiFi. Ranger Admin queries NiFi resources over HTTPS using a client certificate generated by cert-manager with the NiFi Issuer. Chart default:
disabled. (rangerIntegrations.nifi.enabled) - Trino. The Trino coordinator loads the Ranger plugin, configured in the Trino chart. The Ranger service connects to Trino over JDBC. Chart default:
disabled. (rangerIntegrations.trino.enabled) - JKS file password. Created by you before installation, with a stable password. The same password generates the keystore and truststore and allows Ranger to open them later. Chart default:
none. (rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.passwordSecretName) - Ranger certificate. The chart creates the Certificate and cert-manager writes the Secret containing the certificate, key, CA and JKS files. Ranger Admin mounts this Secret. Chart default:
disabled. (rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.enabled)
1global:2rangerIntegrations:3 nifi:4 enabled: true5 serviceName: "tdp_nifi"6 serviceDisplayName: "TDP NiFi Cluster"7 tlsClientCertificate:8 autoGenerate:9 enabled: true10 secretName: "ranger-nifi-client-tls"11 passwordSecretName: "ranger-nifi-client-tls-password"12 passwordSecretKey: "password"13 issuerRef:14 name: "nifi-issuer"15 kind: "Issuer"16 group: "cert-manager.io"17 commonName: "ranger-nifi-client"18 dnsNames:19 - "ranger-nifi-client"20 duration: "2160h"21 renewBefore: "360h"22 usages:23 - "client auth"24 - "digital signature"25 - "key encipherment"26 connection:27 nifiUrl: "https://tdp-nifi-headless.<NAMESPACE>.svc.cluster.local:8443/nifi-api/resources"28 internalUrl: "https://tdp-nifi-headless.<NAMESPACE>.svc.cluster.local:8443/nifi-api/resources"29 authenticationType: "SSL"30 sslUseDefaultContext: "false"31 ssl:32 keystore: "/opt/ranger/certs/keystore.jks"33 keystoreType: "jks"34 keystorePassword: ""35 keystorePasswordSecret:36 name: "ranger-nifi-client-tls-password"37 key: "password"38 truststore: "/opt/ranger/certs/truststore.jks"39 truststoreType: "jks"40 truststorePassword: ""41 truststorePasswordSecret:42 name: "ranger-nifi-client-tls-password"43 key: "password"44 additionalConfigs:45 policy.download.auth.users: "nifi"46 credentials:47 username: ""48 password: ""49tdp-ranger:50extraInitContainers:51 - name: ranger-nifi-client-tls-bootstrap52 image: "registry.tecnisys.com.br/community/images/busybox:1.36"53 command:54 - sh55 - -c56 - |57 set -eu58 cp /opt/ranger/certs-src/keystore.jks /opt/ranger/certs/keystore.jks59 cp /opt/ranger/certs-src/truststore.jks /opt/ranger/certs/truststore.jks60 cp /opt/ranger/certs-src/tls.crt /opt/ranger/certs/tls.crt61 cp /opt/ranger/certs-src/tls.key /opt/ranger/certs/tls.key62 cp /opt/ranger/certs-src/ca.crt /opt/ranger/certs/ca.crt63 chown 1000:1000 /opt/ranger/certs/*64 chmod 0400 /opt/ranger/certs/keystore.jks /opt/ranger/certs/truststore.jks /opt/ranger/certs/tls.key65 chmod 0444 /opt/ranger/certs/ca.crt /opt/ranger/certs/tls.crt66 volumeMounts:67 - name: ranger-nifi-client-tls-src68 mountPath: "/opt/ranger/certs-src"69 readOnly: true70 - name: ranger-nifi-client-tls-runtime71 mountPath: "/opt/ranger/certs"72extraVolumes:73 - name: ranger-nifi-client-tls-src74 secret:75 secretName: "ranger-nifi-client-tls"76 defaultMode: 044077 optional: true78 - name: ranger-nifi-client-tls-runtime79 emptyDir: {}80extraVolumeMounts:81 - name: ranger-nifi-client-tls-runtime82 mountPath: "/opt/ranger/certs"83 readOnly: true84podSecurityContext: {}85rangerIntegrations:86 nifi:87 enabled: true88 serviceName: "tdp_nifi"89 serviceDisplayName: "TDP NiFi Cluster"90 tlsClientCertificate:91 autoGenerate:92 enabled: true93 secretName: "ranger-nifi-client-tls"94 passwordSecretName: "ranger-nifi-client-tls-password"95 passwordSecretKey: "password"96 issuerRef:97 name: "nifi-issuer"98 kind: "Issuer"99 group: "cert-manager.io"100 commonName: "ranger-nifi-client"101 dnsNames:102 - "ranger-nifi-client"103 duration: "2160h"104 renewBefore: "360h"105 usages:106 - "client auth"107 - "digital signature"108 - "key encipherment"109 connection:110 nifiUrl: "https://tdp-nifi-headless.<NAMESPACE>.svc.cluster.local:8443/nifi-api/resources"111 internalUrl: "https://tdp-nifi-headless.<NAMESPACE>.svc.cluster.local:8443/nifi-api/resources"112 authenticationType: "SSL"113 sslUseDefaultContext: "false"114 ssl:115 keystore: "/opt/ranger/certs/keystore.jks"116 keystoreType: "jks"117 keystorePassword: ""118 keystorePasswordSecret:119 name: "ranger-nifi-client-tls-password"120 key: "password"121 truststore: "/opt/ranger/certs/truststore.jks"122 truststoreType: "jks"123 truststorePassword: ""124 truststorePasswordSecret:125 name: "ranger-nifi-client-tls-password"126 key: "password"127 additionalConfigs:128 policy.download.auth.users: "nifi"129 credentials:130 username: ""131 password: ""132rangerIntegrations:133configJob:134 enabled: true135nifi:136 enabled: true137 serviceName: "tdp_nifi"138 serviceDisplayName: "TDP NiFi Cluster"139 technicalUsers:140 - "CN=ranger-nifi-client"141 - "CN=nifi-controller"142 - "CN=tdp-nifi-1-node.tdp-nifi-headless.<NAMESPACE>.svc.cluster.local"143 tlsClientCertificate:144 autoGenerate:145 enabled: true146 secretName: "ranger-nifi-client-tls"147 passwordSecretName: "ranger-nifi-client-tls-password"148 passwordSecretKey: "password"149 issuerRef:150 name: "nifi-issuer"151 kind: "Issuer"152 group: "cert-manager.io"153 commonName: "ranger-nifi-client"154 dnsNames:155 - "ranger-nifi-client"156 duration: "2160h"157 renewBefore: "360h"158 usages:159 - "client auth"160 - "digital signature"161 - "key encipherment"162 connection:163 nifiUrl: "https://tdp-nifi-headless.<NAMESPACE>.svc.cluster.local:8443/nifi-api/resources"164 internalUrl: "https://tdp-nifi-headless.<NAMESPACE>.svc.cluster.local:8443/nifi-api/resources"165 authenticationType: "SSL"166 sslUseDefaultContext: "false"167 ssl:168 keystore: "/opt/ranger/certs/keystore.jks"169 keystoreType: "jks"170 keystorePassword: ""171 keystorePasswordSecret:172 name: "ranger-nifi-client-tls-password"173 key: "password"174 truststore: "/opt/ranger/certs/truststore.jks"175 truststoreType: "jks"176 truststorePassword: ""177 truststorePasswordSecret:178 name: "ranger-nifi-client-tls-password"179 key: "password"180 additionalConfigs:181 policy.download.auth.users: "nifi"182 credentials:183 username: ""184 password: ""185 defaultPolicies:186 - name: "nifi-ranger-resource-browser"187 description: "Allows Ranger's TLS client to discover NiFi resources via /nifi-api/resources"188 resources:189 nifi-resource: "/resources"190 users:191 - "CN=ranger-nifi-client"192 groups: []193 permissions:194 - "read"195 - name: "nifi-controller-cluster"196 description: "Allows nifi-controller to query and coordinate cluster state"197 resources:198 nifi-resource: "/controller"199 users:200 - "CN=nifi-controller"201 groups: []202 permissions:203 - "read"204 - "write"205 - name: "nifi-controller-system"206 description: "Allows nifi-controller to perform internal system calls"207 resources:208 nifi-resource: "/system"209 users:210 - "CN=nifi-controller"211 groups: []212 permissions:213 - "read"214 - "write"215 - name: "nifi-cluster-proxy"216 description: "Allows NiFi cluster nodes to internally proxy authenticated requests"217 resources:218 nifi-resource: "/proxy"219 users:220 - "CN=tdp-nifi-1-node.tdp-nifi-headless.<NAMESPACE>.svc.cluster.local"221 groups: []222 permissions:223 - "read"224 - "write"
The same values, for subcharts that read global values.
- Global scope (linha 1). The same values, for subcharts that read global values.
- Certificado gerado (linha 9). cert-manager generates the Ranger client certificate.
- JKS file password (linha 11). The Secret you create before installation. Do not change this password without reissuing the certificate.
- NiFi Issuer (linha 14). The same cert-manager Issuer used by NiFi.
- Identity (linha 17). The certificate common name must match the Ranger admin identity configured in NiFi.
- NiFi address (linha 27). Points to /nifi-api/resources using a name in the NiFi certificate SANs: the NiFi headless Service in the namespace, not the external Service.
- Authentication (linha 29). Ranger authenticates to NiFi with the client certificate.
- Policy download (linha 45). The user allowed to download policies from Ranger.
- Subchart (linha 49). Values passed to the Apache Ranger subchart: Ranger Admin mounts the certificate Secret at /opt/ranger/certs.
- Integration Job (linha 132). Values read by the Job to register the service, technical users and policies.
- Enable the Job (linha 134). Required for registration to occur.
- Technical users (linha 139). The Job creates these local users in Ranger Admin before policies: the Ranger client, nifi-controller and each NiFi node identity.
- Node identities (linha 142). One line per node declared in NiFi nifiCluster.nodes, in the same format with a different node number. Repeat the same list in the /proxy policy.
- Technical policies (linha 185). Minimum policies for /resources, /controller, /system and /proxy. No /flow policy is created.
- /proxy (linha 218). Read and write access for node identities, matching technicalUsers.
Create the JKS file password Secret
Once, before installation, with a stable password.
If the namespace does not exist, create it before the Secret with kubectl create namespace <NAMESPACE>. The command below can be repeated without error:
kubectl -n <NAMESPACE> create secret generic ranger-nifi-client-tls-password \
--from-literal=password='<JKS_PASSWORD>' \
--dry-run=client -o yaml | kubectl apply -f -
For a command used only on the initial installation, the same Secret can be created without --dry-run:
kubectl -n <NAMESPACE> create secret generic ranger-nifi-client-tls-password \
--from-literal=password='<JKS_PASSWORD>'
Install Ranger with the NiFi integration
The chart creates the client certificate, technical users and technical policies.
Use the values file with the integration above.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
Without --version, Helm installs the latest published chart version. The version covered by this documentation is 3.0.3.
Success criteria
The ranger-nifi-client-tls Certificate exists, and the Secret of the same name contains tls.crt, tls.key, ca.crt, keystore.jks and truststore.jks:
kubectl -n <NAMESPACE> get certificate ranger-nifi-client-tls
kubectl -n <NAMESPACE> describe secret ranger-nifi-client-tls
Install NiFi with Ranger authorization
NiFi now uses Ranger as its policy source.
Configuration for the chart tdp-nifi is in Security - NiFi, in the mode with LDAP or Active Directory authentication and policies in Ranger.
After reinstalling NiFi
Reinstalling NiFi creates a new CA, and the Ranger client certificate is no longer recognized: resource lookup in the policy editor fails with PKIX path building failed. Delete the certificate Secret so cert-manager reissues it with the current CA, and restart Ranger Admin.
Reissue the certificate and restart Ranger Admin
The Secret returns, issued by the current NiFi CA.
kubectl -n <NAMESPACE> delete secret ranger-nifi-client-tls
kubectl -n <NAMESPACE> rollout restart deployment/<RELEASE_NAME>-ranger
Success criteria
The Trino service, with its JDBC connection.
You want Ranger Admin to contain the Trino service to store policies queried by Trino's Ranger plugin. The service connects to Trino through JDBC, Java's interface for connecting to databases. Enable the plugin in the chart tdp-trino, in the Ranger scenario in Security - Trino.
rangerIntegrations.trino.enabled: false, with service tdp_trino and driver io.trino.jdbc.TrinoDriver.
The same name Trino specifies in ranger.service.name, in the accessControl of the Trino chart.
The Trino service in Ranger
- Integration Job. Runs after each release installation or upgrade. Waits for the Ranger Admin API to respond, registers services for enabled integrations and creates defaultPolicies policies. Chart default:
disabled. (rangerIntegrations.configJob.enabled) - Ranger Admin. Stores one service per integration, with its policies. The Job logs in with user admin and the ranger.adminPassword password. Chart default:
no registered services. (tdp-ranger.ranger.adminPassword) - Kafka. Brokers use the Ranger authorizer and only start after the service and policies exist. The kafka-ui user's password comes from a Secret. Chart default:
disabled. (rangerIntegrations.kafka.enabled) - NiFi. Ranger Admin queries NiFi resources over HTTPS using a client certificate generated by cert-manager with the NiFi Issuer. Chart default:
disabled. (rangerIntegrations.nifi.enabled) - Trino. The Trino coordinator loads the Ranger plugin, configured in the Trino chart. The Ranger service connects to Trino over JDBC. Chart default:
disabled. (rangerIntegrations.trino.enabled)
1rangerIntegrations:2configJob:3 enabled: true4trino:5 enabled: true6 serviceName: "tdp_trino"7 serviceDisplayName: "TDP Trino Cluster"8 connection:9 jdbcUrl: "<TRINO_JDBC_URL>"10 jdbcDriverClassName: "io.trino.jdbc.TrinoDriver"11 credentials:12 username: "<TRINO_USER>"13 password: "<TRINO_PASSWORD>"14 defaultPolicies: []
Required for registration to occur.
- Enable the Job (linha 3). Required for registration to occur.
- Service name (linha 6). The same name as ranger.service.name in Trino.
- Connection (linha 9). The Trino JDBC URL.
- Credentials (linha 12). The username and password the service uses to connect to Trino.
- Policies (linha 14). The list of policies created by the Job. When empty, no policy is created.
Install Ranger with the Trino integration
The Job registers the Trino service in Ranger Admin.
Use the values file with the integration above.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ranger \
--version 3.0.3 \
-n <NAMESPACE> \
-f <VALUES_FILE>
Without --version, Helm installs the latest published chart version. The version covered by this documentation is 3.0.3.
Success criteria
The tdp_trino service appears in Ranger Admin.
Enable the Ranger plugin in Trino
The coordinator now queries service policies.
Configuration for the chart tdp-trino is in the Ranger scenario in Security - Trino.
When something goes wrong
Troubleshooting
Paste the error message or choose a symptom. The response includes the cause, action and command.
- The service does not appear in Ranger Admin. Cause: The integration Job only runs with rangerIntegrations.configJob.enabled: true, disabled by default. Enabling only the integration does not register anything. What to do: Enable the Job together with the integration and upgrade the release (scenario 1).
- The integration Job does not complete or times out. Cause: The Job waits for the Ranger Admin API up to rangerReadyTimeout, and Ranger's first startup imports the database schema. The overall Job deadline is activeDeadlineSeconds. What to do: Check whether Ranger Admin responds and, if necessary, increase rangerReadyTimeout or activeDeadlineSeconds (scenario 1).
- The upgrade fails in the integration hook. Cause: If a technical user or policy cannot be created, the post-install or post-upgrade hook explicitly fails. What to do: Read the Job log to identify the failed user or policy and correct the values file.
- Kafka brokers do not start with the Ranger authorizer. Cause: Brokers need the Kafka service and policies in Ranger before starting. What to do: Install Ranger with the Kafka integration before Kafka, following the order in scenario 2.
- Kafka service Test Connection always fails. Cause: Known limitation of the Ranger interface for Kafka without Kerberos: the test does not use the service username and password. What to do: No action needed: broker authorization does not depend on this test.
- PKIX path building failed in the NiFi policy editor. Cause: NiFi was reinstalled and created a new CA that no longer recognizes the Ranger client certificate. What to do: Delete the certificate Secret so cert-manager reissues it with the current CA, and restart Ranger Admin (scenario 3).
- Ranger cannot open keystore.jks or truststore.jks. Cause: The password in the ranger-nifi-client-tls-password Secret changed without reissuing the certificate Secret. What to do: Keep the password stable. If it changed, reissue the certificate as described for PKIX (scenario 3).
Integration parameters
Filter by name or group. Keys are at the root of the values file, in the scope read by the Job.
26 of 26 parameters
| Parameter | Description | Chart default |
|---|---|---|
rangerIntegrations.configJob.enabledJob | Enables the integration Job. Enable together with the integration | false |
rangerIntegrations.configJob.imageJob | Job image | registry.tecnisys.com.br/community/images/python:3.11-slim |
rangerIntegrations.configJob.rangerReadyTimeoutJob | How long the Job waits for the Ranger API, in seconds | 1800 |
rangerIntegrations.configJob.activeDeadlineSecondsJob | Overall Job deadline. Empty uses rangerReadyTimeout plus a margin | "" |
rangerIntegrations.configJob.retryIntervalJob | Interval between attempts, in seconds | 10 |
rangerIntegrations.kafka.enabledKafka | Enables the Kafka integration | false |
rangerIntegrations.kafka.serviceNameKafka | Service name in Ranger Admin | tdp_kafka |
rangerIntegrations.kafka.connection.bootstrapServersKafka | Kafka bootstrap address | <kafka-bootstrap-servers> |
rangerIntegrations.kafka.connection.zookeeperConnectKafka | Empty in KRaft | <zookeeper-connect> |
rangerIntegrations.kafka.connection.securityProtocolKafka | Security protocol | PLAINTEXT |
rangerIntegrations.nifi.enabledNiFi | Enables the NiFi integration | false |
rangerIntegrations.nifi.serviceNameNiFi | Service name in Ranger Admin | tdp_nifi |
rangerIntegrations.nifi.serviceDisplayNameNiFi | Service display name in Ranger Admin | TDP NiFi Cluster |
rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.enabledNiFi | Generates the Ranger client certificate with cert-manager | false |
rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.secretNameNiFi | Generated certificate Secret | ranger-nifi-client-tls |
rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.passwordSecretNameNiFi | Secret containing the JKS file password, created by you | ranger-nifi-client-tls-password |
rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.issuerRef.nameNiFi | cert-manager Issuer | nifi-issuer |
rangerIntegrations.nifi.tlsClientCertificate.autoGenerate.commonNameNiFi | Client certificate identity | ranger-nifi-client |
rangerIntegrations.nifi.connection.nifiUrlNiFi | Address of /nifi-api/resources | <nifi-url>/nifi-api/resources |
rangerIntegrations.nifi.connection.authenticationTypeNiFi | Ranger authentication to NiFi | SSL |
rangerIntegrations.nifi.connection.additionalConfigsNiFi | Extra service settings | policy.download.auth.users: nifi |
rangerIntegrations.nifi.defaultPoliciesNiFi | List of policies created by the Job in the service | [] |
rangerIntegrations.trino.enabledTrino | Enables the Trino integration | false |
rangerIntegrations.trino.serviceNameTrino | Service name in Ranger Admin | tdp_trino |
rangerIntegrations.trino.connection.jdbcUrlTrino | Trino JDBC URL | <trino-jdbc-url> |
rangerIntegrations.trino.connection.jdbcDriverClassNameTrino | Driver JDBC | io.trino.jdbc.TrinoDriver |
Next steps
Installation
Ranger configuration
Initial installation, external database and publishing the interface.