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 configuring the name of the ca.crt in the TrustStore (#679)
* feat: Support configuring the name of the ca.crt in the TrustStore Secret
* changelog
* changelog
* Apply suggestions from code review
Co-authored-by: maltesander <malte.sander.it@gmail.com>
* Fix callout number and pick docs suggestion
---------
Co-authored-by: maltesander <malte.sander.it@gmail.com>
<4> Optional Kubernetes resource kind, which should be used to output the requested information to.
18
18
Either `ConfigMap` or `Secret`, defaults to `ConfigMap`.
19
+
<5> Optional name of the key in the ConfigMap/Secret, in which the PEM encoded CA certificate should be placed.
20
+
Only takes effect in case the `format` is `tls-pem`.
21
+
Defaults to `ca.crt`.
19
22
20
23
This will create a ConfigMap (or `Secret` based on `targetKind`) named `truststore-pem` containing a `ca.crt` with the trust root certificates.
21
24
It can then either be mounted into a Pod or retrieved and used from outside of Kubernetes.
@@ -24,3 +27,47 @@ Expired or retired (see xref:secretclass.adoc#ca-rotation[Certificate Authority
24
27
25
28
NOTE: Make sure to have a procedure for updating the retrieved certificates.
26
29
The Secret Operator will automatically rotate the xref:secretclass.adoc#backend-autotls[autoTls] certificate authority as needed, but all trust roots will require some form of update occasionally.
30
+
31
+
== Integration with OpenShift Ingress
32
+
33
+
Sometimes you want to create an OpenShift Ingress to expose a stacklet that is secured using `https`.
34
+
For the TLS re-encryption to work, you need to specify a Secret that contains a `tls.crt` key with the PEM ca certificate.
35
+
36
+
A concrete example is shown below:
37
+
38
+
[source,yaml]
39
+
----
40
+
apiVersion: secrets.stackable.tech/v1alpha1
41
+
kind: TrustStore
42
+
metadata:
43
+
name: cluster-internal-ca
44
+
namespace: my-trino-namespace
45
+
spec:
46
+
secretClassName: tls # Or any other SecretClass you are using
0 commit comments