Skip to content

Commit 759df5e

Browse files
authored
feat: add docs for tls_client_ca_certificate (#72)
1 parent b773f6f commit 759df5e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/configuration/pgdog.toml/general.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ Reject clients that connect without TLS. Consider setting this to `true` when us
8686

8787
Default: **`false`** (disabled)
8888

89+
### `tls_client_ca_certificate`
90+
91+
Path to a certificate bundle used for mTLS client certificate validation on TLS connection creation. If provided, clients without a valid certificate are rejected at the handshake. Set [`tls_client_required`](#tls_client_required) to additionally require TLS itself.
92+
93+
Default: **none**
94+
8995
### `tls_verify`
9096

9197
How to handle TLS connections to Postgres servers. By default, PgDog will attempt to establish TLS and will accept _any_ server certificate.

docs/migrating-to-pgdog/from-pgbouncer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Settings that control how client and server connections use TLS.
225225
| [`client_tls_sslmode`](https://www.pgbouncer.org/config.html#client_tls_sslmode) | [`tls_client_required`](../configuration/pgdog.toml/general.md#tls_client_required) | Boolean setting in PgDog only. `true` forces clients to use TLS, `false` doesn't. |
226226
| [`client_tls_key_file`](https://www.pgbouncer.org/config.html#client_tls_key_file) | [`tls_private_key`](../configuration/pgdog.toml/general.md#tls_private_key) | - |
227227
| [`client_tls_cert_file`](https://www.pgbouncer.org/config.html#client_tls_cert_file) | [`tls_certificate`](../configuration/pgdog.toml/general.md#tls_certificate) | - |
228-
| [`client_tls_ca_file`](https://www.pgbouncer.org/config.html#client_tls_ca_file) | N/A | mTLS is not currently supported in PgDog. |
228+
| [`client_tls_ca_file`](https://www.pgbouncer.org/config.html#client_tls_ca_file) | [`tls_client_ca_certificate`](../configuration/pgdog.toml/general.md#tls_client_ca_certificate) | Enables mTLS for client connections. |
229229
| [`client_tls_protocols`](https://www.pgbouncer.org/config.html#client_tls_protocols) | N/A | Only modern and secure protocols are supported. |
230230
| [`client_tls_ciphers`](https://www.pgbouncer.org/config.html#client_tls_ciphers) | N/A | Same as above. |
231231
| [`client_tls13_ciphers`](https://www.pgbouncer.org/config.html#client_tls13_ciphers) | N/A | Same as above. |

0 commit comments

Comments
 (0)