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
commented
Sep 6, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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:
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.
|
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
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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
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
|
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
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
</execution>
|
|
|
</executions>
|
|
|
<configuration>
|
|
|
<url>https://commondatastorage.googleapis.com/chromium-boringssl-fips/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27.tar.xz</url>
|
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.
k-raina
Sep 26, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
k-raina
commented
Sep 29, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
hisener
commented
Feb 18, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
@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:
|
<arg value="-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE" /> |
|
k-raina reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|