-
Notifications
You must be signed in to change notification settings - Fork 130
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
postgres sslmode not respected when using environment variable connection string #260
Comments
danielmklein
changed the title
postgres sslmode=require not respected when using environment variable connection string
postgres sslmode not respected when using environment variable connection string
Dec 2, 2022
mossbanay
added a commit
to mossbanay/refinery
that referenced
this issue
Jan 14, 2023
mossbanay
added a commit
to mossbanay/refinery
that referenced
this issue
Jan 14, 2023
mossbanay
added a commit
to mossbanay/refinery
that referenced
this issue
Jan 14, 2023
mossbanay
added a commit
to mossbanay/refinery
that referenced
this issue
Jan 14, 2023
mossbanay
added a commit
to mossbanay/refinery
that referenced
this issue
Jan 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there!
We are using Refinery via the CLI, a la
refinery migrate -e DATABASE_URL -p ./migrations
.We really want to require SSL connections to our Postgres database, but Refinery is proving problematic for that. When
DATABASE_URL
is of the formpostgres://my_user:[email protected]:5432/db_name?sslmode=require
, it does not appear that thesslmode
param is respected.When the relevant database is configured to require SSL, we see an error of the form
0: db error: FATAL: no pg_hba.conf entry for host "x.x.x.x", user "my_user", database "db_name", no encryption
, indicating that Refinery is not actually using SSL for the connection.Please let me know if there is more info I can provide to help debugging this!
The text was updated successfully, but these errors were encountered: