bitmagnet-io / bitmagnet

A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
https://bitmagnet.io/
MIT License
2.01k stars 76 forks source link

Allow to load secrets from file #258

Open fooker opened 2 weeks ago

fooker commented 2 weeks ago

Allow to load secrets like database password or TMDB API keys from file.

Is your feature request related to a problem? Please describe

Passing secrets using environment variables is discouraged and storing secrets in config files could be problematic when used in config management systems. Allowing to load secrets from files would allow secret management during deployment or use systemd credential services.

Describe the solution you'd like

Add additional configuration properties to load secrets from file.

Describe alternatives you've considered

Loading the secrets into environment variables in service pre-start.

Additional context

I'm building a nixos module for bitmagnet