HOMELAB-988: fix(forgejo-runner): fsGroup 1000 + defaultMode 0440 for mounts #189
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "plane/HOMELAB-988-runner-fsgroup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #188 — the age-key and aws-credentials Secret mounts couldn't be read by the runner user (uid=1000) because they were root-owned with mode 0400. Adding fsGroup=1000 to the Pod securityContext + bumping the file mode to 0440 so group-readable.
The age-key and aws-credentials Secret volumes in PR-B-2 mounted with mode 0400 owned by root, so the runner user (uid=1000) couldn't read them ("Permission denied" when terraform tries to load them). Fix: add fsGroup=1000 in the Pod's securityContext (matches runner's gid) so K8s chgrp's the volume to that group, and bump the file mode to 0440 (owner+group readable) so the runner user gets in via group membership. Verified post-fix: runner can read both files; FORGEJO_TOKEN env still set; both standard env paths intact. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>