-
Notifications
You must be signed in to change notification settings - Fork 5.5k
server: fix fips_mode stat #16140
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
Merged
Merged
server: fix fips_mode stat #16140
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ad9176f
fix fips_mode stat
raakella 8406245
change to bool
raakella bd10cca
change method name
raakella 8ea6d96
fix condition
raakella 839463c
debug fips build in CI
raakella bc0247f
debug fips stat in ci
raakella 3c9ad43
debug fips stat in ci
raakella ff44858
debug fips stat in ci- change debug msg
raakella 7724905
use versioninfo.sslversion to generate fips_mode stat
raakella 8bd10d2
use ENVOY_SSL_FIPS as compiletime option
raakella 597455e
fix build options for fips
raakella 8a4fb1a
set ENVOY_SSL_FIPS in bazel build for test/common
raakella 58410ee
fix ENVOY_SSL_FIPS argument
raakella ba2eb67
fix copts in test/common bazel build file
raakella 7228d96
fix format error
raakella 09a4926
remove static variable
raakella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ load( | |
| "envoy_cc_fuzz_test", | ||
| "envoy_cc_test", | ||
| "envoy_package", | ||
| "envoy_select_boringssl", | ||
| ) | ||
|
|
||
| licenses(["notice"]) # Apache 2 | ||
|
|
@@ -389,6 +390,9 @@ envoy_cc_test( | |
| envoy_cc_test( | ||
| name = "version_test", | ||
| srcs = ["version_test.cc"], | ||
| copts = envoy_select_boringssl( | ||
| ["-DENVOY_SSL_FIPS"], | ||
| ), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: This could have been written as |
||
| external_deps = [ | ||
| "abseil_strings", | ||
| ], | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Why do we need the static? Why not just
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.
@jmarantz Initially I thought this initialization must happen during compile time as "BORINGSSL_FIPS" is being pass during compilation. But it seems like it is not required. Should I change that?
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.
Yes, you don't need a static at all for this use-case. Just return the value based on the ifdef.
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.
Thanks, I will change it.