Skip to content

Add verify-full to supported SSL modes for postgres#1704

Open
ragne wants to merge 1 commit into
dimitri:masterfrom
ragne:add-ssl-full-mode
Open

Add verify-full to supported SSL modes for postgres#1704
ragne wants to merge 1 commit into
dimitri:masterfrom
ragne:add-ssl-full-mode

Conversation

@ragne

@ragne ragne commented Jun 15, 2026

Copy link
Copy Markdown

I wanted to use the tool with databricks lakebase and it seems like pgloader doesn't support SNI with any of the existing sslmode values.
Underlying Postmodern library seem to support SNI with mode set to :full and it looks like in the pgloader code only the parsing bits need to be fixed.

The only problem I see is that semantics are different from what libpq does.
libpq sends SNI by default through the sslsni connection parameter, independently of the selected sslmode. In libpq, sslmode=require still uses TLS and sends SNI by default; sslmode=verify-full additionally verifies the server certificate hostname.
But cl-postgres from Postmodern appears to pass the hostname to the TLS layer only for the :full SSL mode.

Please take a look and let me know your thoughts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant