Commit 8463aa1
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments