Read every secret from a file (*_FILE) #425

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

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

Every secret the server reads from the environment can also come from a file named by the same variable plus _FILE. Store credentials in config.json can reference a file.

Done when

  • All secret env vars have a _FILE form, with tests
  • Documented in the reference
**K-S2** · size S · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts) Every secret the server reads from the environment can also come from a file named by the same variable plus `_FILE`. Store credentials in config.json can reference a file. **Done when** - All secret env vars have a _FILE form, with tests - Documented in the reference
jcoffey-dev added this to the 27.1 milestone 2026-11-18 05:14:38 +00:00
jcoffey-dev added the enhancementsecurity labels 2026-11-18 05:14:38 +00:00
jcoffey-dev self-assigned this 2026-11-18 06:28:57 +00:00
jcoffey-dev added the
priority
p2
label 2026-11-18 06:28:57 +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 #461, which ships in 27.1-rc.32.

  • INBUXA_RECOVERY_ADMIN_FILE and INBUXA_WEBMAIL_CLIENT_SECRET_FILE read the secret from a file. A trailing newline is dropped.
  • The relay takes INBUXA_RELAY_JOIN_TOKEN_FILE the same way.
  • The server won't start if a variable is set both ways, or if its file is missing, unreadable or empty. The error names the variable and the path, never the secret.

The chart uses this for the webmail's client secret in inbuxa-charts#19, which merges once the chart's server image is rc.32. The webmail's own secrets are K-W4.

Done in #461, which ships in 27.1-rc.32. - `INBUXA_RECOVERY_ADMIN_FILE` and `INBUXA_WEBMAIL_CLIENT_SECRET_FILE` read the secret from a file. A trailing newline is dropped. - The relay takes `INBUXA_RELAY_JOIN_TOKEN_FILE` the same way. - The server won't start if a variable is set both ways, or if its file is missing, unreadable or empty. The error names the variable and the path, never the secret. The chart uses this for the webmail's client secret in inbuxa-charts#19, which merges once the chart's server image is rc.32. The webmail's own secrets are K-W4.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-server#425