GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update to latest netty-tcnative release (#17056) by chrisvest · Pull Request #17122 · netty/netty

Conversation

@chrisvest

@chrisvest chrisvest commented Jul 22, 2026

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@normanmaurer @chrisvest
Update to latest netty-tcnative release (netty#17056)
c9ccb56
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 mentioned this pull request Jul 22, 2026
Update to latest netty-tcnative release #17056
Merged
@chrisvest
Fix installataion of devtoolset
7eecbff
@chrisvest
chrisvest force-pushed the 4.1-bump-tcnative branch from b9ec017 to 7eecbff Compare July 22, 2026 22:11
chrisvest and others added 3 commits July 24, 2026 09:53
@chrisvest
Merge branch '4.1' into 4.1-bump-tcnative
57c7481
@chrisvest
Merge branch '4.1' into 4.1-bump-tcnative
b0c7898
@normanmaurer
Merge branch '4.1' into 4.1-bump-tcnative
f45dac7
@normanmaurer

normanmaurer commented Aug 3, 2026

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hyperxpro

hyperxpro commented Aug 3, 2026

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hyperxpro

hyperxpro commented Aug 3, 2026

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Aug 4, 2026

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer
normanmaurer reviewed Aug 4, 2026
View reviewed changes
Comment thread docker/Dockerfile.centos6 Resolved

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
Apply suggestion from @normanmaurer
b2cb087
Use 3.5.7 for now so stabling tests pass
normanmaurer
normanmaurer reviewed Aug 4, 2026
View reviewed changes
Comment thread docker/Dockerfile.centos6 Resolved

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
Fix docker image
8bd4615
@normanmaurer

normanmaurer commented Aug 4, 2026

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hyperxpro

hyperxpro commented Aug 4, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer

normanmaurer commented Aug 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer added 2 commits August 5, 2026 16:07
@normanmaurer
Enable OCSP only when using boringssl / awslc
d844545
@normanmaurer
docker file
1682469
@chrisvest

chrisvest commented Aug 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest chrisvest mentioned this pull request Aug 5, 2026
Update the graal build to Graal CE 17 #17219
Closed
@chrisvest
Always use 2048-bit DH keys for tests that do Diffie-Hellman key exch…
d028109
…anges

Fixes issues where old graal versions pick 1024-bit parameters in some builds.
@chrisvest
chrisvest force-pushed the 4.1-bump-tcnative branch from b1f7f1c to d028109 Compare August 6, 2026 00:36
@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

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest
chrisvest deleted the 4.1-bump-tcnative branch August 6, 2026 04:55
@normanmaurer normanmaurer mentioned this pull request Aug 6, 2026
Ensure OCSP is also tested with out native implementation #17220
Merged
@lhotari lhotari mentioned this pull request Aug 10, 2026
[fix][sec][branch-4.2] Upgrade Netty to 4.1.137 to address several CVEs and bugs apache/pulsar#26301
Merged
2 of 11 tasks
@coderabbitai coderabbitai Bot mentioned this pull request Sep 18, 2026
fix(deps): close the amqp-client credential-leak advisory left open on dev OpenResilienceInitiative/ORISO-UserService#1190
Merged
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
@chrisvest @normanmaurer @lltopk
Update to latest netty-tcnative release (netty#17056) (netty#17122)
c70de50
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

Reviewers

@normanmaurer normanmaurer normanmaurer left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.1.137.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@chrisvest @normanmaurer @hyperxpro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.