Repository navigation
Postgres mTLS support #3215
|
A big feature of Postgres is the ability to authenticate with mutual TLS. This is supported in all other selfhosted apps I've come across, and it would be great for Trek to support it as well. Thanks! |
Answered by
mauriceboe
Nov 26, 2026
Replies: 1 comment
|
Thanks for the request! It's in the next release: |
0 replies
Answer selected by
aclerici38
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the request! It's in the next release:
TREK_DB_URLtakes libpq'ssslcertandsslkeynext tosslrootcert, for examplepostgres://trek@db/trek?sslmode=verify-full&sslrootcert=/certs/ca.crt&sslcert=/certs/client.crt&sslkey=/certs/client.key. Both are needed together and only with a verifyingsslmode, and they're used for the app's connection as well as for backups and restores. The Postgres page in the wiki shows how to mount the files, and that the key file must be0600(or root-owned and at most0640), otherwise pg_dump refuses it.