-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
server: add FIPS mode statistic indicating FIPS compliance #14719
Changes from 4 commits
aea2bbf
a9d3495
a6ca1bc
ce67e12
2993717
6053761
90d8bd1
bd32709
95ade86
3cd64c1
927aeff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ namespace Server { | |
GAUGE(total_connections, Accumulate) \ | ||
GAUGE(uptime, Accumulate) \ | ||
GAUGE(version, NeverImport) \ | ||
GAUGE(fips_mode, NeverImport) \ | ||
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. In order to add similar stats for other compile-time settings in the future, please move this into a nested namespace, so the full name would be 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. Moved it to a nested namespace |
||
HISTOGRAM(initialization_time_ms, Milliseconds) | ||
|
||
struct ServerStats { | ||
|
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.
Instead of string-matching, please add a new function to
VersionInfo
forsslFipsCompliant
that returns bool, and is set via#ifdef BORINGSSL_FIPS
.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.
+1, this will leave the openssl fork to be able to indicate the FIPS compliance. cc @envoyproxy/openssl-dev
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.
added a new function as suggested.