Read secrets from Docker secrets or env vars too (1.1.0) #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/secrets-outside-config"
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?
The Jellyfin API token, TMDB API key and SMTP password can now stay out of
config.yml.Each is read from the first of
<NAME>_FILE,/run/secrets/<name>,<NAME>andconfig.yml, the same order as mcp-gateway. The names arejellyfin_api_token,tmdb_api_keyandsmtp_password. Existing configs work unchanged.config/secret_sources.go(new): resolution, then the checks the YAML tags used to do (required, required unless TLS is NONE, jwt), with messages that name every place a secret can go.config/model.go,loader.go: the three tags are relaxed and the resolver is called after parsing.main.gologs one "Secret loaded" line per secret with its source, never the value._FILE, a config with all three secrets outside it, a non-JWT TMDB key, and no SMTP password with TLS NONE. Three expected errors in the upstream loader test change./run/secretsand removed from the config, the app running as its non-root user, logsSecret loaded … from /run/secrets/…, connects to Jellyfin, and generates the email.config-example.yml, CHANGELOG, CLAUDE.md. VERSION 1.1.0 (new feature).🤖 Generated with Claude Code