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

Don't store db credentials in file #351

Open
mgrunbauer opened this issue Mar 7, 2024 · 0 comments
Open

Don't store db credentials in file #351

mgrunbauer opened this issue Mar 7, 2024 · 0 comments

Comments

@mgrunbauer
Copy link
Collaborator

This PR introduces pgbouncer to setup connection pooling for Postgres.

It uses the ADAGUC_DB environment variable so that pgbouncer knows where to connect to, and adaguc-server can then connect to localhost. To make pgbouner work, the username and password (from ADAGUC_DB) get stored in the userlists.txt, which gets written by run_supervisord.sh.

Ideally, the username and password would not get stored in a file, but kept in an environment variable which pgbouncer could use to connect.

Alternatively, maybe it is possible to omit the userlist.txt and store user/pass directly in the pgbouncer.ini file.

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

1 participant