Skip to content

Commit ca6b83a

Browse files
Wei WengWei Weng
authored andcommitted
fix secret permission
Signed-off-by: Wei Weng <[email protected]>
1 parent 37416f0 commit ca6b83a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

charts/hub-agent/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ spec:
9292
- name: webhook-cert
9393
secret:
9494
secretName: {{ .Values.webhookCertSecretName }}
95-
# defaultMode 0400 (read-only for owner) prevents unauthorized access to certificate files
96-
# and reduces attack surface by ensuring only the container process can read the certs
97-
defaultMode: 0400
95+
# defaultMode 0444 (read for all) allows the container process to read the certs
96+
# regardless of the user/group it runs as
97+
defaultMode: 0444
9898
{{- end }}
9999
{{- with .Values.affinity }}
100100
affinity:

0 commit comments

Comments
 (0)