Who gets into Trino
and what they can query.
Four scenarios: login through LDAP, login through Active Directory, access control through Ranger, and how certificates reach the pod. Each one covers: the chart default, what changes in the cluster, and the values file commented line by line.
The tdp-trino chart starts Trino without authentication. Security is enabled on three fronts, all in the values file: LDAP (or Active Directory) authenticates who signs in, HTTPS protects the password in transit, and Ranger decides what each user can query. When any of them is enabled, certificates, passwords and secrets become deployment prerequisites.
Your environment
If you fill in your environment details here, the page's examples and commands use what you entered. The namespace, release name and values file are your choices, not the chart's.
Scenarios
- 1 · LDAP login
- 2 · Active Directory
- 3 · Ranger
- 4 · Certificates
HTTPS in the coordinator, PASSWORD authentication type, and an authenticator pointing to the directory.
This tab makes Trino ask for a username and password and validate them against the company's LDAP directory. By default, Trino does not request a password: anyone reaching the Service's HTTP port (service.port) supplies any username and queries.
You want only people with a directory account to sign in. Trino only validates passwords over HTTPS. So requiring login means enabling three things currently disabled, all in the coordinator, the pod that receives the queries:
- HTTPS, with a keystore (the file containing the certificate and key) supplied through a Secret;
- the
PASSWORDauthentication type; - the
password-authenticator.propertiesfile, which tells Trino where the LDAP server is and how to build each user's DN.
The workers, the pods that run the queries, remain unchanged.
HTTP on the service.port port, empty authenticationType, no keystore, no authenticator file.
HTTPS on the server.config.https.port port, with the keystore from the tdp-trino-certs-secret Secret, authenticationType: PASSWORD, the authenticator pointing to your server, and an internal secret shared by the coordinator and workers.
The login path, with and without LDAP
Who can query
- Who queries. Provides any username, without a password, over HTTP, on the port defined in service.port. Chart default:
no login (HTTP). - Coordinator. No authentication: accepts any username. Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers.
Who can query: Anyone (default)
- Who queries. Provides any username, without a password, over HTTP, on the port defined in service.port. Chart default:
no login (HTTP). - Coordinator. No authentication: accepts any username. Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers.
Who can query: LDAP users only
- Who queries. Provides a username and password; the coordinator only accepts them over HTTPS, on the port defined in server.config.https.port. Chart default:
no login (HTTP). - Coordinator. Validates the username and password in the directory before accepting the query (authenticationType PASSWORD). Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers. - Keystore Secret. Created by you before deployment. The chart mounts it directly at /etc/trino/certs in the coordinator; Trino reads the HTTPS certificate and key from it. Chart default:
does not exist. (tdp-trino.coordinator.additionalVolumes) - LDAP server. The coordinator builds the user's DN from the bind pattern and attempts authentication with the supplied password. Chart default:
none. (password-authenticator.properties → ldap.user-bind-pattern)
Anyone (default). The coordinator answers over HTTP on the service.port port and accepts any username, without a password. Anyone: Best suited when Trino runs in a lab or in a closed cluster.
1tdp-trino:2server:3 config:4 https:5 enabled: false6 authenticationType: ""
The coordinator serves only HTTP, on the service.port port.
- HTTPS disabled (linha 5). The coordinator serves only HTTP, on the service.port port.
- No authenticator (linha 6). Empty: Trino accepts any username, without a password. To require login, switch above to LDAP users only.
LDAP users only. At each login, the coordinator builds the user's DN from the bind pattern and tries to authenticate against the LDAP server with the password supplied. To do so, it answers over HTTPS on the server.config.https.port port, with the keystore mounted from the Secret. LDAP users only: Best suited when Trino leaves the lab and only people with a company directory account may query.
1tdp-trino:2server:3 config:4 https:5 enabled: true6 port: 84437 keystore:8 path: "/etc/trino/certs/keystore.jks"9 authenticationType: "PASSWORD"1011additionalConfigProperties:12 - "internal-communication.shared-secret=<SHARED_SECRET>"13 - "http-server.https.keystore.key=<KEYSTORE_PASSWORD>"1415coordinator:16 additionalVolumes:17 - name: data-volume18 emptyDir: {}19 - name: trino-certs20 secret:21 secretName: tdp-trino-certs-secret2223 additionalVolumeMounts:24 - name: data-volume25 mountPath: /data/trino26 - name: trino-certs27 mountPath: /etc/trino/certs28 readOnly: true2930 additionalConfigFiles:31 password-authenticator.properties: |32 password-authenticator.name=ldap33 ldap.url=ldap://<LDAP_HOST>:38934 ldap.allow-insecure=true35 ldap.user-bind-pattern=uid=${USER},cn=users,cn=accounts,dc=<LDAP_DOMAIN>,dc=com3637 # LDAP timeouts and caching38 ldap.cache-ttl=1h39 ldap.timeout.connect=1m40 ldap.timeout.read=1m
Enables the coordinator's HTTPS port and points to the keystore mounted from the Secret. Without HTTPS, Trino refuses password authentication.
- HTTPS (linha 4). Enables the coordinator's HTTPS port and points to the keystore mounted from the Secret. Without HTTPS, Trino refuses password authentication.
- authenticationType (linha 9). PASSWORD enables the password authenticator. The file below specifies that LDAP validates the password.
- Internal secret (linha 12). Shared key between the coordinator and workers. Generate a strong value and keep it outside the page.
- Keystore password (linha 13). The keystore.jks password. Rotate it periodically.
- data-volume (linha 17). The chart already provides this volume. Because Helm replaces the entire list, repeat it here. The same applies to worker lists.
- Certificates Secret (linha 19). Created in the first procedure step, with keystore.jks. Scenario 4 shows the PVC alternative.
- Authenticator (linha 30). The password-authenticator.properties file reaches the coordinator through additionalConfigFiles.
- LDAP server (linha 33). Server address as seen from inside the cluster. In production, prefer LDAPS and remove allow-insecure.
- Bind pattern (linha 35). How the username entered becomes a DN in your directory: ${USER} is replaced with the name supplied in the client. Replace the domain with your own. Active Directory uses a different pattern (scenario 2).
Create the Secret containing the keystore
The keystore is mounted from the Secret in the coordinator, so the Secret must exist before deployment.
kubectl create secret generic tdp-trino-certs-secret \
--from-file=keystore.jks=<LOCAL_PATH>/keystore.jks \
--namespace <NAMESPACE>
Add the LDAP block to the values file
Replace the secret, server and domain placeholders with your own.
<LDAP_HOST> is the LDAP address as seen from inside the cluster; <LDAP_DOMAIN>, the directory DN components; <SHARED_SECRET>, a strong value for Trino's internal communication; <KEYSTORE_PASSWORD>, the keystore password.
Apply to the release
The coordinator restarts with HTTPS.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
The coordinator ConfigMap contains password-authenticator.properties and an LDAP user can sign in through the HTTPS port (server.config.https.port). The Service name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino.
kubectl -n <NAMESPACE> get configmap
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-tdp-trino 8443:8443 &
trino --server https://localhost:8443 \
--user <LDAP_USER> \
--password \
--insecure
To return to HTTP
Remove the HTTPS, authenticationType and authenticator settings from the file and run helm upgrade -f again. Clients return to the HTTP port (service.port).
allow-insecure-over-http is no shortcut for skipping HTTPShttp-server.authentication.allow-insecure-over-http=true exists as a Trino flag, but is not a safe way to avoid the HTTPS configuration above. With the flag enabled, the X-Trino-User/X-Trino-Password header login path accepts any username and password combination, including a nonexistent user: the flag does not relax transport security, it disables password checking. Standard HTTP Basic Auth still refuses to send passwords over plain HTTP in this mode ("Password not allowed for insecure authentication"), but the header path does not. Never use this flag outside a fully trusted and isolated environment.
The same login, with the bind pattern AD accepts and a PKCS12 keystore.
The company directory is Active Directory (AD). Configuration starts from the LDAP configuration (scenario 1) and requires one adjustment in password-authenticator.properties. Without it, login does not work.
- Bind pattern. AD builds the DN from
CN, notuid, so theuid=${USER},…pattern from scenario 1 does not work against it. Binding can useuserPrincipalName(usuario@dominio) directly, without a technical account or search step. Setldap.user-bind-pattern=${USER}@<DOMAIN>.<TLD>.
HTTPS, the internal secret and the procedure are the same as in scenario 1. The keystore can be PKCS12 (keystore.p12, which openssl generates without keytool or Java), just as valid as JKS. The example below uses this format. The complete file follows, with each line explained.
Login through Active Directory
- Who queries. Provides a username and password; the coordinator only accepts them over HTTPS, on the port defined in server.config.https.port. Chart default:
no login (HTTP). - Coordinator. Validates the username and password in the directory before accepting the query (authenticationType PASSWORD). Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers. - Keystore Secret. Created by you before deployment. The chart mounts it directly at /etc/trino/certs in the coordinator; Trino reads the HTTPS certificate and key from it. Chart default:
does not exist. (tdp-trino.coordinator.additionalVolumes) - Active Directory. The coordinator binds with the userPrincipalName (usuario@dominio), without a technical account or search step. Chart default:
none. (password-authenticator.properties → ldap.user-bind-pattern)
1tdp-trino:2server:3 config:4 authenticationType: "PASSWORD"5 https:6 enabled: true7 port: 84438 keystore:9 path: "/etc/trino/certs/keystore.p12"1011coordinator:12 additionalVolumes:13 - name: data-volume14 emptyDir: {}15 - name: trino-certs16 secret:17 secretName: tdp-trino-certs-secret18 additionalVolumeMounts:19 - name: data-volume20 mountPath: /data/trino21 - name: trino-certs22 mountPath: /etc/trino/certs23 readOnly: true24 additionalConfigFiles:25 password-authenticator.properties: |26 password-authenticator.name=ldap27 ldap.url=ldap://<AD_HOST>:38928 ldap.allow-insecure=true29 ldap.user-bind-pattern=${USER}@<DOMAIN>.<TLD>30 ldap.cache-ttl=1h31 ldap.timeout.connect=1m32 ldap.timeout.read=1m3334additionalConfigProperties:35 - "internal-communication.shared-secret=<SHARED_SECRET>"36 - "http-server.https.keystore.key=<KEYSTORE_PASSWORD>"
A .p12 generated with openssl works like a .jks. The file name must match the one used when creating the Secret.
- PKCS12 keystore (linha 9). A .p12 generated with openssl works like a .jks. The file name must match the one used when creating the Secret.
- data-volume (linha 13). Repeated because Helm replaces the entire list.
- Domain controller (linha 27). AD address as seen from inside the cluster.
- UPN bind (linha 29). The username entered becomes usuario@dominio and binding is direct. This is the line that differs from generic LDAP. The uid=… pattern does not work in AD.
- Secrets (linha 35). Same as scenario 1: internal secret and keystore password, outside the page.
The procedure is the same as in scenario 1. With a PKCS12 keystore, the Secret stores the file with the same name defined in keystore.path:
kubectl create secret generic tdp-trino-certs-secret \
--from-file=keystore.p12=<LOCAL_PATH>/keystore.p12 \
--namespace <NAMESPACE>
Then add the block to the values file and apply it with helm upgrade --install … -f <VALUES_FILE>.
Centralized policies: who can read what, with auditing.
Login says who signs in. Ranger says what each person can do. Apache Ranger stores centralized policies (which catalogs, schemas and tables each user or group can read) and records audit events. In Trino it acts as an authorization plugin, enabled in tdp-trino.accessControl, and reads the XML files listed in ranger.plugin.config.resource. The security file, containing the Ranger URL and superusers, reaches the coordinator through additionalConfigFiles. The chart example uses HTTPS with the keystore from the PVC in scenario 4.
Empty accessControl: without the plugin, every authenticated user can query everything.
Ranger deployed and accessible; certificates generated (in the example, the trino_cert.jks keystore); the tdp-trino-certs-secret Secret created with them.
The Ranger policies on the coordinator
- Who queries. Provides a username and password; the coordinator only accepts them over HTTPS, on the port defined in server.config.https.port. Chart default:
no login (HTTP). - Coordinator. Validates the username and password in the directory before accepting the query (authenticationType PASSWORD). With the Ranger plugin, checks policies before executing each query. Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers. - Certificates Secret. Created by you before deployment, with the keystore and other TLS files. Chart default:
does not exist. (trinoCerts.secret.name: tdp-trino-certs-secret) - Copy Job. Pre-install and pre-upgrade hook: copies files from the Secret (mounted at /tmp/certs) to the PVC (mounted at /etc/trino/ssl). Without a command, it copies nothing. Chart default:
disabled. (trinoCerts.copyJob.command) - Certificates PVC. Persistent volume mounted in the coordinator; Trino reads the keystore from it. Chart default:
disabled (trino-certs-pvc, size in trinoCerts.pvc.size). (trinoCerts.pvc.enabled: true) - LDAP server. The coordinator builds the user's DN from the bind pattern and attempts authentication with the supplied password. Chart default:
none. (password-authenticator.properties → ldap.user-bind-pattern) - Apache Ranger. Stores access policies. The plugin in the coordinator checks them through the URL in ranger-trino-security.xml and records audit events. Chart default:
disabled (empty accessControl). (tdp-trino.accessControl)
1trinoCerts:2pvc:3 enabled: true4 size: "1Gi"5secret:6 enabled: true7 name: "tdp-trino-certs-secret"8copyJob:9 enabled: true10 # The Secret is mounted at /tmp/certs and the PVC at /etc/trino/ssl11 command: |12 cp /tmp/certs/* /etc/trino/ssl/1314tdp-trino:15server:16 config:17 https:18 enabled: true19 port: 844320 keystore:21 path: "/etc/trino/ssl/trino_cert.jks"22 key: "<KEYSTORE_PASSWORD>"23 authenticationType: "PASSWORD"2425accessControl:26 type: properties27 properties: |28 access-control.name=ranger29 ranger.service.name=dev_trino30 ranger.plugin.config.resource=/etc/trino/ranger-trino-security.xml,/etc/trino/ranger-trino-audit.xml,/etc/trino/ranger-policymgr-ssl.xml3132coordinator:33 additionalVolumes:34 - name: data-volume35 emptyDir: {}36 - name: trino-certs37 persistentVolumeClaim:38 claimName: trino-certs-pvc39 additionalVolumeMounts:40 - name: data-volume41 mountPath: /data/trino42 - name: trino-certs43 mountPath: /etc/trino/ssl44 additionalConfigFiles:45 ranger-trino-security.xml: |46 <?xml version="1.0" encoding="UTF-8"?>47 <configuration>48 <property>49 <name>ranger.plugin.trino.policy.rest.url</name>50 <value>http://<RANGER_RELEASE>-ranger.<NAMESPACE>.svc.cluster.local:6080</value>51 </property>52 <property>53 <name>ranger.plugin.trino.super.users</name>54 <value>admin</value>55 </property>56 </configuration>
The scenario 4 block: the Job copies files from the Secret to the PVC before deployment.
- Certificates through PVC (linha 1). The scenario 4 block: the Job copies files from the Secret to the PVC before deployment.
- HTTPS (linha 17). The keystore is read from the PVC at /etc/trino/ssl, and its password goes in keystore.key.
- Authorization plugin (linha 25). access-control.name=ranger enables the plugin. ranger.service.name is the Trino service name registered in Ranger.
- Configuration files (linha 30). The XML files the plugin reads. ranger-trino-security.xml reaches the coordinator through additionalConfigFiles below. The list also includes ranger-trino-audit.xml and ranger-policymgr-ssl.xml.
- PVC in the coordinator (linha 37). The trino-certs volume becomes the PVC instead of the Secret.
- Ranger URL (linha 50). The Ranger Service in the cluster. Replace the release and namespace with your own.
- Superusers (linha 54). Users the Ranger plugin treats as superusers, in ranger.plugin.trino.super.users.
Create the Secret containing the certificates
The copy Job reads from this Secret.
kubectl create secret generic tdp-trino-certs-secret \
--from-file=trino_cert.jks=<LOCAL_PATH>/trino_cert.jks \
--namespace <NAMESPACE>
Prepare the values file
The block above, with the service registered in Ranger, the Ranger URL and the keystore password.
If login uses LDAP or AD, also add the authenticator from scenarios 1 or 2. Ranger authorizes already authenticated users.
Apply to the release
The copy Job runs before deployment and the coordinator starts with the plugin.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
Running and Ranger rejects a query by a user without a policy.If policies are not enforced
Check that ranger.service.name is the Trino service registered in Ranger and that the Ranger URL in ranger-trino-security.xml points to its Service.
How the keystore and other TLS files reach the coordinator pod.
This tab decides how the keystore and other TLS files reach the coordinator pod. HTTPS, LDAP and Ranger need a keystore and sometimes other TLS files. The chart does not generate certificates: it organizes how existing files reach the pod, with two paths.
By default, the trinoCerts parameters stay disabled and the Secret is mounted directly in the coordinator, as in scenarios 1 and 2. For LDAP or AD login, that is enough. In the second path, the trinoCerts block creates a PVC (persistent volume) and a copy Job. Before each installation or upgrade, the Job copies the files from the Secret to the PVC, and the coordinator mounts the PVC. This is the path used in the Ranger example.
TLS encrypts the connection between client and server, and HTTPS is HTTP over TLS. The certificate identifies the coordinator to connecting clients and lets them trust it. The keystore is the password-protected JKS or PKCS12 file containing that certificate and the coordinator's private key. The truststore holds the certificates Trino trusts when acting as another service's client, such as the plugin connection to Ranger.
trinoCerts.pvc, trinoCerts.secret and trinoCerts.copyJob disabled. The expected Secret name is tdp-trino-certs-secret. The PVC name is trino-certs-pvc, with size defined in trinoCerts.pvc.size.
The keystore on the coordinator
How the keystore reaches the coordinator
- Who queries. Provides a username and password; the coordinator only accepts them over HTTPS, on the port defined in server.config.https.port. Chart default:
no login (HTTP). - Coordinator. Validates the username and password in the directory before accepting the query (authenticationType PASSWORD). Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers. - Keystore Secret. Created by you before deployment. The chart mounts it directly at /etc/trino/certs in the coordinator; Trino reads the HTTPS certificate and key from it. Chart default:
does not exist. (tdp-trino.coordinator.additionalVolumes) - LDAP server. The coordinator builds the user's DN from the bind pattern and attempts authentication with the supplied password. Chart default:
none. (password-authenticator.properties → ldap.user-bind-pattern)
How the keystore reaches the coordinator: Directly mounted Secret
- Who queries. Provides a username and password; the coordinator only accepts them over HTTPS, on the port defined in server.config.https.port. Chart default:
no login (HTTP). - Coordinator. Validates the username and password in the directory before accepting the query (authenticationType PASSWORD). Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers. - Keystore Secret. Created by you before deployment. The chart mounts it directly at /etc/trino/certs in the coordinator; Trino reads the HTTPS certificate and key from it. Chart default:
does not exist. (tdp-trino.coordinator.additionalVolumes) - LDAP server. The coordinator builds the user's DN from the bind pattern and attempts authentication with the supplied password. Chart default:
none. (password-authenticator.properties → ldap.user-bind-pattern)
How the keystore reaches the coordinator: PVC prepared by copyJob
- Who queries. Provides a username and password; the coordinator only accepts them over HTTPS, on the port defined in server.config.https.port. Chart default:
no login (HTTP). - Coordinator. Validates the username and password in the directory before accepting the query (authenticationType PASSWORD). Chart default:
HTTP without authentication, empty accessControl. (tdp-trino.server.config.authenticationType: PASSWORD) - Workers. Execute queries. None of this page's scenarios changes the workers; only the coordinator authenticates and authorizes. Chart default:
initial count in server.workers. - Certificates Secret. Created by you before deployment, with the keystore and other TLS files. Chart default:
does not exist. (trinoCerts.secret.name: tdp-trino-certs-secret) - Copy Job. Pre-install and pre-upgrade hook: copies files from the Secret (mounted at /tmp/certs) to the PVC (mounted at /etc/trino/ssl). Without a command, it copies nothing. Chart default:
disabled. (trinoCerts.copyJob.command) - Certificates PVC. Persistent volume mounted in the coordinator; Trino reads the keystore from it. Chart default:
disabled (trino-certs-pvc, size in trinoCerts.pvc.size). (trinoCerts.pvc.enabled: true) - LDAP server. The coordinator builds the user's DN from the bind pattern and attempts authentication with the supplied password. Chart default:
none. (password-authenticator.properties → ldap.user-bind-pattern)
Directly mounted Secret
The Secret is mounted directly in the coordinator, in additionalVolumes/additionalVolumeMounts, as in scenarios 1 and 2. Directly mounted Secret: Best suited when the keystore serves LDAP or AD login.
Create the Secret with the files:
kubectl create secret generic tdp-trino-certs-secret \
--from-file=keystore.jks=<LOCAL_PATH>/keystore.jks \
--namespace <NAMESPACE>
1tdp-trino:2coordinator:3 additionalVolumes:4 - name: data-volume5 emptyDir: {}6 - name: trino-certs7 secret:8 secretName: tdp-trino-certs-secret910 additionalVolumeMounts:11 - name: data-volume12 mountPath: /data/trino13 - name: trino-certs14 mountPath: /etc/trino/certs15 readOnly: true
The chart already provides this volume. Because Helm replaces the entire list, repeat it here.
- data-volume (linha 4). The chart already provides this volume. Because Helm replaces the entire list, repeat it here.
- Secret (linha 6). The Secret created above, mounted as a volume.
- Path (linha 14). Where the keystore appears in the coordinator. This is the path used in server.config.https.keystore.path.
PVC prepared by copyJob
The copy Job mounts the Secret at /tmp/certs and the PVC at /etc/trino/ssl. The copy command is yours: without it, the Job copies nothing. PVC prepared by copyJob: Best suited when Trino uses integrations that require a keystore, such as the Ranger in the chart example.
kubectl create secret generic tdp-trino-certs-secret \
--from-file=trino_cert.jks=<LOCAL_PATH>/trino_cert.jks \
--namespace <NAMESPACE>
1trinoCerts:2pvc:3 enabled: true4 size: "1Gi"5secret:6 enabled: true7 name: "tdp-trino-certs-secret"8copyJob:9 enabled: true10 # The Secret is mounted at /tmp/certs and the PVC at /etc/trino/ssl11 command: |12 cp /tmp/certs/* /etc/trino/ssl/
The trinoCerts block belongs at the root of the values file, outside the chart prefix.
- File root (linha 1). The trinoCerts block belongs at the root of the values file, outside the chart prefix.
- PVC (linha 2). Creates the trino-certs-pvc persistent volume. Requires a StorageClass available in the cluster.
- Secret (linha 5). References the Secret you created. The Job mounts it at /tmp/certs.
- Copy Job (linha 8). Pre-install and pre-upgrade hook. Runs before each helm install or upgrade.
- Command (linha 11). What to copy. Without this value, the Job runs but copies nothing.
With the PVC ready, the coordinator mounts it instead of the Secret and Trino reads the keystore from /etc/trino/ssl. Scenario 3 shows the complete block.
When something goes wrong
Troubleshooting
Paste the error message or choose a symptom. The answer includes the cause, what to do and the command.
- LDAP login fails. Cause: LDAP URL, bind pattern, connectivity or user permissions. In Active Directory, the DN comes from CN, and the generic uid=… pattern does not work. What to do: Test binding with the DN built from ldap.user-bind-pattern. In Active Directory, use the full UPN (usuario@dominio) in ldap.user-bind-pattern, as in scenario 2.
- Pod does not start with LDAP. Cause: The keystore Secret does not exist in the namespace, its file does not have the name used in https.keystore.path, or http-server.https.keystore.key is not the keystore password. What to do: Check that the Secret exists, that the file has the name used in https.keystore.path and that the password in http-server.https.keystore.key is the keystore password.
- Client cannot connect. Cause: Wrong port for the mode in use. What to do: HTTP without login uses the service.port port. HTTPS with LDAP uses server.config.https.port.
- Certificate error. Cause: The file name in the Secret does not match the path in https.keystore.path. What to do: Create the Secret with the file under the same name used in https.keystore.path.
- PVC is not created. Cause: trinoCerts.pvc.enabled disabled, missing StorageClass or failed copy Job. What to do: Check namespace events and the Job log.
- Ranger does not enforce policies. Cause: ranger.service.name differs from the Trino service name registered in Ranger. What to do: Check the service name in the Ranger interface and use the same name in ranger.service.name.
Best practices
- Use LDAPS in production instead of unencrypted LDAP.
- Rotate keystore passwords periodically.
- Restrict the LDAP bind user's permissions.
- Monitor authentication logs.
All parameters
The chart prefix is already filled in. Keys without a prefix belong at the root of the values file.
16 of 16 parameters
| Parameter | Description | Chart default |
|---|---|---|
tdp-trino.server.config.https.enabledHTTPS and login | Enables HTTPS in Trino. Required for LDAP, Ranger and secure exposure | false |
tdp-trino.server.config.https.portHTTPS and login | Trino HTTPS port | 8443 |
tdp-trino.server.config.https.keystore.pathHTTPS and login | Keystore path inside the pod | empty |
tdp-trino.server.config.authenticationTypeHTTPS and login | Authentication type. PASSWORD for LDAP, AD or a password file | empty |
tdp-trino.additionalConfigPropertiesHTTPS and login | Extra Trino properties: shared secret, keystore password | [] |
tdp-trino.coordinator.additionalVolumesFiles in the coordinator | Extra coordinator volumes (Secret or PVC containing certificates) | data-volume (emptyDir em /data/trino) |
tdp-trino.coordinator.additionalVolumeMountsFiles in the coordinator | Extra volume mount points | data-volume at /data/trino |
tdp-trino.coordinator.additionalConfigFilesFiles in the coordinator | Extra coordinator files: LDAP authenticator, Ranger XML files | {} |
tdp-trino.accessControlAuthorization | Authorization configuration (Ranger plugin) | {} |
trinoCerts.pvc.enabledCertificates | Creates a PVC for certificates | false |
trinoCerts.pvc.nameCertificates | PVC name | trino-certs-pvc |
trinoCerts.pvc.sizeCertificates | PVC size | 1Gi |
trinoCerts.secret.enabledCertificates | Mounts the certificates Secret in the copy Job | false |
trinoCerts.secret.nameCertificates | Certificates Secret name | tdp-trino-certs-secret |
trinoCerts.copyJob.enabledCertificates | Runs the Job that prepares the PVC | false |
trinoCerts.copyJob.commandCertificates | Copy Job shell commands (Secret mounted at /tmp/certs, PVC at /etc/trino/ssl) | not set (copies nothing) |