Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix contrib/cryptomb/private_key_providers/test:speed_test build in FIPS mode #38027

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

krinkinmu
Copy link
Contributor

@krinkinmu krinkinmu commented Jan 15, 2025

Commit Message:

Some of the tests in that file rely on EC_group_p256 function that was first introduced in
google/boringssl@417069f. Evnidently the version of BoringSSL that Envoy uses in FIPS mode does not contain this change. Because of that build of speed_test.cc fails.

To fix the issue I'm replacing calls to EC_group_p256 with EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1). To the best of my knowledge functionally it should be exactly the same thing.

NOTE: Probably a more long term solution would be to update the version of BoringSSL we are using to newer one, as the current one is more than 2 years old at this point. However, it's a bit more work than I can do right now, thus this temporary fix. I will return to the question of updating BoringSSL though affter I close the ongoing bugs.

Additional Description: n/a
Risk Level: low
Testing: tested that builds work now and that all tests in //contrib/cryptomb/private_key_providers/test are still passing.
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

mode

Some of the tests in that file rely on EC_group_p256 function that was
first introduced in
google/boringssl@417069f.
Evnidently the version of BoringSSL that Envoy uses in FIPS mode does
not contain this change. Because of that build of speed_test.cc fails.

To fix the issue I'm replacing calls to EC_group_p256 with
EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1). To the best of my
knowledge functionally it should be exactly the same thing.

NOTE: Probably a more long term solution would be to update the version
of BoringSSL we are using to newer one, as the current one is more than
2 years old at this point. However, it's a bit more work than I can do
right now, thuse this temporary fix. I will return to the question of
updating BoringSSL though affter I close the ongoing bugs.

Signed-off-by: Mikhail Krinkin <[email protected]>
@jmarantz
Copy link
Contributor

Note: this code has no maintainer support, and @giantcroc is the only person listed in the owners file. After approval from @giantcroc this can be assigned to a maintainer for final approval.

@ggreenway
Copy link
Contributor

@krinkinmu we are currently using the latest FIPS version of boringssl. They take a long time to be approved.

@ggreenway ggreenway merged commit 1936f1b into envoyproxy:main Jan 22, 2025
24 checks passed
@krinkinmu
Copy link
Contributor Author

@krinkinmu we are currently using the latest FIPS version of boringssl. They take a long time to be approved.

@ggreenway thank you for pointing it out, it will save me some time on figuring out how to update FIPS version of Boring SSL!

bazmurphy pushed a commit to bazmurphy/envoy that referenced this pull request Jan 29, 2025
…IPS mode (envoyproxy#38027)

Some of the tests in that file rely on EC_group_p256 function that was
first introduced in google/boringssl@417069f.
Evnidently the version of BoringSSL that Envoy uses in FIPS mode does
not contain this change. Because of that build of speed_test.cc fails.

To fix the issue I'm replacing calls to EC_group_p256 with
EC_GROUP_new_by_curve_name(NID_X9_62_prime256v1). To the best of my
knowledge functionally it should be exactly the same thing.

Signed-off-by: Mikhail Krinkin <[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.

4 participants