Skip to content

Ongres SCRAM upgrade#1592

Merged
tsegismont merged 1 commit intoeclipse-vertx:4.xfrom
tsegismont:ongres-upgrade
Dec 12, 2025
Merged

Ongres SCRAM upgrade#1592
tsegismont merged 1 commit intoeclipse-vertx:4.xfrom
tsegismont:ongres-upgrade

Conversation

@tsegismont
Copy link
Copy Markdown
Member

This is essentially a backport of #1431 plus some other changes (see individual commits for details)

@tsegismont tsegismont added this to the 4.5.23 milestone Dec 12, 2025
@tsegismont tsegismont force-pushed the ongres-upgrade branch 3 times, most recently from 7ff4a54 to 7cbca8c Compare December 12, 2025 14:08
Also, the scram dependency is optional and the module descriptor declares it as static, however in practice when the scram dependency is not available the client cannot be used because the ScramAuthentication is unavailable due to a classloading error. The client should be resilient to this common case and continue to work when scram is not available.

Changes:

Introduce an indirection level, the scram interactions are now handled by a ScramSession and the ScramAuthentication is a factory for sessions. When the scram dependency is not available the ScramAuthentication instance is null, the InitCommandCodec can check this field and throw an exception that will close the connection (as per the protocol requirements).

Result:

The client runs fine without the scram dependency on the class/module path.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont merged commit 427afda into eclipse-vertx:4.x Dec 12, 2025
24 checks passed
@tsegismont tsegismont deleted the ongres-upgrade branch December 12, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants