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
chmod secrets in an emptyDir (avoiding need for root to chown to running user)
This relies on the fact that an emptyDir is set up with appropriate
permissions for whichever userid is running in the pod. The prior solution
required running chown/chmod by root in the init container. This obviates
the need for root, which is not permitted in many kubernetes installs
as a security precaution.
Fixeszitadel#177 and also fixeszitadel#178 (since there is no chown anymore).
Copy file name to clipboardexpand all lines: charts/zitadel/templates/debug_replicaset.yaml
+9-11
Original file line number
Diff line number
Diff line change
@@ -63,8 +63,9 @@ spec:
63
63
volumeMounts:
64
64
- name: zitadel-config-yaml
65
65
mountPath: /config
66
-
- name: chowned-secrets
66
+
- name: copied-secrets
67
67
mountPath: /.secrets
68
+
readOnly: true
68
69
{{- if or .Values.zitadel.secretConfig .Values.zitadel.dbSslCaCrt .Values.zitadel.dbSslCaCrtSecret .Values.zitadel.dbSslUserCrtSecret .Values.zitadel.configSecretName }}
Copy file name to clipboardexpand all lines: charts/zitadel/templates/deployment.yaml
+11-12
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,9 @@ spec:
154
154
volumeMounts:
155
155
- name: zitadel-config-yaml
156
156
mountPath: /config
157
-
- name: chowned-secrets
157
+
- name: copied-secrets
158
158
mountPath: /.secrets
159
+
readOnly: true
159
160
{{- if .Values.zitadel.selfSignedCert.enabled }}
160
161
- name: tls
161
162
mountPath: /etc/tls
@@ -165,6 +166,7 @@ spec:
165
166
{{- end }}
166
167
resources:
167
168
{{- toYaml .Values.resources | nindent 14 }}
169
+
{{- if or .Values.zitadel.secretConfig .Values.zitadel.dbSslCaCrt .Values.zitadel.dbSslCaCrtSecret .Values.zitadel.dbSslUserCrtSecret .Values.zitadel.configSecretName }}
168
170
initContainers:
169
171
- args:
170
172
- "{{ include "zitadel.joincpcommands" (dict "commands" (list
0 commit comments