Read any secret from a _FILE variable #75

Merged
jcoffey-dev merged 1 commits from feat/migrate-secret-files into main 2026-11-12 23:22:49 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev d28fac9d2d Read any secret from a _FILE variable
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 3m31s
ci / announce (pull_request) Skipped
Every secret taken from an INBUXA_MIGRATE_* variable can instead be read
from a file named by the same variable with _FILE appended -- the Docker,
Compose and systemd secrets convention. The file holds the secret and
nothing else; one trailing newline is stripped. Setting both a variable
and its _FILE form is rejected.

This keeps a secret out of both the environment and the command line,
consistently across every source, with no per-source flags. The rule
lives in the one place every secret already funnels through,
secret::from_env; the EWS client secret, which was read with a bare
env::var, now goes through it too and gains the same support.
2026-11-12 16:18:48 -07:00