Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand or rename secrets #1203

Open
daanlenaerts opened this issue Nov 7, 2024 · 1 comment
Open

Expand or rename secrets #1203

daanlenaerts opened this issue Nov 7, 2024 · 1 comment

Comments

@daanlenaerts
Copy link

When setting up a Kamal project with two accessories: a Postgres database and a Pgbouncer accessory, I ran into a scenario where the Postgres container expects a DB_PASSWORD secret, where the Pgbouncer container expects a POSTGRES_PASSWORD secret.

My current solution is to set both in the secrets file:

DB_PASSWORD=1234
POSTGRES_PASSWORD=1234

Is there any way to expand or rename those secrets in the deploy.yml file such that is not necessary to repeat the same password twice in the secrets file?

@daanlenaerts daanlenaerts changed the title Expand secrets Expand or rename secrets Nov 7, 2024
@vldmr-k
Copy link

vldmr-k commented Nov 8, 2024

Hi!
You can use

DB_PASSWORD=1234
POSTGRES_PASSWORD=$DB_PASSWORD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants