Kubernetes/EKS only. On a VM, skip this page.
<scaffold>/... path below refers to your gitops repo working tree — the wizard’s output directory, committed and since grown by Sariva’s pull requests. The clusters/<cluster>/manifests/ directories referenced below exist once the cluster’s DM-deploy PR has merged — the wizard itself emits only the cfk-operator/ bootstrap.
Option 2 — self-signed CA (emitted end-to-end)
The scaffold emits the whole chain; you apply it in the wave order from the scaffold’scfk-operator/README.md:
1. Install cert-manager (wave 1):
3. Component certificates are part of the cluster manifests (wave 3 — emitted with the cluster’s DM-deploy PR, not by the wizard): one
Certificate per component (kafka-tls, kraftcontroller-tls, schemaregistry-tls), producing Secrets tls-kafka, tls-kraftcontroller, tls-schemaregistry. Each is emitted with:
Bring your own CA — fresh setup
Starting a new cluster on your own CA from day one: run wave 1 as normal, then skip the emitted self-signed pieces — seed the CA Secret yourself and create only the CA issuer. 1. Install cert-manager and the CFK operator (wave 1) — unchanged from the self-signed flow. 2. Create the namespace, then seed the CA Secret from your CA (Sariva never sees or holds the key):certmanager-bootstrap.yaml (its self-signed CA Certificate would overwrite your seeded Secret with a generated CA). Apply just this:
tls-kafka’s issuer must be your CA).
Bring your own CA — migrating an existing cluster
Switching a running cluster to a customer-owned CA is a CA-Secret swap: cert-manager re-issues every component certificate (and Sariva’s client certificate) from the new CA. It must be a full chain swap — a partial swap fails silently, because (a) the self-signed CACertificate, if left in place, regenerates the old CA back into the Secret, and (b) cert-manager reuses existing component Secrets rather than re-minting them.
The validated recipe, in order:
1. Tear down the cluster (certificates are cluster-lifecycle here):
Certificate (either would regenerate a new CA over your seeded Secret). Apply just this:
Sariva’s own client certificate
Sariva talks to the brokers as an mTLS client, and its identity comes from a small cert-managerCertificate in Sariva’s namespace — signed by the same CA issuer as the components, so the brokers trust it. Apply it once (any cert source that ends in a confluent-ca-issuer works the same way):
- The Secret name is a convention. The cluster registration references it as
k8s://sariva-platform/tls-sariva-client, and the Helm chart’skafkaClientCertsblock wires the read permission for it — keep the name unless you change both. - The
commonNameis Sariva’s Kafka identity. With authorization enabled, the principal is derived from the CN’s first label —CN=sariva-platform→User:sariva-platform— and the emitted bootstrap ACL Job grants the describe-only permissions to exactly that principal. If you mint this certificate with a different CN, set the matching principal at wizard/emit time or Sariva is denied everything. - It rotates with the CA. If you later swap to your own CA (the migration flow above), delete this Secret and restart the Sariva pod — step 7 of that flow.
Operational rules (learned the hard way)
WARNING
Never bare-delete a component TLS Secret (
tls-kafka etc.) to force a re-issue: CFK holds a finalizer on component Secrets, so the delete wedges in Terminating and cert-manager cannot re-issue. Rotate through cert-manager instead — the Certificates carry rotationPolicy: Always, so re-issuing the Certificate rotates the key properly, and CFK rolls the brokers one at a time to pick it up.- PKCS#8 is required. Kafka’s PEM readers reject PKCS#1 private keys; every emitted Certificate pins
privateKey.encoding: PKCS8. If you hand-author Certificates (options 3/4), set it too. - Certificate rotation rolls brokers. When a component certificate changes, CFK restarts that component’s pods one at a time — expect a rolling restart, not downtime.
- The CA
Certificateis deliberately not rotation-pinned — rotating a CA key on renewal would break trust in every leaf certificate at once.
Continue the deployment path
Next: create the runtime Secret
Continue the install — fill setup-secret.sh before deploying Sariva with Helm.
Back: AWS EKS + Confluent Platform (CFK)
Return to the CFK path map.