Skip to content

Update to latest netty-tcnative release (#17056) - #17122

Merged
chrisvest merged 10 commits into
netty:4.1from
chrisvest:4.1-bump-tcnative
Aug 6, 2026
Merged

chrisvest merged 10 commits into
netty:4.1from
chrisvest:4.1-bump-tcnative

Conversation

@chrisvest

Copy link
Copy Markdown
Member

Motivation:

We released a new version of tcnative.

Modifications:

Update to latest version

Result:

Use latest tcnative version


Co-authored-by: Chris Vest [email protected]

(cherry picked from commit 4670762)

Motivation:

We released a new version of tcnative.

Modifications:

Update to latest version

Result:

Use latest tcnative version

---------

Co-authored-by: Chris Vest <[email protected]>

(cherry picked from commit 4670762)
@chrisvest chrisvest added this to the 4.1.137.Final milestone Jul 22, 2026
@chrisvest
chrisvest enabled auto-merge (squash) July 22, 2026 18:41
@chrisvest
chrisvest force-pushed the 4.1-bump-tcnative branch from b9ec017 to 7eecbff Compare July 22, 2026 22:11
@normanmaurer

Copy link
Copy Markdown
Member

@chrisvest @hyperxpro didn't we fix the OCSP issues in 4.1 ?

@hyperxpro

Copy link
Copy Markdown
Contributor

@chrisvest @hyperxpro didn't we fix the OCSP issues in 4.1 ?

We did: #17134

Let me dig deeper into failures

@hyperxpro

Copy link
Copy Markdown
Contributor

Below is the investigation from Claude Code - We need some work to get this flowing.


OpenSSL 3.6 changed how single OCSP stapling works, and this PR's Dockerfile change is what puts 3.6.1 into the image (tcnative 2.0.81's openssl-dynamic build needs libssl.so.3, with a DT_RPATH of /opt/openssl-3.6.1/lib). Two changes matter, and either one alone breaks the test:

  1. SSL_set_tlsext_status_ocsp_resp now DER-parses the response instead of storing it as an opaque blob. On parse failure it discards the response but still returns 1, so tcnative's != 1L check at ssl.c:2528 never fires, nothing throws,
    and the server sends no staple.
  2. ossl_get_ocsp_response() now returns NULL when the server's leaf certificate is self-signed (ssl/statem/statem_srvr.c:511 in 3.6.1 through 3.6.3, absent in 3.5.x).

OcspTest hits both. newOcspResponse() returns an ASCII string with the comment "OpenSSL does not care about the format of the byte[]!", and handshake() uses CachedSelfSignedCertificate. So the server stapes nothing, the handshake completes normally, and getOcspResponse() on the client returns null, which is the assertNotNull at OcspTest.java:210 and :252.

I verified this with two independent reproducers, one in Java and one in C, against a locally built OpenSSL 3.6.1. On 3.5.5 every combination passes. On 3.6.1 every self-signed combination fails, including one with a real correctly signed response whose certID matches, and CA-issued with bogus bytes fails as well. BoringSSL and AWS-LC stay green because their tcnative path still stores the response as an opaque blob, with no parse and no self-signed check. The failing/passing split across all ten Linux jobs is exactly 1:1 on that axis.

Upstream considers the DER requirement intentional. openssl/openssl#30379 is the same failure in pyopenssl's test suite, closed with "This really should be an OCSP response data. That this worked before is IMO just a coincidence."

Ref: openssl/openssl#20945

@normanmaurer

Copy link
Copy Markdown
Member

@hyperxpro hmm ok.... let just pin to '3.5.5' and do a followup.

Comment thread docker/Dockerfile.centos6 Resolved
Use 3.5.7 for now so stabling tests pass
Comment thread docker/Dockerfile.centos6 Resolved
@normanmaurer

Copy link
Copy Markdown
Member

@hyperxpro but why does it only fail on the 4.1 branch and not the 4.2 ?

@hyperxpro

Copy link
Copy Markdown
Contributor

So tests are failing in OcspTest class. And this class depends on assumeTrue(OpenSsl.isOcspSupported()); which needs OpenSSL >= 1.0.2.

In 4.1, OcspTest is in handler module which imports tcnative but till now, 4.1 shipped with 1.0.1e (via CentOS 6) and hence this was skipped.

In 4.2 , OcspTest is in handler-ssl-ocsp which does not imports tcnative and hence condition was not met and skipped - so CI is green.

So - 4.2 is also broken; It's just the test is not running.

@normanmaurer

normanmaurer commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

@hyperxpro got it... let just only support it when using BoringSSL / AWSLC for now

@chrisvest

chrisvest commented Aug 5, 2026 •

Copy link
Copy Markdown
Member Author

Graal build will be fixed by #17219

It's fixed by setting the DH key size through a system property.

…anges

Fixes issues where old graal versions pick 1024-bit parameters in some builds.
@chrisvest
chrisvest disabled auto-merge August 6, 2026 04:55
@chrisvest
chrisvest merged commit c602219 into netty:4.1 Aug 6, 2026
17 of 18 checks passed
@chrisvest
chrisvest deleted the 4.1-bump-tcnative branch August 6, 2026 04:55
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
Motivation:

We released a new version of tcnative.

Modifications:

Update to latest version

Result:

Use latest tcnative version

---------

Co-authored-by: Chris Vest <[email protected]>

(cherry picked from commit 4670762)

---------

Co-authored-by: Norman Maurer <[email protected]>
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.

3 participants