Skip to content

Fix keyfile permissions#3

Merged
joshWretlind merged 3 commits intomainfrom
LIB-409
Feb 18, 2026
Merged

Fix keyfile permissions#3
joshWretlind merged 3 commits intomainfrom
LIB-409

Conversation

@joshWretlind
Copy link

@joshWretlind joshWretlind commented Feb 17, 2026

So the short answer to this is that percona adds the keyfile from a volume mount in the statefulset -- however when it assigns permissions to that volume, it gives it permissions of 288(which is decimal, the octal format there is 440) As such, we can't tweak the permissions of the file in the location that percona mounts it

This copies the keyfile over to a temp dir where we can edit it, tweaks the permissions to give it 400, and then switches the argument in mongod to use the new path for the keyfile.

This makes mongo happier with starting this image

@github-actions github-actions bot added the build label Feb 17, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@joshWretlind joshWretlind merged commit d93f3d3 into main Feb 18, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments