-
Notifications
You must be signed in to change notification settings - Fork 5k
feat(fips): disable usage of flowhash/communityid in fips mode #42582
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
Conversation
In version 1 of the ID, the hash algorithm is SHA1 usage of flowhash fails with the following message when the stdlib is in fips only mode: crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only mode
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
This pull request doesn't have a |
|
@nfritts could we have someone to review here? |
|
@kruskall We are now good to go |
* feat(fips): disable usage of flowhash/communityid in fips mode In version 1 of the ID, the hash algorithm is SHA1 usage of flowhash fails with the following message when the stdlib is in fips only mode: crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only mode * test: skip communityid tests in fips mode * test: skip communityid tests in fips mode * fix: resolve compile errors * lint: fix linter issues * refactor: add fips noop community implementation * lint: fix linter issues (cherry picked from commit 3b00fcb)
* feat(fips): disable usage of flowhash/communityid in fips mode In version 1 of the ID, the hash algorithm is SHA1 usage of flowhash fails with the following message when the stdlib is in fips only mode: crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only mode * test: skip communityid tests in fips mode * test: skip communityid tests in fips mode * fix: resolve compile errors * lint: fix linter issues * refactor: add fips noop community implementation * lint: fix linter issues (cherry picked from commit 3b00fcb)
… (#43354) * feat(fips): disable usage of flowhash/communityid in fips mode In version 1 of the ID, the hash algorithm is SHA1 usage of flowhash fails with the following message when the stdlib is in fips only mode: crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only mode * test: skip communityid tests in fips mode * test: skip communityid tests in fips mode * fix: resolve compile errors * lint: fix linter issues * refactor: add fips noop community implementation * lint: fix linter issues (cherry picked from commit 3b00fcb) Co-authored-by: kruskall <[email protected]>
… (#43353) * feat(fips): disable usage of flowhash/communityid in fips mode In version 1 of the ID, the hash algorithm is SHA1 usage of flowhash fails with the following message when the stdlib is in fips only mode: crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only mode * test: skip communityid tests in fips mode * test: skip communityid tests in fips mode * fix: resolve compile errors * lint: fix linter issues * refactor: add fips noop community implementation * lint: fix linter issues (cherry picked from commit 3b00fcb) Co-authored-by: kruskall <[email protected]>
Proposed commit message
In version 1 of the ID, the hash algorithm is SHA1
usage of flowhash fails with the following message when the stdlib is in fips only mode:
crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only modePR hides the communityid usage behind a method which returns an empty string in fips mode, to avoid any potential misuse and better encapsulation.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs