Who reads and writes in Ozone,
checked by the S3 Gateway.
Six scenarios: S3 authentication, protecting the path to S3, authentication in an Ozone that already has data, a key for each application, permissions per bucket, and the company's Kerberos. Each one covers: what the chart already provides, what changes in the cluster, the values file commented line by line, and a step-by-step with verification.
The tdp-ozone chart brings Ozone up with security off: with no Kerberos between the daemons, the S3 Gateway accepts any key, or none. Turning security on means turning on the chart's internal KDC, which gives each daemon its Kerberos identity and makes the Ozone Manager issue and validate real S3 keys. The S3 clients do not change shape: they keep using an access key and a secret key, without a Kerberos ticket.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you entered. The namespace, the release name, and the values file are your choices, not the chart's.
Scenarios
- 1 · S3 keys
- 2 · Network
- 3 · Ozone with data
- 4 · One key per application
- 5 · Permissions per bucket
- 6 · Company Kerberos
Turn on S3 authentication: internal KDC, Kerberos between the daemons, and S3 keys that Ozone validates.
Turning on S3 authentication means making Ozone validate the key of each request and issue the valid keys itself. By default, the S3 Gateway accepts any key, or none: the s3g.auth.enabled parameter already comes on, but alone it does not turn on validation. Apache Ozone only validates S3 keys with security on, and security only accepts Kerberos.
For this, the chart brings an internal, private KDC, only for the Ozone daemons: the Ozone Manager (OM), the Storage Container Manager (SCM), the datanodes, the S3 Gateway, and Recon. It does not touch the company's Kerberos or Active Directory. Kerberos is required only on the server side, for the OM to issue the S3 keys: the S3 clients need no ticket and do not change their configuration. You write a values file, give the KDC master password at deploy time, and check that made-up keys are now rejected.
kerberos.enabled: false. No KDC and no keytabs. The chart does not create the ozone-s3-credentials Secret or the Job that fills it in, and the S3 Gateway accepts any key.
With kerberos.enabled: true and s3g.auth.enabled: false, the S3 Gateway validates the requests, but the chart does not issue credentials: create them as in scenario 4.
The S3 keys with and without the internal KDC
Ozone security
- S3 client. With security off, the S3 Gateway accepts the request with any key, or with none. Chart default:
security off. - S3 Gateway. Without Kerberos, it accepts any request, including one without a signature or with a made-up key. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Without security on, the OM neither issues nor validates S3 keys. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. No Kerberos between the daemons. Chart default:
no Kerberos. - Datanodes. No Kerberos between the daemons. Chart default:
no Kerberos. - Recon. No Kerberos between the daemons. Chart default:
no Kerberos. - Security off. No KDC, no keytabs, no ozone-s3-credentials Secret, and no Job to fill it in. Chart default:
kerberos.enabled: false. (tdp-ozone.kerberos.enabled)
Ozone security: Off (default)
- S3 client. With security off, the S3 Gateway accepts the request with any key, or with none. Chart default:
security off. - S3 Gateway. Without Kerberos, it accepts any request, including one without a signature or with a made-up key. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Without security on, the OM neither issues nor validates S3 keys. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. No Kerberos between the daemons. Chart default:
no Kerberos. - Datanodes. No Kerberos between the daemons. Chart default:
no Kerberos. - Recon. No Kerberos between the daemons. Chart default:
no Kerberos. - Security off. No KDC, no keytabs, no ozone-s3-credentials Secret, and no Job to fill it in. Chart default:
kerberos.enabled: false. (tdp-ozone.kerberos.enabled)
Ozone security: With the internal KDC
- S3 client. The AWS CLI, the SDKs, and the TDP components sign each request with an access key and a secret key (AWS Signature v4). They do not need a Kerberos ticket. Chart default:
security off. - S3 Gateway. Rejects a request without a signature or with a key that the Ozone Manager did not issue. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Issues the S3 keys (ozone s3 getsecret), validates the AWS Signature v4 of each request against the keys it issued, and checks the ACLs of the /s3v volume and of the buckets. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. Authenticates with its own Kerberos principal and signs the OM certificate. Chart default:
no Kerberos. - Datanodes. All the datanodes share the same principal and the same keytab. Chart default:
no Kerberos. - Recon. It also gets its own principal and keytab. The web interface stays unauthenticated. Chart default:
no Kerberos. - Secret ozone-s3-credentials. Holds the administrator's aws_access_key_id and aws_secret_access_key, issued by the OM. The chart creates it empty and the provisioning Job fills it in. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.secretName) - Provisioning Job. A post-install and post-upgrade hook (PostSync in Argo CD). It authenticates in the OM pod with the keytab already mounted there, requests the administrator's key, and grants the administrator access to the /s3v volume. If the Secret already has a key, it does nothing. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.adminUsername) - Internal KDC. A single-replica Deployment, with its own PVC for the realm database: keep the PVC, or all the keytabs become invalid. Chart default:
does not exist with Kerberos off. (tdp-ozone.kerberos.realm) - Keytab export Job. A post-install and post-upgrade hook (a Sync hook in Argo CD). It copies the keytabs of the Ozone principals into one Secret per daemon and skips a Secret that already has a keytab. Chart default:
only exists with Kerberos on. - Keytab Secrets. The configuration.filesFrom list projects the krb5.conf and all the keytabs into the configuration directory of each daemon. The daemon pods only start after these Secrets exist. Chart default:
empty list. (tdp-ozone.configuration.filesFrom) - Web interfaces without authentication. Kerberos authentication of the web interfaces (SPNEGO) is off: with it on, the pods' HTTP health checks fail. The OM, SCM, Recon, and S3 Gateway interfaces stay unauthenticated; restrict access to them in the Ingress or on the network. Chart default:
SPNEGO off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.http.kerberos.enabled) - KDC without high availability. One replica, with a file-based database, without high availability.
1tdp-ozone:2kerberos:3 enabled: false4s3g:5 auth:6 enabled: true7 secretName: ozone-s3-credentials8 adminUsername: tdp-s3-admin
Nothing related to Kerberos is created: no KDC, no keytabs, no credentials Secret, and no Job to fill it in.
- Kerberos off (linha 3). Nothing related to Kerberos is created: no KDC, no keytabs, no credentials Secret, and no Job to fill it in.
- S3 authentication (linha 6). It already comes on, but without Kerberos it has no effect: the S3 Gateway accepts any key.
- Credentials Secret (linha 7). Name of the Secret where the provisioning Job stores the administrator's key, when Kerberos is on.
- Administrator (linha 8). Identity for which the Job requests the key from the Ozone Manager.
1tdp-ozone:2kerberos:3 enabled: true45env:6 - name: OZONE-SITE.XML_ozone.security.enabled7 value: "true"8 - name: CORE-SITE.XML_hadoop.security.authentication9 value: "kerberos"10 - name: OZONE-SITE.XML_ozone.security.http.kerberos.enabled11 value: "false"12 - name: KRB5_CONFIG13 value: "{{ .Values.configuration.dir }}/krb5.conf"14 - name: OZONE_OPTS15 value: "-Djava.security.krb5.conf={{ .Values.configuration.dir }}/krb5.conf"16 - name: OZONE-SITE.XML_ozone.om.kerberos.principal17 value: "om/om@{{ .Values.kerberos.realm }}"18 - name: OZONE-SITE.XML_hdds.scm.kerberos.principal19 value: "scm/scm@{{ .Values.kerberos.realm }}"20 - name: OZONE-SITE.XML_hdds.datanode.kerberos.principal21 value: "dn/dn@{{ .Values.kerberos.realm }}"22 - name: OZONE-SITE.XML_ozone.s3g.kerberos.principal23 value: "s3g/s3g@{{ .Values.kerberos.realm }}"24 - name: OZONE-SITE.XML_ozone.recon.kerberos.principal25 value: "recon/recon@{{ .Values.kerberos.realm }}"26 - name: OZONE-SITE.XML_ozone.administrators27 value: "{{ .Values.s3g.auth.adminUsername }}"2829configuration:30 filesFrom:31 - configMap:32 name: '{{ .Release.Name }}-kdc-config'33 items:34 - key: krb5.conf35 path: krb5.conf36 - secret:37 name: '{{ .Release.Name }}-om-keytab'38 items:39 - key: keytab40 path: security/keytabs/om.keytab41 - secret:42 name: '{{ .Release.Name }}-scm-keytab'43 items:44 - key: keytab45 path: security/keytabs/scm.keytab46 - secret:47 name: '{{ .Release.Name }}-dn-keytab'48 items:49 - key: keytab50 path: security/keytabs/dn.keytab51 - secret:52 name: '{{ .Release.Name }}-s3g-keytab'53 items:54 - key: keytab55 path: security/keytabs/s3g.keytab56 - secret:57 name: '{{ .Release.Name }}-recon-keytab'58 items:59 - key: keytab60 path: security/keytabs/recon.keytab6162om:63 args:64 - bash65 - -c66 - |67 version="${ENSURE_OM_INITIALIZED:-/data/metadata/om/current/VERSION}"68 if [ -f "$version" ] && ! grep -q '^omCertSerialId=' "$version"; then69 echo "OM storage was initialized without security: getting its SCM-signed certificate"70 /opt/hadoop/bin/ozone om --init71 fi72 exec /opt/hadoop/bin/ozone om73 env:74 - name: OZONE-SITE.XML_ozone.om.kerberos.keytab.file75 value: "{{ .Values.configuration.dir }}/security/keytabs/om.keytab"76scm:77 env:78 - name: OZONE-SITE.XML_hdds.scm.kerberos.keytab.file79 value: "{{ .Values.configuration.dir }}/security/keytabs/scm.keytab"80datanode:81 env:82 - name: OZONE-SITE.XML_hdds.datanode.kerberos.keytab.file83 value: "{{ .Values.configuration.dir }}/security/keytabs/dn.keytab"84s3g:85 env:86 - name: OZONE-SITE.XML_ozone.s3g.kerberos.keytab.file87 value: "{{ .Values.configuration.dir }}/security/keytabs/s3g.keytab"88recon:89 env:90 - name: OZONE-SITE.XML_ozone.recon.kerberos.keytab.file91 value: "{{ .Values.configuration.dir }}/security/keytabs/recon.keytab"
Creates the KDC, its PVC, the ConfigMap with the krb5.conf, the Job that exports the keytabs and, with s3g.auth.enabled, the credentials Secret and the Job that fills it in. The KDC master password does not go here: it is given at deploy time.
- Turns on the internal KDC (linha 3). Creates the KDC, its PVC, the ConfigMap with the krb5.conf, the Job that exports the keytabs and, with s3g.auth.enabled, the credentials Secret and the Job that fills it in. The KDC master password does not go here: it is given at deploy time.
- List shared by the daemons (linha 5). Applies to the OM, SCM, datanodes, S3 Gateway, and Recon. It is a list: if another values file also defines env, Helm keeps only the one from the last file. Your own entries, such as the single-node ones, go in this same list.
- Ozone security (linha 6). Turns on Ozone security: the OM starts issuing and validating the S3 keys.
- Kerberos only (linha 8). With security on, the Ozone daemons only accept kerberos here. There is no secure mode without Kerberos.
- Web interfaces without SPNEGO (linha 10). With SPNEGO on, the pods' HTTP health checks fail. The web interfaces stay unauthenticated: restrict access to them in the Ingress or on the network (scenario 2).
- krb5.conf (linha 12). The daemons read the krb5.conf projected into the configuration directory (configuration.dir).
- Principals (linha 16). One principal per daemon, with a fixed name and the realm from kerberos.realm. The datanodes share the same principal.
- Ozone administrator (linha 26). Makes the user from s3g.auth.adminUsername an Ozone administrator, the one for whom the provisioning Job issues the key.
- Projected files (linha 30). Projects the KDC's krb5.conf and all the keytabs into the configuration directory of each daemon. The pods only start after the export Job creates these Secrets.
- One Secret per keytab (linha 36). Created by the export Job, with the keytab under the key keytab. A Secret that already has a keytab is not overwritten.
- Ozone that ran without security (linha 63). If the OM storage was initialized without an SCM-signed certificate, it runs ozone om --init once, which only requests the certificate and keeps the data. On a new installation, the block just starts the OM.
- Each daemon's keytab (linha 74). Each daemon points to its own keytab, inside the directory projected above.
Write the values file
Select With the internal KDC above and save the block in your values file.
If your file already defines the tdp-ozone.env list, for example for a single-node cluster, merge its entries with the Kerberos ones into a single list. See Lists in the values file.
Apply with the KDC master password
The KDC comes up, exports the keytabs, and the daemons start with Kerberos.
kerberos.masterPassword has no default: choose a strong password and give it with --set, or through your environment's secret injection process. Never write a real password in a values file. Give the same value in every following helm upgrade.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ozone \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--set tdp-ozone.kerberos.masterPassword=<PASSWORD> \
--timeout 10m
On OpenShift, add the settings from scenario 2 of the configuration to the same command.
Do not use --wait or --atomic: the Ozone pods wait for the keytab Secrets, which a post-install and post-upgrade Job creates, and Helm only runs that Job after all the pods are ready. The installation would never finish.
The command's timeout matters on the first installation: the KDC and the daemons are created together, but the daemons stay in ContainerCreating or FailedMount until the KDC comes up and the export Job writes the keytabs. This is expected, not a failure.
The KDC keeps the realm database in its own PVC (kerberos.kdc.persistence.size): keep that PVC, or all the keytabs become invalid.
The KDC syncs first, the keytab export Job runs as a Sync hook before the Ozone pods, and the S3 key provisioning Job runs as PostSync. No extra configuration is needed. With the GitOps kit, security is turned on by the kit's script: see Turning on Ozone security.
Wait for the KDC and the S3 Gateway
The KDC ready and the S3 Gateway rollout complete.
kubectl -n <NAMESPACE> wait --for=condition=ready pod \
-l app.kubernetes.io/component=kdc \
--timeout=300s
kubectl -n <NAMESPACE> rollout status statefulset/<RELEASE_NAME>-s3g --timeout=300s
If the daemons do not leave ContainerCreating
Look at the KDC pod and the log of the keytab export Job:
kubectl -n <NAMESPACE> get pods -l app.kubernetes.io/component=kdc
kubectl -n <NAMESPACE> logs -l app.kubernetes.io/component=kdc-keytab-export
Read the administrator key
The provisioning Job has already written the key to the ozone-s3-credentials Secret.
After the deploy, a Job requests the S3 key of s3g.auth.adminUsername (default tdp-s3-admin) from the Ozone Manager, writes it to the ozone-s3-credentials Secret, and grants that user access to the /s3v volume. The key is registered in the OM, which is why the S3 Gateway validates it. Do not create this Secret by hand.
AWS_ACCESS_KEY_ID=$(kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_access_key_id}' | base64 -d)
AWS_SECRET_ACCESS_KEY=$(kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_secret_access_key}' | base64 -d)
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
aws configure set region us-east-1
It worked when
Test with the real key
Create, write, list, read, and delete a test bucket.
The commands use the S3 Gateway through a port-forward. With the S3 REST Ingress published, use its URL instead of the local address.
kubectl -n <NAMESPACE> port-forward svc/<RELEASE_NAME>-s3g-rest 9878:9878 &
aws s3 mb s3://test-bucket --endpoint-url=http://localhost:9878
echo "Hello Ozone!" > test.txt
aws s3 cp test.txt s3://test-bucket/ --endpoint-url=http://localhost:9878
aws s3 ls --endpoint-url=http://localhost:9878
aws s3 cp s3://test-bucket/test.txt downloaded.txt --endpoint-url=http://localhost:9878
# Cleanup
aws s3 rm s3://test-bucket/test.txt --endpoint-url=http://localhost:9878
aws s3 rb s3://test-bucket --endpoint-url=http://localhost:9878
rm -f test.txt downloaded.txt
Confirm that made-up keys are rejected
The point of turning Kerberos on: access without a key or with a made-up key is refused.
The previous test only proves that the real key works. Run these negative checks on the same endpoint, with a disposable AWS CLI profile, so you do not change your default credentials:
# 1. Request without a signature: HTTP 403 is expected
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:9878/
# 2. Made-up key, never registered: AccessDenied or InvalidAccessKeyId is expected
aws configure set aws_access_key_id "fabricated-key" --profile ozone-fake-test
aws configure set aws_secret_access_key "fabricated-secret" --profile ozone-fake-test
aws configure set region us-east-1 --profile ozone-fake-test
aws s3 mb s3://should-not-be-created --endpoint-url=http://localhost:9878 --profile ozone-fake-test
It worked when
curl returns 403 and aws s3 mb ends with AccessDenied or InvalidAccessKeyId, never with make_bucket.If the made-up key creates the bucket
Authentication is not being enforced: check that kerberos.enabled=true reached the release (was the file passed with -f?) and apply again.
TLS on the S3 Ingress and network restriction.
Protecting the path to S3 means putting TLS between the clients outside the cluster and the S3 Gateway, and restricting who reaches the service. S3 authentication is on (scenario 1) and you are going to publish the S3 Gateway to clients outside the cluster.
The S3 Gateway serves plain HTTP. For outside clients, TLS terminates at the S3 REST Ingress, with the certificate Secret that already exists in the namespace or is issued by your certificate manager, through the Ingress annotations. Also restrict who reaches the S3 Gateway, with NetworkPolicies or a firewall, and give each application its own key.
The OM, SCM, Recon, and S3 Gateway web interfaces stay unauthenticated even with Kerberos on: restrict access to them in the Ingress or on the network.
No external exposure (TDP-Settings.gateway.ingress.enabled: false). The S3 REST Ingress, when on, comes out without TLS (ingress.s3g.rest.tls empty) and without annotations.
HTTPS on the S3 REST hostname and access to the Service restricted to the authorized consumers.
External access over HTTPS
- S3 client. The AWS CLI, the SDKs, and the TDP components sign each request with an access key and a secret key (AWS Signature v4). They do not need a Kerberos ticket. Chart default:
security off. - S3 REST Ingress with TLS. Receives the S3 traffic from outside the cluster on the published hostname and terminates TLS with the certificate from the Secret given in tls. Chart default:
S3 REST Ingress without TLS; Ingress off. (tdp-ozone.ingress.s3g.rest.tls) - S3 Gateway. Rejects a request without a signature or with a key that the Ozone Manager did not issue. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Issues the S3 keys (ozone s3 getsecret), validates the AWS Signature v4 of each request against the keys it issued, and checks the ACLs of the /s3v volume and of the buckets. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. Authenticates with its own Kerberos principal and signs the OM certificate. Chart default:
no Kerberos. - Datanodes. All the datanodes share the same principal and the same keytab. Chart default:
no Kerberos. - Recon. It also gets its own principal and keytab. The web interface stays unauthenticated. Chart default:
no Kerberos. - Secret ozone-s3-credentials. Holds the administrator's aws_access_key_id and aws_secret_access_key, issued by the OM. The chart creates it empty and the provisioning Job fills it in. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.secretName) - Provisioning Job. A post-install and post-upgrade hook (PostSync in Argo CD). It authenticates in the OM pod with the keytab already mounted there, requests the administrator's key, and grants the administrator access to the /s3v volume. If the Secret already has a key, it does nothing. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.adminUsername) - Internal KDC. A single-replica Deployment, with its own PVC for the realm database: keep the PVC, or all the keytabs become invalid. Chart default:
does not exist with Kerberos off. (tdp-ozone.kerberos.realm) - Keytab export Job. A post-install and post-upgrade hook (a Sync hook in Argo CD). It copies the keytabs of the Ozone principals into one Secret per daemon and skips a Secret that already has a keytab. Chart default:
only exists with Kerberos on. - Keytab Secrets. The configuration.filesFrom list projects the krb5.conf and all the keytabs into the configuration directory of each daemon. The daemon pods only start after these Secrets exist. Chart default:
empty list. (tdp-ozone.configuration.filesFrom) - Web interfaces without authentication. Kerberos authentication of the web interfaces (SPNEGO) is off: with it on, the pods' HTTP health checks fail. The OM, SCM, Recon, and S3 Gateway interfaces stay unauthenticated; restrict access to them in the Ingress or on the network. Chart default:
SPNEGO off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.http.kerberos.enabled) - KDC without high availability. One replica, with a file-based database, without high availability.
1tdp-ozone:2ingress:3 s3g:4 rest:5 enabled: true6 ingressClassName: <INGRESS_CLASS>7 annotations: {}8 hosts:9 - host: <OZONE_S3_REST_HOSTNAME>10 paths:11 - path: /12 pathType: Prefix13 tls:14 - secretName: <SECRET_NAME>15 hosts:16 - <OZONE_S3_REST_HOSTNAME>1718TDP-Settings:19gateway:20 ingress:21 enabled: true
It sits directly under the chart prefix. The rest of the exposure (other endpoints, Gateway API) is on the configuration page.
- S3 REST Ingress (linha 2). It sits directly under the chart prefix. The rest of the exposure (other endpoints, Gateway API) is on the configuration page.
- Ingress class (linha 6). nginx, openshift-default, or your cluster's class.
- Annotations (linha 7). With a certificate manager, its annotations go here, so that it issues the certificate Secret.
- Public hostname (linha 9). The hostname through which outside clients reach the S3 REST.
- TLS (linha 13). Without this list, the Ingress serves only HTTP.
- Certificate Secret (linha 14). It must exist in the namespace, or be issued by your certificate manager.
- Turns on the Ingress (linha 18). It sits at the root of the file. Without this key, no Ozone Ingress is created.
Hostnames, the other endpoints, and the Gateway API alternative are in scenario 4 of Apache Ozone Configuration and in External exposure.
Add the block to the Kerberos file
The S3 REST Ingress with TLS in the same values file.
Merge the block above into the scenario 1 file. Without a certificate manager, create the TLS Secret in the namespace before the deploy.
Apply to the release
The S3 REST Ingress now answers over HTTPS.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ozone \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--set tdp-ozone.kerberos.masterPassword=<PASSWORD> \
--timeout 10m
It worked when
The Ingress has the hostname and the certificate, and the AWS CLI lists the buckets through the HTTPS URL:
kubectl -n <NAMESPACE> get ingress <RELEASE_NAME>-s3g-rest
aws s3 ls --endpoint-url=https://<OZONE_S3_REST_HOSTNAME>
Restrict who reaches the S3 Gateway
Only the authorized consumers reach the S3 REST Service.
With a NetworkPolicy or a firewall, allow the <RELEASE_NAME>-s3g-rest Service only for the authorized consumers.
Turn authentication on in an Ozone that already runs without security, keeping the data.
Ozone already runs without security, with data in the buckets and consumers using arbitrary keys, and you want to turn authentication on. The switch is the same deploy as in scenario 1, on the existing release, with the same name and the same namespace, and it keeps the data. The pods restart with the keytabs, and the OM start command, in the file's om.args block, obtains the OM certificate signed by the SCM on the first start. After the switch, the S3 Gateway rejects any key that the OM did not issue, so all the consumers need to receive a new key.
No Kerberos. The S3 Gateway accepts any key. The consumers use keys that the OM never issued.
The same data, with Kerberos between the daemons. Only keys issued by the OM are accepted: the administrator's, in the ozone-s3-credentials Secret, or those of additional users (scenario 4).
Ozone with data after the switch
- S3 client. The AWS CLI, the SDKs, and the TDP components sign each request with an access key and a secret key (AWS Signature v4). They do not need a Kerberos ticket. Chart default:
security off. - S3 Gateway. Rejects a request without a signature or with a key that the Ozone Manager did not issue. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Issues the S3 keys (ozone s3 getsecret), validates the AWS Signature v4 of each request against the keys it issued, and checks the ACLs of the /s3v volume and of the buckets. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. Authenticates with its own Kerberos principal and signs the OM certificate. Chart default:
no Kerberos. - Datanodes. All the datanodes share the same principal and the same keytab. Chart default:
no Kerberos. - Recon. It also gets its own principal and keytab. The web interface stays unauthenticated. Chart default:
no Kerberos. - Secret ozone-s3-credentials. Holds the administrator's aws_access_key_id and aws_secret_access_key, issued by the OM. The chart creates it empty and the provisioning Job fills it in. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.secretName) - Provisioning Job. A post-install and post-upgrade hook (PostSync in Argo CD). It authenticates in the OM pod with the keytab already mounted there, requests the administrator's key, and grants the administrator access to the /s3v volume. If the Secret already has a key, it does nothing. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.adminUsername) - Internal KDC. A single-replica Deployment, with its own PVC for the realm database: keep the PVC, or all the keytabs become invalid. Chart default:
does not exist with Kerberos off. (tdp-ozone.kerberos.realm) - Keytab export Job. A post-install and post-upgrade hook (a Sync hook in Argo CD). It copies the keytabs of the Ozone principals into one Secret per daemon and skips a Secret that already has a keytab. Chart default:
only exists with Kerberos on. - Keytab Secrets. The configuration.filesFrom list projects the krb5.conf and all the keytabs into the configuration directory of each daemon. The daemon pods only start after these Secrets exist. Chart default:
empty list. (tdp-ozone.configuration.filesFrom) - Web interfaces without authentication. Kerberos authentication of the web interfaces (SPNEGO) is off: with it on, the pods' HTTP health checks fail. The OM, SCM, Recon, and S3 Gateway interfaces stay unauthenticated; restrict access to them in the Ingress or on the network. Chart default:
SPNEGO off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.http.kerberos.enabled) - KDC without high availability. One replica, with a file-based database, without high availability.
Build the Kerberos values file
The same file from scenario 1, with the om.args block.
Use the file from scenario 1 in full, with the om.args block: it is what obtains the OM certificate on the first start with security.
Apply without --wait
The daemons restart with Kerberos, keeping the data.
Same release name and same namespace as the existing installation:
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ozone \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--set tdp-ozone.kerberos.masterPassword=<PASSWORD> \
--timeout 10m
Do not use --wait: the daemons wait for the keytab Secrets, which the export Job creates on post-upgrade, and Helm only runs that Job after all the pods are ready. While the KDC comes up, ContainerCreating and FailedMount on the daemons are transient.
Check the ozone-s3-credentials Secret
The administrator key was issued by the OM.
The provisioning Job only calls the OM when the Secret is empty. If the Secret already has aws_access_key_id, the Job keeps it as is and ends without issuing the key or granting access to the /s3v volume. A key that was not issued by the OM stops working with Kerberos on.
kubectl -n <NAMESPACE> get secret ozone-s3-credentials -o jsonpath='{.data.aws_access_key_id}'
Update the consumers
Spark, Trino, Hive Metastore, and the others with a key issued by the OM.
In all the consumers, replace the old key with the one from the ozone-s3-credentials Secret or with a key of each application's own (scenario 4), and restart their pods. Where each consumer receives the key is in Integrations - Apache Ozone.
Run the negative checks
Access without a key or with a made-up key is now rejected.
The commands are in the last step of scenario 1.
Turning Kerberos off again over the same Ozone data is not supported.
With the GitOps kit, the switch is done by the kit's script, which also adjusts the clients: see Turning on Ozone security.
Issue, store, list, and revoke S3 keys in the Ozone Manager.
With Kerberos on, the key in the ozone-s3-credentials Secret is the administrator's: whoever uses it acts as an Ozone administrator. To separate applications, pipelines, or technical users, each one receives its own key, issued by the Ozone Manager with ozone s3 getsecret, inside the OM pod. A key generated by you, for example with openssl rand, and stored in a Secret is never registered in the OM: with Kerberos on, the S3 Gateway rejects it. A key issued by the OM is also revoked in it, and the S3 Gateway starts rejecting it immediately.
Only the administrator key, in ozone-s3-credentials, with access to the /s3v volume, where the S3 buckets live.
One key per user, issued by the OM, in a ozone-s3-credentials-<USERNAME> Secret with the label app.kubernetes.io/component=s3g, and the user's ACL on /s3v or on the bucket.
One S3 key per application
- S3 client. The AWS CLI, the SDKs, and the TDP components sign each request with an access key and a secret key (AWS Signature v4). They do not need a Kerberos ticket. Chart default:
security off. - S3 Gateway. Rejects a request without a signature or with a key that the Ozone Manager did not issue. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Issues the S3 keys (ozone s3 getsecret), validates the AWS Signature v4 of each request against the keys it issued, and checks the ACLs of the /s3v volume and of the buckets. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. Authenticates with its own Kerberos principal and signs the OM certificate. Chart default:
no Kerberos. - Datanodes. All the datanodes share the same principal and the same keytab. Chart default:
no Kerberos. - Recon. It also gets its own principal and keytab. The web interface stays unauthenticated. Chart default:
no Kerberos. - Secret ozone-s3-credentials. Holds the administrator's aws_access_key_id and aws_secret_access_key, issued by the OM. The chart creates it empty and the provisioning Job fills it in. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.secretName) - Provisioning Job. A post-install and post-upgrade hook (PostSync in Argo CD). It authenticates in the OM pod with the keytab already mounted there, requests the administrator's key, and grants the administrator access to the /s3v volume. If the Secret already has a key, it does nothing. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.adminUsername) - Internal KDC. A single-replica Deployment, with its own PVC for the realm database: keep the PVC, or all the keytabs become invalid. Chart default:
does not exist with Kerberos off. (tdp-ozone.kerberos.realm) - Keytab export Job. A post-install and post-upgrade hook (a Sync hook in Argo CD). It copies the keytabs of the Ozone principals into one Secret per daemon and skips a Secret that already has a keytab. Chart default:
only exists with Kerberos on. - Keytab Secrets. The configuration.filesFrom list projects the krb5.conf and all the keytabs into the configuration directory of each daemon. The daemon pods only start after these Secrets exist. Chart default:
empty list. (tdp-ozone.configuration.filesFrom) - Per-user keys. Each application or user gets its own key, issued in the OM pod with ozone s3 getsecret and stored in a Secret ozone-s3-credentials-<user>, with the label app.kubernetes.io/component=s3g. Chart default:
only the administrator key. - Web interfaces without authentication. Kerberos authentication of the web interfaces (SPNEGO) is off: with it on, the pods' HTTP health checks fail. The OM, SCM, Recon, and S3 Gateway interfaces stay unauthenticated; restrict access to them in the Ingress or on the network. Chart default:
SPNEGO off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.http.kerberos.enabled) - KDC without high availability. One replica, with a file-based database, without high availability.
Without Kerberos, the S3 Gateway accepts any key pair, and there is no key to issue or revoke.
Authenticate in the Ozone Manager
A valid Kerberos ticket in the OM pod, with the keytab already mounted there.
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- \
kinit -kt /opt/hadoop/etc/hadoop/security/keytabs/om.keytab om/om@TDP.LOCAL
TDP.LOCAL is the default of kerberos.realm. With another realm, such as the company's Kerberos (scenario 6), use yours. Run kinit again when a following command fails with a Kerberos error: the ticket expires.
Issue the user's key
A key registered in the OM for the name you chose.
<USERNAME> is an identity name of your choosing, for example the LDAP uid of the account that will use the key.
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- ozone s3 getsecret -e -u=<USERNAME>
It worked when
AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. The OM shows the secret only once: store it in the next step.Store the key in a Secret
The user's key in a namespace Secret, for the workloads that use it.
kubectl -n <NAMESPACE> create secret generic ozone-s3-credentials-<USERNAME> \
--from-literal=aws_access_key_id='<AWS_ACCESS_KEY_ID>' \
--from-literal=aws_secret_access_key='<AWS_SECRET_ACCESS_KEY>'
kubectl -n <NAMESPACE> label secret ozone-s3-credentials-<USERNAME> app.kubernetes.io/component=s3g
It worked when
kubectl -n <NAMESPACE> get secrets -l app.kubernetes.io/component=s3g
The user's Secret appears in the list.
Grant access to the buckets
The user can now operate the buckets through the S3 API.
The new identity has no access to the S3 buckets yet: without an ACL, it authenticates but gets AccessDenied. Grant it on the /s3v volume (all the buckets) or on a single bucket. Use addacl, not setacl, which replaces the whole list.
# All the buckets
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- \
ozone sh volume addacl -a user:<USERNAME>:a /s3v
# One bucket, read and write
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- \
ozone sh bucket addacl -a user:<USERNAME>:rw /s3v/<S3_BUCKET>
# Check
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- ozone sh bucket getacl /s3v/<S3_BUCKET>
It worked when
getacl shows the user in the list.Hand the key to the application
The application reads the key from the user's Secret.
The workloads that use the key read it from that Secret. The fields of each consumer are in Integrations - Apache Ozone. The components read the key when the pods start: restart them after changing it.
List and revoke
Know who has a key and withdraw access when needed.
# List the S3 key Secrets in the namespace
kubectl -n <NAMESPACE> get secrets -l app.kubernetes.io/component=s3g
# Revoke in the OM and delete the user's Secret
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- ozone s3 revokesecret -y -u=<USERNAME>
kubectl -n <NAMESPACE> delete secret ozone-s3-credentials-<USERNAME>
The S3 Gateway rejects the revoked key immediately. Disabling the account in LDAP or Active Directory does not revoke the key: revoke it in the OM.
Rotate the administrator key
A new administrator key in ozone-s3-credentials, and the old one revoked.
Remove the keys from the Secret and run helm upgrade with the same values and the same --set options as the installation. The provisioning Job finds the Secret empty, revokes the old key in the OM, and issues a new one.
kubectl -n <NAMESPACE> patch secret ozone-s3-credentials --type json -p '[{"op":"remove","path":"/data"}]'
Then restart the pods of the components that read the Secret: they keep the old key until then.
Ozone ACLs: who reads and who writes in each bucket.
Several applications share Ozone and you want each one to read or write only in its own buckets. The S3 buckets live in the /s3v volume, and Ozone checks the ACLs of the volume and of each bucket on every operation with a valid key. The ACLs are managed by the ozone sh CLI, inside the OM pod, and each session starts with kinit, using the keytab already mounted in the pod.
The /s3v volume, created by the OM on the first use of S3, with access for om and for the s3g.auth.adminUsername administrator.
Each bucket with the users who can read and write in it.
The permissions checked on each request
- S3 client. The AWS CLI, the SDKs, and the TDP components sign each request with an access key and a secret key (AWS Signature v4). They do not need a Kerberos ticket. Chart default:
security off. - S3 Gateway. Rejects a request without a signature or with a key that the Ozone Manager did not issue. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Issues the S3 keys (ozone s3 getsecret), validates the AWS Signature v4 of each request against the keys it issued, and checks the ACLs of the /s3v volume and of the buckets. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. Authenticates with its own Kerberos principal and signs the OM certificate. Chart default:
no Kerberos. - Datanodes. All the datanodes share the same principal and the same keytab. Chart default:
no Kerberos. - Recon. It also gets its own principal and keytab. The web interface stays unauthenticated. Chart default:
no Kerberos. - Secret ozone-s3-credentials. Holds the administrator's aws_access_key_id and aws_secret_access_key, issued by the OM. The chart creates it empty and the provisioning Job fills it in. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.secretName) - Provisioning Job. A post-install and post-upgrade hook (PostSync in Argo CD). It authenticates in the OM pod with the keytab already mounted there, requests the administrator's key, and grants the administrator access to the /s3v volume. If the Secret already has a key, it does nothing. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.adminUsername) - Internal KDC. A single-replica Deployment, with its own PVC for the realm database: keep the PVC, or all the keytabs become invalid. Chart default:
does not exist with Kerberos off. (tdp-ozone.kerberos.realm) - Keytab export Job. A post-install and post-upgrade hook (a Sync hook in Argo CD). It copies the keytabs of the Ozone principals into one Secret per daemon and skips a Secret that already has a keytab. Chart default:
only exists with Kerberos on. - Keytab Secrets. The configuration.filesFrom list projects the krb5.conf and all the keytabs into the configuration directory of each daemon. The daemon pods only start after these Secrets exist. Chart default:
empty list. (tdp-ozone.configuration.filesFrom) - Per-user keys. Each application or user gets its own key, issued in the OM pod with ozone s3 getsecret and stored in a Secret ozone-s3-credentials-<user>, with the label app.kubernetes.io/component=s3g. Chart default:
only the administrator key. - Web interfaces without authentication. Kerberos authentication of the web interfaces (SPNEGO) is off: with it on, the pods' HTTP health checks fail. The OM, SCM, Recon, and S3 Gateway interfaces stay unauthenticated; restrict access to them in the Ingress or on the network. Chart default:
SPNEGO off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.http.kerberos.enabled) - KDC without high availability. One replica, with a file-based database, without high availability.
Authenticate in the OM pod
A valid Kerberos ticket for ozone sh.
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- \
kinit -kt /opt/hadoop/etc/hadoop/security/keytabs/om.keytab om/om@TDP.LOCAL
With the company's Kerberos (scenario 6), replace TDP.LOCAL with your realm.
Check the current ACL
See who already has access before changing it.
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- ozone sh bucket getacl /s3v/<S3_BUCKET>
Grant read and write on the bucket
The user enters the bucket's permission list.
kubectl -n <NAMESPACE> exec <RELEASE_NAME>-om-0 -- \
ozone sh bucket addacl -a user:<USERNAME>:rw /s3v/<S3_BUCKET>
addacl adds the user to the bucket's list, without removing those who already have access; setacl would replace the whole list. Repeat for each user of the bucket.
It worked when
getacl from the previous step shows the user in the list.Replace the internal KDC with a Kerberos or AD you already have.
The company already has a Kerberos or an Active Directory and you want the Ozone daemons to use its realm instead of the internal KDC. The daemons accept tickets from any KDC: they need a krb5.conf that resolves your realm and the keytabs of your principals. The change lives in two parts of the scenario 1 file: the realm and the configuration.filesFrom list, which now points to your ConfigMap and your Secrets.
There is no parameter to stop creating the internal KDC: with kerberos.enabled: true, it keeps being created, and the keytab export Job keeps running on every installation and update, but the daemons do not use them.
Internal KDC with realm TDP.LOCAL. The krb5.conf and the keytabs come from the ConfigMap and the Secrets that the chart creates.
Your realm. The krb5.conf and the keytabs come from a ConfigMap and Secrets of your own. The internal KDC keeps being created and, on a cluster not managed by Argo CD, can stay stopped.
The keytabs from the company Kerberos
- S3 client. The AWS CLI, the SDKs, and the TDP components sign each request with an access key and a secret key (AWS Signature v4). They do not need a Kerberos ticket. Chart default:
security off. - S3 Gateway. Rejects a request without a signature or with a key that the Ozone Manager did not issue. Chart default:
s3g.auth.enabled on, with no effect without Kerberos. (tdp-ozone.s3g.auth) - Ozone Manager (OM). Issues the S3 keys (ozone s3 getsecret), validates the AWS Signature v4 of each request against the keys it issued, and checks the ACLs of the /s3v volume and of the buckets. Chart default:
security off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.enabled) - Storage Container Manager. Authenticates with its own Kerberos principal and signs the OM certificate. Chart default:
no Kerberos. - Datanodes. All the datanodes share the same principal and the same keytab. Chart default:
no Kerberos. - Recon. It also gets its own principal and keytab. The web interface stays unauthenticated. Chart default:
no Kerberos. - Secret ozone-s3-credentials. Holds the administrator's aws_access_key_id and aws_secret_access_key, issued by the OM. The chart creates it empty and the provisioning Job fills it in. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.secretName) - Provisioning Job. A post-install and post-upgrade hook (PostSync in Argo CD). It authenticates in the OM pod with the keytab already mounted there, requests the administrator's key, and grants the administrator access to the /s3v volume. If the Secret already has a key, it does nothing. Chart default:
only exists with Kerberos on. (tdp-ozone.s3g.auth.adminUsername) - Internal KDC. With the company's Kerberos, the chart still creates the internal KDC and runs the export Job, but the daemons do not use them. On a cluster not managed by Argo CD, you can scale the KDC to zero after the installation. Chart default:
does not exist with Kerberos off. (tdp-ozone.kerberos.realm) - Company Kerberos. Issues the keytabs of the Ozone principals, through the process your organization already uses. You store each keytab in a Secret and the krb5.conf in a ConfigMap. Chart default:
not used (internal KDC). (tdp-ozone.configuration.filesFrom) - Your Secrets and ConfigMap. The configuration.filesFrom list projects the krb5.conf and all the keytabs into the configuration directory of each daemon. The daemon pods only start after these Secrets exist. Chart default:
empty list. (tdp-ozone.configuration.filesFrom) - Web interfaces without authentication. Kerberos authentication of the web interfaces (SPNEGO) is off: with it on, the pods' HTTP health checks fail. The OM, SCM, Recon, and S3 Gateway interfaces stay unauthenticated; restrict access to them in the Ingress or on the network. Chart default:
SPNEGO off. (tdp-ozone.env → OZONE-SITE.XML_ozone.security.http.kerberos.enabled)
1tdp-ozone:2kerberos:3 enabled: true4 realm: <KERBEROS_REALM>5configuration:6 filesFrom:7 - configMap:8 name: ozone-krb59 items:10 - key: krb5.conf11 path: krb5.conf12 - secret:13 name: ozone-om-keytab14 items:15 - key: keytab16 path: security/keytabs/om.keytab17 - secret:18 name: ozone-scm-keytab19 items:20 - key: keytab21 path: security/keytabs/scm.keytab22 - secret:23 name: ozone-dn-keytab24 items:25 - key: keytab26 path: security/keytabs/dn.keytab27 - secret:28 name: ozone-s3g-keytab29 items:30 - key: keytab31 path: security/keytabs/s3g.keytab32 - secret:33 name: ozone-recon-keytab34 items:35 - key: keytab36 path: security/keytabs/recon.keytab
It is what makes the chart turn Kerberos on in the daemons. It also creates the internal KDC, which the daemons do not use.
- Stays on (linha 3). It is what makes the chart turn Kerberos on in the daemons. It also creates the internal KDC, which the daemons do not use.
- Your realm (linha 4). The company's realm, in place of TDP.LOCAL. The principals in the file use this value.
- Your krb5.conf (linha 8). The ConfigMap with your realm's krb5.conf, under the key krb5.conf.
- Your keytabs (linha 13). One Secret per daemon, with the keytab under the key keytab.
Register the principals in your Kerberos
The Ozone principals exist in your realm, with the keytabs exported.
Register, with exactly these names, without a host part, all @<KERBEROS_REALM>: om/om, HTTP/om, scm/scm, HTTP/scm, dn/dn, HTTP/dn, s3g/s3g, HTTP/s3g, recon/recon, and HTTP/recon. All the datanodes share dn/dn. The om, scm, dn, s3g, and recon keytabs each carry the daemon's two principals, such as om/om and HTTP/om.
Create the ConfigMap and the Secrets
The krb5.conf and one keytab Secret per daemon in the release namespace.
kubectl -n <NAMESPACE> create configmap ozone-krb5 --from-file=krb5.conf=<LOCAL_PATH>/krb5.conf
for d in om scm dn s3g recon; do
kubectl -n <NAMESPACE> create secret generic ozone-$d-keytab --from-file=keytab=<LOCAL_PATH>/$d.keytab
done
Adjust the values file
The scenario 1 file with the realm and the filesFrom list above.
In the scenario 1 file, replace only the two parts shown above.
Apply to the release
The daemons use your Kerberos.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-ozone \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE> \
--set tdp-ozone.kerberos.masterPassword=<PASSWORD> \
--timeout 10m
It worked when
Stop the internal KDC, if you wantOpcional
The internal KDC stopped on a cluster not managed by Argo CD.
On a cluster not managed by Argo CD, you can scale the internal KDC to zero after the installation. Before the next helm upgrade, turn it back on: the keytab export Job waits for it.
# After the installation
kubectl -n <NAMESPACE> scale deploy/<RELEASE_NAME>-kdc --replicas=0
# Before the next helm upgrade
kubectl -n <NAMESPACE> scale deploy/<RELEASE_NAME>-kdc --replicas=1
Use your realm in the commands
The kinit of scenarios 4 and 5 in the right realm.
In the kinit commands of scenarios 4 and 5, replace TDP.LOCAL with your realm.
When something goes wrong
Troubleshooting
Paste the error message or pick the symptom. The answer comes with the cause, what to do, and the command.
- works only when security is enabled. Cause: The S3 Secret provisioning Job found Ozone without security: kerberos.enabled was not applied. What to do: Check that the file from scenario 1 was passed with -f and that kerberos.masterPassword was given with --set.
- Daemons stuck in ContainerCreating or FailedMount. Cause: On the first installation with Kerberos, the daemons wait for the KDC to come up and for the export Job to write the keytabs. It is transient. What to do: Wait until the command's --timeout. If it does not resolve, check that the command did not have --wait and look at the KDC and the export Job.
- A made-up key manages to create a bucket. Cause: Authentication is not being enforced: Kerberos was not turned on. What to do: Check kerberos.enabled=true in the release and redo the negative checks of scenario 1.
- SignatureDoesNotMatch. Cause: Clock drift between the client and the pods (the AWS SigV4 signature depends on the time) or an outdated key. What to do: Check the time on the client and on the pods and re-read the key from the ozone-s3-credentials Secret.
- AccessDenied or InvalidAccessKeyId after turning Kerberos on. Cause: The client still uses a key that the Ozone Manager did not issue. What to do: Give it the key from the ozone-s3-credentials Secret or a new key (scenario 4) and restart its pods.
- AccessDenied with a valid key. Cause: The identity authenticated, but has no ACL on the /s3v volume. The provisioning Job only grants it to the administrator. What to do: For other users, grant the ACL on /s3v or on the bucket with addacl, after kinit (scenarios 4 and 5).
- Clients in CreateContainerConfigError (GitOps kit). Cause: The Ozone clients started before the PostSync Job filled in the ozone-s3-credentials Secret. What to do: Wait: they start on their own once the Secret is filled in. Pods that were already running with the old keys need a restart.
- Unable to locate credentials or connection refused. Cause: The S3 client has no key configured, or the S3 Gateway and the Ingress are not reachable. What to do: Check the AWS CLI configuration, the S3 Gateway pod, and the Ingress.
Best practices
- Give each application and each technical user its own key, issued by the Ozone Manager, and store it in a Kubernetes Secret.
- Give the KDC master password with
--setor through your environment's secret injection process, never in a values file, and use the same value in everyhelm upgrade. - For clients outside the cluster, terminate TLS at the S3 REST Ingress and restrict who reaches the S3 Gateway.
- Restrict access to the OM, SCM, Recon, and S3 Gateway web interfaces, which stay unauthenticated.
- Keep the clocks of the clients and of the cluster synchronized: the AWS Signature v4 depends on the time.
- Keep the internal KDC's PVC: without it, all the keytabs become invalid. The internal KDC is a single replica, without high availability.
All the parameters
Only the security parameters. The chart prefix is already filled in. Keys without a prefix sit at the root of the values file.
17 of 17 parameters
| Parameter | Description | Chart default |
|---|---|---|
tdp-ozone.kerberos.enabledKerberos | Deploys the internal KDC and the keytab export Job. Required for s3g.auth.enabled to take effect | false |
tdp-ozone.kerberos.realmKerberos | Realm of the daemons' principals | TDP.LOCAL |
tdp-ozone.kerberos.masterPasswordKerberos | KDC master password. No default, given at deploy time | "" |
tdp-ozone.kerberos.kdc.image.repositoryKerberos | Internal KDC image | registry.tecnisys.com.br/community/images/apache/ozone-krb5 |
tdp-ozone.kerberos.kdc.image.tagKerberos | Internal KDC image tag | 20260507-1 |
tdp-ozone.kerberos.kdc.persistence.sizeKerberos | Size of the KDC principals database PVC | 1Gi |
tdp-ozone.kerberos.kdc.persistence.storageClassNameKerberos | StorageClass of the KDC PVC. Empty uses the cluster default | empty |
tdp-ozone.envKerberos | Variables shared by the OM, SCM, datanodes, S3 Gateway, and Recon. The Kerberos file fills them in | [] |
tdp-ozone.configuration.filesFromKerberos | ConfigMaps and Secrets projected into the configuration directory of each daemon (krb5.conf and keytabs) | [] |
tdp-ozone.configuration.dirKerberos | Configuration directory of the daemons, where the krb5.conf and the keytabs live | /opt/hadoop/etc/hadoop |
tdp-ozone.s3g.auth.enabledS3 key | Creates the credentials Secret and the provisioning Job. Only takes effect with kerberos.enabled: true | true |
tdp-ozone.s3g.auth.secretNameS3 key | Secret filled in with the administrator's S3 key issued by the OM | ozone-s3-credentials |
tdp-ozone.s3g.auth.adminUsernameS3 key | Identity for which the provisioning Job issues the key and grants the /s3v volume | tdp-s3-admin |
tdp-ozone.s3g.envS3 key | Variables for the S3 Gateway only, such as the path of its keytab | [] |
tdp-ozone.ingress.s3g.rest.annotationsNetwork | S3 REST Ingress annotations, such as those of your certificate manager | {} |
tdp-ozone.ingress.s3g.rest.tlsNetwork | TLS of the S3 REST Ingress: certificate Secret and hostnames | [] |
TDP-Settings.gateway.ingress.enabledNetwork | Creates the Ozone Ingress | false |
Next steps
Configuration
Apache Ozone Configuration
First installation, OpenShift, disks, and publishing on a URL.
GitOps kit
Turning on Ozone security
The same, through the kit's script, with the clients adjusted together.
Overview
TDP Kubernetes Security
The security pages of each component and the charts' default passwords.
