Skip to content

Commit 66b8251

Browse files
authored
feat: adds crl volume to the zTunnel chart (#58132)
Signed-off-by: nilekh <[email protected]>
1 parent ea018f0 commit 66b8251

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

manifests/charts/ztunnel/templates/daemonset.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ spec:
167167
value: "{{ $val }}"
168168
{{- end }}
169169
{{- end }}
170+
{{- if .Values.peerCaCrl.enabled }}
171+
- name: ENABLE_CRL
172+
value: "true"
173+
- name: CRL_PATH
174+
value: "/var/run/secrets/istio/crl/ca-crl.pem"
175+
- name: ALLOW_EXPIRED_CRL
176+
value: "false"
177+
{{- end }}
170178
volumeMounts:
171179
- mountPath: /var/run/secrets/istio
172180
name: istiod-ca-cert
@@ -176,6 +184,11 @@ spec:
176184
name: cni-ztunnel-sock-dir
177185
- mountPath: /tmp
178186
name: tmp
187+
{{- if .Values.peerCaCrl.enabled }}
188+
- mountPath: /var/run/secrets/istio/crl
189+
name: crl-volume
190+
readOnly: true
191+
{{- end }}
179192
{{- with .Values.volumeMounts }}
180193
{{- toYaml . | nindent 8 }}
181194
{{- end }}
@@ -207,6 +220,13 @@ spec:
207220
# pprof needs a writable /tmp, and we don't have that thanks to `readOnlyRootFilesystem: true`, so mount one
208221
- name: tmp
209222
emptyDir: {}
223+
{{- if .Values.peerCaCrl.enabled }}
224+
# Optional CRL volume - mounts istio-ca-crl ConfigMap if it exists
225+
- name: crl-volume
226+
configMap:
227+
name: istio-ca-crl
228+
optional: true
229+
{{- end }}
210230
{{- with .Values.volumes }}
211231
{{- toYaml . | nindent 6}}
212232
{{- end }}

manifests/charts/ztunnel/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ _internal_defaults_do_not_set:
6666
enabled: false
6767
pods: 5000
6868

69+
# Certificate Revocation List (CRL) support for plugged-in CAs.
70+
# When enabled, ztunnel will check certificates against the CRL
71+
peerCaCrl:
72+
enabled: false
73+
6974
# List of secret names to add to the service account as image pull secrets
7075
imagePullSecrets: []
7176

0 commit comments

Comments
 (0)