Skip to content

Commit 8463aa1

Browse files
committed
Fix: Set SP key Secret volume defaultMode to 0444 for nonroot init container
The distroless init container runs as nonroot (UID 65534). With defaultMode 0440, files are owned by root:root and not readable by the nonroot user. Changing to 0444 makes the Secret mount readable. The init container still writes 0440 permissions on the tmpfs destination (enforced by os.Chmod in the Go binary), so the final files are restricted to the nonroot user only.
1 parent 640337e commit 8463aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openstack/keystone/templates/deployment-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ spec:
300300
- name: keystone-saml-sp-keys
301301
secret:
302302
secretName: {{ .Values.federation.saml.idp.spKeySecretName | default "keystone-saml-sp" }}
303-
defaultMode: 0440
303+
defaultMode: 0444
304304
- name: saml-sp-tmpfs
305305
emptyDir:
306306
medium: Memory

0 commit comments

Comments
 (0)