mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
a9fd443b63
A Postgres server that authenticates clients by certificate could not be used: TREK read only sslmode and sslrootcert from TREK_DB_URL, so neither the connection pool nor pg_dump, pg_restore and psql ever offered a client certificate (discussion #3215). TREK_DB_URL now also takes libpq's sslcert and sslkey. Both must be given together and only with a verifying sslmode, and each file must be readable, or the boot refuses with the same kind of message as for sslrootcert. The pool gets them as its TLS cert and key, the tools as PGSSLCERT and PGSSLKEY. The Postgres wiki page shows the URL, how to mount the files with Compose or the chart's extraVolumes, and libpq's rule for the key file's permissions, which the backup tools enforce.