You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original Error: *pgconn.connectError failed to connect to `host=localhost user=postgres database=postgres`: server error (FATAL: connection requires a valid client certificate (SQLSTATE 28000))
Description
What happened:
With the following database configuration:
Connection to Postgres fails with:
In the Postgres logs:
It looks like TLS "insecure" mode just sets InsecureSkipVerify to true and does not actually generate client certificate for the connection:
https://github.com/gravitational/teleport/blob/v9.0.0-beta.1/lib/srv/db/common/auth.go#L384-L393
The setting should only apply to validating the server certificate.
What you expected to happen:
Connection to self-hosted database which presents an invalid certificate should still succeed with "insecure" mode.
Reproduction Steps
As minimally and precisely as possible, describe step-by-step how to reproduce the problem.
The text was updated successfully, but these errors were encountered: