-
Notifications
You must be signed in to change notification settings - Fork 261
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
Allow passing string values for ssl query string in PostgreSQL URL #575
Comments
Exagone313
pushed a commit
to Exagone313/python-databases
that referenced
this issue
Nov 28, 2023
…ode#575) The underlying library asyncpg accepts string values in the ssl parameter. The old code only accepted the values true and false, which are converted to boolean.
Exagone313
pushed a commit
to Exagone313/python-databases
that referenced
this issue
Nov 28, 2023
…ode#575) The underlying library asyncpg accepts string values in the ssl parameter. The old code only accepted the values true and false, which are converted to boolean.
I found later on that you can pass the But I still believe it could be useful to pass it in the URL. |
Exagone313
pushed a commit
to Exagone313/python-databases
that referenced
this issue
Nov 28, 2023
…ode#575) The underlying library asyncpg accepts string values in the ssl parameter. The old code only accepted the values true and false, which are converted to boolean.
zanieb
pushed a commit
that referenced
this issue
Nov 28, 2023
… (#576) The underlying library asyncpg accepts string values in the ssl parameter. The old code only accepted the values true and false, which are converted to boolean.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the PostgreSQL backend, you can pass the
ssl
key in the query string, with the valuestrue
orfalse
. These are converted to boolean and passed as arguments to asyncpg.create_poolThe asyncpg library accepts other values than only
True
andFalse
, which can be used to choose how certificate validation is done (or not done).For the record, when setting(Edit: This is not true, certificate is checked withssl=true
, the ssl mode used isprefer
, which will fallback to plain if SSL connection fails, so it is not a secure default.ssl=true
, the documentation is not clear on that topic).I'm going to send a PR that permits to send string values, but it will not change the default settings.
The text was updated successfully, but these errors were encountered: