Database connection through ENV var #1467
-
Currently the database connection has to be supplied in the config.yml file like
Is it possible to instead pass it via ENV var? We ideally don't want to have connection string details stored like that, and our corporate security also don't approve of that. With ENV variables, we can then store these in something like AWS Secret Manager and the ECS Service can then pull in the secret value and expose it as an ENV variable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes, that functionality was recently added: https://github.com/quay/clair/blob/main/config/database.go#L15. You should be able to use the documented |
Beta Was this translation helpful? Give feedback.
Yes, that functionality was recently added: https://github.com/quay/clair/blob/main/config/database.go#L15. You should be able to use the documented
PG*
env vars to configure the DB connection(s).