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

DB connection to Azure postgres failing #147

Open
gkrobo opened this issue Aug 16, 2023 · 0 comments
Open

DB connection to Azure postgres failing #147

gkrobo opened this issue Aug 16, 2023 · 0 comments

Comments

@gkrobo
Copy link

gkrobo commented Aug 16, 2023

https://github.com/sipcapture/homer-app/blob/master/docker/docker-entrypoint.d/1

I'm trying to configure the DB_HOST, DB_USER and DB_PASS by passing env variables to kubernetes container, however there is no config allowing to pass in env vairables such as :

example:

DB_NAME
DB_SSLMODE

and therefore failing to authenticate to Azure postgres

error logs:

CONNECT to DB ROOT STRING: [host=Azure-postgress-host user=azure-postgress-db-user dbname=postgres sslmode=disable port=5432]

{"level":"error","msg":"Couldn't establish connection. Please be sure you can have correct passwordpq: no pg_hba.conf entry for host

{"level":"error","msg":"Try run: sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"","time":

panic: pq: no pg_hba.conf entry for host "redacted", user "redacted", database "redacted", no encryption


the connection string is defaulting these settings

dbname=postgres sslmode=disable

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