*_FILE secrets and read-only root #106

Closed
opened 2026-11-18 05:14:41 +00:00 by jcoffey-dev · 2 comments
Owner

K-W4 · size S · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts)

APP_SECRET and OAUTH_CLIENT_SECRET readable from files; the image runs with a read-only root filesystem.

Done when

  • Both secrets work from _FILE
  • Runs read-only with documented emptyDir paths

Depends on: S2

**K-W4** · size S · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts) APP_SECRET and OAUTH_CLIENT_SECRET readable from files; the image runs with a read-only root filesystem. **Done when** - Both secrets work from _FILE - Runs read-only with documented emptyDir paths **Depends on:** S2
jcoffey-dev added this to the 27.1 milestone 2026-11-18 05:14:41 +00:00
jcoffey-dev added the securityenhancement labels 2026-11-18 05:14:41 +00:00
jcoffey-dev self-assigned this 2026-11-18 06:28:59 +00:00
jcoffey-dev added the
priority
p2
label 2026-11-18 06:28:59 +00:00
Author
Owner

Folded into the checklist on inbuxa/inbuxa-charts#14 to keep the issue list short. The details stay here; reopen this when work on it starts.

Folded into the checklist on inbuxa/inbuxa-charts#14 to keep the issue list short. The details stay here; reopen this when work on it starts.
Author
Owner

Done in #114, which ships in 27.1-rc.7.

  • APP_SECRET_FILE, APP_SECRET_PREVIOUS_FILE and OAUTH_CLIENT_SECRET_FILE read the secret from a file. One trailing newline is dropped.
  • The webmail won't start if both forms are set, or if the file can't be read or is empty. The error names the variable and the path, never the value.
  • The README covers running with a read-only root: the only thing written is SESSION_FILE, a small /tmp is still given, and IMMUTABLE=1 checks it all at start.

The chart (inbuxa-charts#20) mounts both secrets as files and sets IMMUTABLE=1. On kind, two replicas run that way and sign-in across them passes.

Done in #114, which ships in 27.1-rc.7. - `APP_SECRET_FILE`, `APP_SECRET_PREVIOUS_FILE` and `OAUTH_CLIENT_SECRET_FILE` read the secret from a file. One trailing newline is dropped. - The webmail won't start if both forms are set, or if the file can't be read or is empty. The error names the variable and the path, never the value. - The README covers running with a read-only root: the only thing written is `SESSION_FILE`, a small `/tmp` is still given, and `IMMUTABLE=1` checks it all at start. The chart (inbuxa-charts#20) mounts both secrets as files and sets `IMMUTABLE=1`. On kind, two replicas run that way and sign-in across them passes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-webmail#106