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 — FIPS: Add pom profile to build fips compliant boringSSL netty-tcnative by k-raina · Pull Request #821 · netty/netty-tcnative

Conversation

@k-raina

@k-raina k-raina commented Sep 6, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Motivation:

As discussed in issue, considering the growing demand for FIPS compliance in security-sensitive environments, an official netty-tcnative release supporting FIPS validation would greatly benefit the open-source community. This would simplify integration and provide a reliable, community-supported solution.

Setup Configurations:

Tools: cmake 3.20, ninja build 1.10.0, clang-12, golang, java 11, maven 3.6.3, libapr1, automake, autoconf, libtool, libunwind-dev, pkg-config

Fips validated BoringSSL commit used is 853ca1ea1168dff08011e5d42d94609cc0ca2e27

Build Steps:

  • Run Maven
 mvn clean install -f boringssl-static/pom.xml -Pfips-boringssl-static
  • While build is running you should see in logs:
...
Boringssl is fips compliant
...
  • After build steps are completed you should see Jars eg.
.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.61.Final/netty-tcnative-boringssl-static-2.0.61.Final.jar
.m2/repository/io/netty/netty-tcnative-boringssl-static/2.0.61.Final/netty-tcnative-boringssl-static-2.0.61.Final-linux-x86_64.jar

Modifications:

  • Added pom profile fips-boringssl-static for fips compliant

Tested on:

Tested on linux AMD and ARM machine, which are supported as per FIPS security document attached in reference.
Output: https://drive.google.com/file/d/1eAFUIrHLbB7xiTpxHPs__N3Ha_Ltli76/view?usp=sharing

Reference:

Guidance on how to build FIPS validated modules: https://csrc.nist.gov/CSRC/media/projects/cryptographic-module-validation-program/documents/security-policies/140sp4407.pdf

Sorry, something went wrong.

Uh oh!

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

All reactions
@k-raina
FIPS: Add pom profile to build fips compliant netty-tcnative
fd28654
@normanmaurer

normanmaurer commented Sep 19, 2023

Copy link
Copy Markdown
Member

I think we could pull this in to make things easier for people. I am not sure yet about including this in our release process. But thats a different discussion

All reactions

Sorry, something went wrong.

Uh oh!

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

@normanmaurer
Merge branch 'main' into add-fips-support
2f7a193
@k-raina k-raina changed the title FIPS: Add pom profile to build fips compliant netty-tcnative FIPS: Add pom profile to build fips compliant BoringSSL netty-tcnative Sep 20, 2023
@k-raina k-raina changed the title FIPS: Add pom profile to build fips compliant BoringSSL netty-tcnative FIPS: Add pom profile to build fips compliant boringSSL netty-tcnative Sep 20, 2023
@k-raina
Cleanup run tests
f63085b
@k-raina

k-raina commented Sep 25, 2023

Copy link
Copy Markdown
Contributor Author

Thanks @normanmaurer ,
I have added sample output and build details in the description.
Please let me know if anything else is needed to merge this branch to master? Thanks in Advance

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-raina
k-raina marked this pull request as ready for review September 25, 2023 20:26
normanmaurer
normanmaurer reviewed Sep 26, 2023
View reviewed changes
Comment thread boringssl-static/pom.xml Outdated
</execution>
</executions>
<configuration>
<url>https://commondatastorage.googleapis.com/chromium-boringssl-fips/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27.tar.xz</url>

@normanmaurer normanmaurer Sep 26, 2023

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

How would we keep track of the right tar ball to download ?

Sorry, something went wrong.

Uh oh!

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

All reactions

@k-raina k-raina Sep 26, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Updated in commit: d1e16ba

tar ball uses same booringssl comit set in environment https://github.com/netty/netty-tcnative/pull/821/files#diff-9f1aa030fe8568dc7f081010d6f14b6d2c26ea2170502365e8f1ebe3f3e58607R86

Sorry, something went wrong.

Uh oh!

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

All reactions
@k-raina
Fix hard coded boringssl version
d1e16ba
@k-raina
k-raina requested a review from normanmaurer September 26, 2023 18:24
normanmaurer
normanmaurer approved these changes Sep 27, 2023
View reviewed changes
@normanmaurer

normanmaurer commented Sep 27, 2023

Copy link
Copy Markdown
Member

@k-raina can you please sign our icla: https://netty.io/s/icla and let me know once done ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-raina

k-raina commented Sep 29, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

@normanmaurer I have signed icla. Can i go ahead and merge?

All reactions

Sorry, something went wrong.

Uh oh!

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

normanmaurer
normanmaurer reviewed Sep 29, 2023
View reviewed changes
Comment thread boringssl-static/pom.xml Resolved

Uh oh!

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

@k-raina
Add fips booringssl commit in pom
1e52825
@normanmaurer
normanmaurer merged commit 62b0a1a into netty:main Oct 5, 2023
@normanmaurer normanmaurer added this to the 2.0.62.Final milestone Oct 5, 2023
@normanmaurer

normanmaurer commented Oct 5, 2023

Copy link
Copy Markdown
Member

@k-raina thanks a lot!

All reactions

Sorry, something went wrong.

Uh oh!

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

@k-raina k-raina mentioned this pull request Oct 6, 2023
Request for FIPS-Validated netty-tcnative release #799
Open
@hisener

hisener commented Feb 18, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

@k-raina you mentioned that you tested on an ARM machine, as well. But when I try it, I get the following error. Does this ring a bell by any chance? (It works on x86_64)

     [exec] [33/462] Building ASM object crypto/fipsmodule/CMakeFiles/bcm_hashunset.dir/bcm-delocated.S.o
     [exec] FAILED: crypto/fipsmodule/CMakeFiles/bcm_hashunset.dir/bcm-delocated.S.o 
     [exec] /usr/bin/clang -DBORINGSSL_FIPS -DBORINGSSL_IMPLEMENTATION -I/tmp/netty-tcnative/boringssl-static/target/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/boringssl/third_party/googletest/include -I/tmp/netty-tcnative/boringssl-static/target/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/boringssl/crypto/../include -I/tmp/netty-tcnative/boringssl-static/target/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/boringssl/crypto/fipsmodule/../../include -Wa,--noexecstack -O3 -DNDEBUG -fPIC -MD -MT crypto/fipsmodule/CMakeFiles/bcm_hashunset.dir/bcm-delocated.S.o -MF crypto/fipsmodule/CMakeFiles/bcm_hashunset.dir/bcm-delocated.S.o.d -o crypto/fipsmodule/CMakeFiles/bcm_hashunset.dir/bcm-delocated.S.o -c /tmp/netty-tcnative/boringssl-static/target/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/boringssl/build/crypto/fipsmodule/bcm-delocated.S
     [exec] /tmp/netty-tcnative/boringssl-static/target/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/boringssl/build/crypto/fipsmodule/bcm-delocated.S:9106:20: error: invalid condition code
     [exec]  ccmp x10, #0, #0, bcm_redirector_ls
     [exec]                    ^

Edit: I ended up dropping this line while building it on ARM:

netty-tcnative/boringssl-static/pom.xml

Line 237 in d109062

<arg value="-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE" />

k-raina reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@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

@normanmaurer normanmaurer normanmaurer approved these changes

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

@k-raina @normanmaurer @hisener
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.