Skip to content

Add support for direct SSL negotiation (PostgreSQL 17+)#1659

Merged
tsegismont merged 2 commits intoeclipse-vertx:masterfrom
tsegismont:pg-direct-ssl
Apr 8, 2026
Merged

Add support for direct SSL negotiation (PostgreSQL 17+)#1659
tsegismont merged 2 commits intoeclipse-vertx:masterfrom
tsegismont:pg-direct-ssl

Conversation

@tsegismont
Copy link
Copy Markdown
Member

Closes #1536

  • Added SslNegotiation enum with POSTGRES (default) and DIRECT modes
  • Extended PgConnectOptions with sslNegotiation field, supporting configuration via API, connection URI, and environment variable
  • Refactored PgConnectionFactory to handle direct SSL with ALPN protocol negotiation
  • Added tests with PostgreSQL 17+ version checks
  • Updated documentation

The implementation maintains full backward compatibility by defaulting to traditional negotiation (POSTGRES mode).

Some portions of this content were created with the assistance of Claude Code.

Closes eclipse-vertx#1536

- Added SslNegotiation enum with POSTGRES (default) and DIRECT modes
- Extended PgConnectOptions with sslNegotiation field, supporting configuration via API, connection URI, and environment variable
- Refactored PgConnectionFactory to handle direct SSL with ALPN protocol negotiation
- Added tests with PostgreSQL 17+ version checks
- Updated documentation

The implementation maintains full backward compatibility by defaulting to traditional negotiation (POSTGRES mode).

Some portions of this content were created with the assistance of Claude Code.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
In case it's null, create a new instance

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont merged commit 865a88f into eclipse-vertx:master Apr 8, 2026
19 checks passed
@tsegismont tsegismont deleted the pg-direct-ssl branch April 8, 2026 17:08
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.

PostgreSQL: Add support for direct SSL negotiation

1 participant