orchestracities / ngsi-timeseries-api

QuantumLeap: a FIWARE Generic Enabler to support the usage of NGSIv2 (and NGSI-LD experimentally) data in time-series databases
https://quantumleap.rtfd.io/
MIT License
38 stars 49 forks source link

Support for Docker Secrets #769

Open juliangrube1988 opened 1 month ago

juliangrube1988 commented 1 month ago

Is your feature request related to a problem? Please describe. Id like to use QuantumLeap in a Docker Compose file using Docker secrets to configure POSTGRES_DB_NAME, POSTGRES_DB_USER and POSTGRES_DB_PASS.

Describe the solution you'd like If environment variable POSTGRES_DB_NAME_FILE, POSTGRES_DB_USER_FILE and POSTGRES_DB_PASSFILE is set, try to read from specified path and set value like for example: https://hub.docker.com//postgres and https://hub.docker.com/_/mysql.

c0c0n3 commented 3 weeks ago

hi @juliangrube1988 :-)

Thanks for the suggestion, but we only use Docker for testing in dev environments where using plain text passwords is obviously not an issue. For production, we run on K8s and use K8s secrets.

That said, you're welcome to contribute this feature yourself :-)