You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/07/15 09:34:02 UTC

(pulsar-helm-chart) branch master updated: Keep the internal CA private key across renewals with cert-manager 1.18+ (#709)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new 44a31f2  Keep the internal CA private key across renewals with cert-manager 1.18+ (#709)
44a31f2 is described below

commit 44a31f22f1dd20863864f985970c4b9c9a7eaade
Author: Dejan Zele Pejchev <pe...@gmail.com>
AuthorDate: Wed Jul 15 11:33:57 2026 +0200

    Keep the internal CA private key across renewals with cert-manager 1.18+ (#709)
    
    Signed-off-by: Dejan Zele Pejchev <pe...@gmail.com>
---
 charts/pulsar/templates/tls-cert-internal-issuer.yaml | 4 ++++
 charts/pulsar/values.yaml                             | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/charts/pulsar/templates/tls-cert-internal-issuer.yaml b/charts/pulsar/templates/tls-cert-internal-issuer.yaml
index cecc665..f2d33ae 100644
--- a/charts/pulsar/templates/tls-cert-internal-issuer.yaml
+++ b/charts/pulsar/templates/tls-cert-internal-issuer.yaml
@@ -45,6 +45,10 @@ spec:
     - server auth
     - client auth
   isCA: true
+{{- if .Values.certs.internal_issuer.privateKey }}
+  privateKey:
+    {{- toYaml .Values.certs.internal_issuer.privateKey | nindent 4 }}
+{{- end }}
   issuerRef:
     name: "{{ template "pulsar.fullname" . }}-{{ .Values.certs.internal_issuer.component }}"
     # We can reference ClusterIssuers by changing the kind here.
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index e206bfa..772f282 100755
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -495,6 +495,13 @@ certs:
     duration: 2160h
     # 15d
     renewBefore: 360h
+    # Private key settings for the self-signed CA certificate.
+    # Keep rotationPolicy at Never so the CA key survives renewals. Since
+    # cert-manager 1.18 the default is Always, which generates a new CA key
+    # on every renewal and invalidates all certificates issued by the old key
+    # until each of them has been re-issued.
+    privateKey:
+      rotationPolicy: Never
   issuers:
     # Used for certs.internal_issuer.type as selfsigning
     selfsigning: