basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
10.6k stars 408 forks source link

Secret in configuration files passed/mounted to accessories #993

Closed ahmgeek closed 6 days ago

ahmgeek commented 6 days ago

Context

Sometimes there are some config files required to be mounted to accessories, in these config files there are secrets or password. Kamal doesn't have the notion of interpolating these config files since they are not .env file.

Questions

Is there a way to replace these secrets/password during deployments? Is there entry points if we want to support this so I can work on a PR?

ahmgeek commented 6 days ago

you need to append any file with .erb and do the usual password = <%= ENV["MYSQL_EXPORTER_PASSWORD"] %> for instance.