Skip to content

DSP-24887: Enable SAN-aware peer identity lookup for Endpoint verifications on hostname - #42

Open
piyushk010 wants to merge 2 commits into
dse-netty-4.1.135from
dse-netty-4.1.135.2
Open

DSP-24887: Enable SAN-aware peer identity lookup for Endpoint verifications on hostname#42
piyushk010 wants to merge 2 commits into
dse-netty-4.1.135from
dse-netty-4.1.135.2

Conversation

@piyushk010

Copy link
Copy Markdown

This patch is a rebase of #40 on top of dse-netty-4.1.135

Enable SAN-aware peer identity lookup for Netty client endpoint verification based
on hostname.

Added a new opt-in SAN-aware peer identity feature via `SAN_PEER_IDENTITY_LOOKUP`
in Netty SSL context configuration. Implemented `SanPeerIdentityTrustManager` to
dynamically select the verification identity based on certificate SAN types,
including optional reverse-DNS lookup for IP-based peers with DNS SAN certs.

Integrated the feature into both JDK and OpenSSL client TLS paths by wrapping
`X509ExtendedTrustManager` during SSL context/session creation. Updated
`SslContextBuilder`, `OpenSslClientContext`, `ReferenceCountedOpenSslClientContext`,
and `JdkSslClientContext` so the SAN-aware verification behavior is propagated
consistently across providers.
@piyushk010
piyushk010 force-pushed the dse-netty-4.1.135.2 branch from ef52e6a to 4f11eaa Compare July 31, 2026 16:06
@piyushk010 piyushk010 changed the title DSP-24887: Enable SAN-aware peer identity lookup for verifications DSP-24887: Enable SAN-aware peer identity lookup for Endpoint verifications on hostname Jul 31, 2026

@emerkle826 emerkle826 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm requesting changes because I think we need one more thing here.

Normally, when we update Netty, we merge some 4.1.X.Final upstream branch into our most recent forked branch, change all the POM versions to be 4.1.x.1.dse and name that branch dse-netty-4.1.X. You have created a dse-netty-4.1.135.2branch based off Tiago'sdse-netty-4.1.135` branch, so that's fine.

But what needs to happen is all of the pom.xml files need to be updated to have:

<version>4.1.135.2.dse</version>

(see #41 where Tiago updates all the poms)

Once that is done, this branch I think is fine as is, and we just have to

  1. Building this branch in GitHub Actions
  2. Publish the artifacts to our Datastax JFrog
  3. Update our DSE branches to use version 4.1.135.2.dse here

So I think all you are missing is the updated pom.xml files. Basically, finad all the poms that have

<version>4.1.135.1.dse</version>

And update them to

<version>4.1.135.2.dse</version>

then We should be able to trigger the GitHub Action that builds and published all this stuff and then you should be able to just bump the version in the BDP branches.

@emerkle826 emerkle826 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct to me now.

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.

2 participants