Rotating Credentials
This guide demonstrates how to update credentials referenced in the Immuta Enterprise Helm chart (IEHC).
Kubernetes secrets
Edit secrets
Validate that secret
immuta-secretexists in the current namespace.kubectl get secret/immuta-secretEdit secret
immuta-secretin place.kubectl edit secret/immuta-secretEdit secret
immuta-legacy-secretin place. Skip this step if the legacy query engine and fingerprint services are disabled (the default).kubectl edit secret/immuta-legacy-secretRestart pods.
kubectl rollout restart deployment --all --selector "app.kubernetes.io/component=audit,app.kubernetes.io/component=secure"
Legacy query engine
Validate that secret
immuta-legacy-secretexists in the current namespace.kubectl get secret/immuta-legacy-secretGet the query engine replica count, this value will be referenced in subsequent step(s).
kubectl get statefulset --selector "app.kubernetes.io/component=query-engine" --output nameScale the replica count down to
1.kubectl scale statefulset --all --replicas 1 --selector "app.kubernetes.io/component=query-engine"Get the query engine pod name, this value will be referenced in subsequent step(s).
kubectl get pod --selector "app.kubernetes.io/component=query-engine"Update the placeholder value with a query engine superuser password.
kubectl exec pod/<query-engine-pod-name> -- \ psql -d immuta -c \ "ALTER USER postgres WITH ENCRYPTED PASSWORD '<new-patroni-superuser-password>'"Update the placeholder value with a query engine replication password.
kubectl exec pod/<query-engine-pod-name> -- \ psql -d immuta -c \ "ALTER USER replicator WITH ENCRYPTED PASSWORD '<new-patroni-replication-password>'"Update the placeholder value with a query engine feature password.
kubectl exec pod/<query-engine-pod-name> -- \ psql -d immuta -c \ "ALTER USER feature_service WITH ENCRYPTED PASSWORD '<new-immuta-feature-password>'"Scale the replica count back up to the previous value by updating the placeholder value.
kubectl scale statefulset --all --replicas <query-engine-previous-replica-count> --selector "app.kubernetes.io/component=query-engine"
Apply Helm values
Update credentials in the
immuta-values.yamlfile.Perform a Helm upgrade to apply the changes made to
immuta-values.yaml. Update the placeholder value with your own release name.helm upgrade <release-name> oci://ocir.immuta.com/stable/immuta-enterprise --values immuta-values.yaml --version 2024.2.20
Last updated
Was this helpful?

