Repository navigation
1.17.0 — PostgreSQL sslmode follows libpq
PostgreSQL TLS release: sslmode now follows libpq, so managed databases with a private CA (RDS/Aurora, Cloud SQL, Azure) connect under the default mode again. Highlights:
Fixed
- PostgreSQL
sslmodenow follows libpq. Every mode exceptdisableverified the server certificate against the OS trust store, soprefer(the default, and the mode most URLs inherit without saying so) could not reach a managed database at all: RDS/Aurora, Cloud SQL and Azure present a certificate signed by their own private CA, and the handshake failed withUnknownIssuerbefore the first query. As in libpq (and therefore asyncpg and psycopg),preferandrequirenow encrypt without authenticating the server. The connection is still TLS; this is not a fallback to plaintext.
Added
sslmode=verify-caandsslmode=verify-fullare accepted in PostgreSQL URLs and are the way to ask for certificate verification now thatrequireno longer implies it.verify-cachecks the chain,verify-fullalso checks the hostname.sslrootcert=<path>adds the PEM roots in that file to the trust store for the verifying modes (typically the RDS/Cloud SQL CA bundle). As in libpq, it does not by itself turn verification on. An unreadable file, or one holding no certificate, is a configuration error rather than a silent fallback to the OS roots.
Full details in CHANGELOG.md.