Skip to content

Conversation

@aliismayilov
Copy link
Contributor

When accessory file ends with .erb, it's possible to interpolate environment variables in it. Currently, only clear environment variables are expanded. Not sure if it was a deliberate choice.

This PR includes all env variables (including the aliased ones) in the ERB template processing.

Background: I was trying to run PgBouncer (a PostgreSQL connection pooler) as an accessory, which required the database connection string to be present in its configuration file. I managed to work around this by generating the final config file through a Docker entrypoint script. However, if this PR is accepted, the setup would become much simpler.

@djmb
Copy link
Collaborator

djmb commented Nov 28, 2025

Thank's @aliismayilov!

Happy to merge this one since #1724 now allows you to lock down permissions on those files.

@djmb djmb merged commit 42b6ebb into basecamp:main Nov 28, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants