You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use k8sSearch backend for CA-only server verification
The autoTls backend always issues and signs per-pod certificates and
therefore requires the CA private key (ca.key); it cannot be used to
just publish an existing CA certificate. Use the k8sSearch backend
instead, which mounts the ca.crt from a labeled Secret into the Pod.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The referenced `openldap-tls-ca` SecretClass does not exist yet, you have to create it.
50
+
For server verification you only need to make the CA certificate available to the product as-is, so you use the xref:secret-operator:secretclass.adoc#backend-k8ssearch[`k8sSearch` backend], which mounts the contents of a Kubernetes Secret into the Pod.
50
51
A SecretClass used only for server verification needs nothing but the CA certificate, it does not need a key.
51
52
So if you were provided with a CA certificate but do not have access to its key, you can still use this method.
52
53
53
-
First, store the CA certificate (in PEM format) that you were given in a Kubernetes Secret, under the key `ca.crt`:
54
+
First, store the CA certificate (in PEM format) that you were given in a Secret.
55
+
The Secret must carry the label `secrets.stackable.tech/class` matching the SecretClass name, and the CA certificate must be stored under the key `ca.crt`:
<1> The name of the SecretClass, this is what `caCert.secretClass` above refers to.
68
-
<2> The name of the Secret created above, which holds the CA certificate in its `ca.crt` entry. `ca.key` is not required for server verification.
69
-
<3> The namespace the Secret lives in.
70
-
<4> Disables CA generation so that the Secret Operator uses the provided CA as-is instead of generating its own. This is the default and may be omitted.
72
+
<1> The name of the SecretClass, this is what `caCert.secretClass` above refers to. It must match the Secret's `secrets.stackable.tech/class` label.
73
+
<2> The backend looks for the labeled Secret in the same namespace as the Pod that consumes the certificate.
71
74
72
75
=== Mutual verification
73
76
This example will use TLS and verify both - the server and the client using certificates.
0 commit comments