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 — fix: preserve musl compatibility in FIPS build by pe-bernard · Pull Request #1008 · netty/netty-tcnative

Conversation

@pe-bernard

@pe-bernard pe-bernard commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Why

#997 added the musl compatibility check to the FIPS native-jar execution, but did not port the corresponding link and post-link handling from the Linux release profiles. As a result, FIPS artifacts retain glibc loader and runtime dependencies that make them fail the new check.

Changes

  • link the C++ runtime and unwinder archives statically in fips-boringssl-static
  • remove the architecture-specific ld-linux DT_NEEDED entry from the final FIPS native library before the musl check
  • document that FIPS, x86_64, and aarch64 profiles each duplicate these compatibility settings

Verification

  • xmllint --noout boringssl-static/pom.xml
  • git diff --check
  • downstream Linux FIPS builds completed successfully on x86_64 and aarch64, including the native musl compatibility check

Local Maven model validation was not run because this machine has no Java runtime.

Sorry, something went wrong.

Uh oh!

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

All reactions
@pe-bernard
pe-bernard marked this pull request as ready for review September 8, 2026 10:16
@pe-bernard
fix: preserve musl compatibility in FIPS build
7972ff2
@pe-bernard
pe-bernard force-pushed the pe-bernard/fix-fips-musl-compatibility branch from e1e0f73 to 7972ff2 Compare September 8, 2026 10:18
@normanmaurer normanmaurer added this to the 2.0.85.Final milestone Sep 8, 2026
@normanmaurer

normanmaurer commented Sep 8, 2026

Copy link
Copy Markdown
Member

/cc @fredericgermain

All reactions

Sorry, something went wrong.

Uh oh!

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

@fredericgermain

fredericgermain commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Ah a FIPS variant. I didn't see that one. I'm testing FIPS in CI in many variants rn, using the pinned fips commit in https://boringssl.googlesource.com/boringssl.

There could be quite a lot of subtilities with FIPS and compiler flags.

That's something you'd be interested to have in CI? It could be part of work I did on the CI builds, but it'd need some time to finalise.

Thanks Pierre-Eloi for your PR!

All reactions

Sorry, something went wrong.

Uh oh!

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

@normanmaurer
normanmaurer merged commit e73cc82 into netty:main Sep 9, 2026
17 checks passed

Uh oh!

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

@fredericgermain fredericgermain mentioned this pull request Sep 9, 2026
Build the FIPS profile in CI, and make it build again #1009
Open
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Sep 9, 2026
@fredericgermain
CI: build boringssl-static and the FIPS profile on Debian 13, verify …
a7fd9c2
…both jars on Alpine

Motivation:

CI built boringssl-static only on the two release images and never built the
FIPS profile at all, so netty#997 could add the musl check to that profile without
the matching link changes and nothing failed until a downstream build did
(netty#1008).

Modifications:

- docker/Dockerfile.debian13 + docker-compose.debian-13.yaml: `build`
  (default profile) and `build-fips`. The image carries the build environment
  from certificate #5244's security policy, the module the FIPS profile pins:
  clang 17.0.6 and ninja 1.12.1 from the Debian archive, go 1.22.3 and
  cmake 3.29.3 downloaded at those versions. No JDK 8 in trixie: the build
  runs on JDK 21 with the pom's --release 8.
- ci-pr.yml / ci-build.yml: legs debian13-x86_64 and debian13-x86_64-fips,
  and two bare-Alpine musl-verify legs on their jars. The FIPS one is the leg
  with no substitute: the module's integrity check and self-tests run in an
  ELF constructor at dlopen, so only a real load proves the post-link
  patchelf left it intact.
- docker/README.md, docs/musl-compatibility.md.

Result:

A change to the FIPS profile, or to the release profiles that is not ported
to it, fails on the PR. Not a release image: the artifacts have a glibc 2.34
floor.
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Sep 9, 2026
@fredericgermain
CI: build boringssl-static and the FIPS profile on Debian 13, verify …
63ab2f1
…both jars on Alpine

Motivation:

CI built boringssl-static only on the two release images and never built the
FIPS profile at all, so netty#997 could add the musl check to that profile without
the matching link changes and nothing failed until a downstream build did
(netty#1008).

Modifications:

- docker/Dockerfile.debian13 + docker-compose.debian-13.yaml: `build`
  (default profile) and `build-fips`. The image carries the build environment
  from certificate #5244's security policy, the module the FIPS profile pins:
  clang 17.0.6 and ninja 1.12.1 from the Debian archive, go 1.22.3 and
  cmake 3.29.3 downloaded at those versions. No JDK 8 in trixie: the build
  runs on JDK 21 with the pom's --release 8.
- ci-pr.yml / ci-build.yml: legs debian13-x86_64 and debian13-x86_64-fips,
  and two bare-Alpine musl-verify legs on their jars. The FIPS one is the leg
  with no substitute: the module's integrity check and self-tests run in an
  ELF constructor at dlopen, so only a real load proves the post-link
  patchelf left it intact.
- docker/README.md, docs/musl-compatibility.md.

Result:

A change to the FIPS profile, or to the release profiles that is not ported
to it, fails on the PR. Not a release image: the artifacts have a glibc 2.34
floor.
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Sep 19, 2026
@fredericgermain
CI: build boringssl-static and the FIPS profile on Debian 13, verify …
114a502
…both jars on Alpine

Motivation:

CI built boringssl-static only on the two release images and never built the
FIPS profile at all, so netty#997 could add the musl check to that profile without
the matching link changes and nothing failed until a downstream build did
(netty#1008).

Modifications:

- docker/Dockerfile.debian13 + docker-compose.debian-13.yaml: `build`
  (default profile) and `build-fips`. The image carries the build environment
  from certificate #5244's security policy, the module the FIPS profile pins:
  clang 17.0.6 and ninja 1.12.1 from the Debian archive, go 1.22.3 and
  cmake 3.29.3 downloaded at those versions. No JDK 8 in trixie: the build
  runs on JDK 21 with the pom's --release 8.
- ci-pr.yml / ci-build.yml: legs debian13-x86_64 and debian13-x86_64-fips,
  and two bare-Alpine musl-verify legs on their jars. The FIPS one is the leg
  with no substitute: the module's integrity check and self-tests run in an
  ELF constructor at dlopen, so only a real load proves the post-link
  patchelf left it intact.
- docker/README.md, docs/musl-compatibility.md.

Result:

A change to the FIPS profile, or to the release profiles that is not ported
to it, fails on the PR. Not a release image: the artifacts have a glibc 2.34
floor.
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Sep 23, 2026
@fredericgermain
CI: build boringssl-static and the FIPS profile on Debian 13, verify …
a739729
…both jars on Alpine

Motivation:

CI builds boringssl-static only on the two release images and never builds the
FIPS profile. netty#997 could add the musl check to that profile without the
matching link changes, and nothing failed until a downstream build did (netty#1008).

Modifications:

- docker/Dockerfile.debian13 + docker-compose.debian-13.yaml, services `build`
  and `build-fips`. Every input is pinned: base image by digest, Debian
  archive by snapshot.debian.org timestamp, clang by version, Go by version
  and checksum (BoringSSL's go.mod is ahead of trixie's Go). trixie has no
  JDK 8, so the build runs on JDK 21 with the pom's --release 8.
- ci-pr.yml / ci-build.yml: legs debian13-x86_64 and debian13-x86_64-fips,
  plus bare-Alpine musl-verify legs on their jars. The FIPS module's integrity
  check runs in an ELF constructor at dlopen, so only a real load proves the
  post-link patchelf left it intact.

Result:

A change to the FIPS profile, or one to the release profiles that is not
ported to it, fails on the PR. Not a release image: glibc 2.34 floor.
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Oct 2, 2026
@fredericgermain
CI: build boringssl-static and the FIPS profile on Debian 13, verify …
2c4a3a7
…both jars on Alpine

Motivation:

CI builds boringssl-static only on the two release images and never builds the
FIPS profile. netty#997 could add the musl check to that profile without the
matching link changes, and nothing failed until a downstream build did (netty#1008).

Modifications:

- docker/Dockerfile.debian13 + docker-compose.debian-13.yaml, services `build`
  and `build-fips`. Every input is pinned: base image by digest, Debian
  archive by snapshot.debian.org timestamp, clang by version, Go by version
  and checksum (BoringSSL's go.mod is ahead of trixie's Go). trixie has no
  JDK 8, so the build runs on JDK 21 with the pom's --release 8.
- ci-pr.yml / ci-build.yml: legs debian13-x86_64 and debian13-x86_64-fips,
  plus bare-Alpine musl-verify legs on their jars. The FIPS module's integrity
  check runs in an ELF constructor at dlopen, so only a real load proves the
  post-link patchelf left it intact.

Result:

A change to the FIPS profile, or one to the release profiles that is not
ported to it, fails on the PR. Not a release image: glibc 2.34 floor.
fredericgermain added a commit to fredericgermain/netty-tcnative that referenced this pull request Oct 2, 2026
@fredericgermain
CI: build boringssl-static and the FIPS profile on Debian 13, verify …
e5ce588
…both jars on Alpine

Motivation:

CI builds boringssl-static only on the two release images and never builds the
FIPS profile. netty#997 could add the musl check to that profile without the
matching link changes, and nothing failed until a downstream build did (netty#1008).

Modifications:

- docker/Dockerfile.debian13 + docker-compose.debian-13.yaml, services `build`
  and `build-fips`. Every input is pinned: base image by digest, Debian
  archive by snapshot.debian.org timestamp, clang by version, Go by version
  and checksum (BoringSSL's go.mod is ahead of trixie's Go). trixie has no
  JDK 8, so the build runs on JDK 21 with the pom's --release 8.
- ci-pr.yml / ci-build.yml: legs debian13-x86_64 and debian13-x86_64-fips,
  plus bare-Alpine musl-verify legs on their jars. The FIPS module's integrity
  check runs in an ELF constructor at dlopen, so only a real load proves the
  post-link patchelf left it intact.

Result:

A change to the FIPS profile, or one to the release profiles that is not
ported to it, fails on the PR. Not a release image: its artifacts need a
newer glibc than the release ones.
@normanmaurer normanmaurer mentioned this pull request Oct 30, 2026
jni util 0.0.12 #1039
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.0.85.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

@pe-bernard @normanmaurer @fredericgermain
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.