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
feat: Support DCs in the subject DN of TLS certificates (#708)
* feat: Add domain components to the subject DN if enabled
* test(tls): Add a test case for a subject DN with domain components
* chore: Update changelog
* chore: Fix typo in the changelog
* docs: Document the annotation "secrets.stackable.tech/backend.autotls.cert.domain-components-in-subject-dn"
* docs: Improve the documentation of the annotation "secrets.stackable.tech/backend.autotls.cert.domain-components-in-subject-dn"
* doc: Remove unnecessary empty line
* Apply suggestion from @Techassi
Co-authored-by: Techassi <git@techassi.dev>
---------
Co-authored-by: Techassi <git@techassi.dev>
If set to `"true"`, the domain components of the Pod's fully qualified domain name (FQDN) are appended to the subject distinguished name (DN) of the TLS certificate.
178
+
179
+
For example, the subject DN could look as follows for a StatefulSet Pod:
180
+
181
+
```
182
+
CN=generated certificate for pod, DC=my-pod-0, DC=my-statefulset-service, DC=my-namespace, DC=svc, DC=cluster, DC=local
183
+
```
184
+
185
+
The service name is not part of the domain components if the Pod spec does not contain a subdomain, e.g. for Deployments and Jobs:
186
+
187
+
```
188
+
CN=generated certificate for pod, DC=my-job-pod-7c5xx, DC=my-namespace, DC=svc, DC=cluster, DC=local
189
+
```
190
+
191
+
[NOTE]
192
+
====
193
+
Many products use the string representation of distinguished names as described in https://www.ietf.org/rfc/rfc4514.txt[RFC 4514{external-link-icon}^].
194
+
The string representation starts with the last element of the sequence and moving backwards toward the first.
195
+
196
+
The examples above become:
197
+
198
+
```
199
+
DC=local,DC=cluster,DC=svc,DC=my-namespace,DC=my-statefulset-service,DC=my-pod-0,CN=generated certificate for pod
200
+
DC=local,DC=cluster,DC=svc,DC=my-namespace,DC=my-job-pod-7c5xx,CN=generated certificate for pod
201
+
```
202
+
203
+
Attribute names can be in upper or lower case, with or without spaces between them.
0 commit comments