-
Notifications
You must be signed in to change notification settings - Fork 945
Add secret exception for trufflehog scan #13581
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
Add secret exception for trufflehog scan #13581
Conversation
jsquyres
left a comment
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.
I confirm that a secret key exists in the libevent-2.1.12-stable.tar.gz tarball, in the test/regress_ssl.c file. Thanks for adding this trufflehog exception!
Do you need this exception file cherry-picked to any of the release branches? (v4.1.x, v5.0.x, v6.0.x) If so, feel free to make cherry-pick PRs.
|
There's something very odd about the branch on this PR -- it seems to be branched from a very, very old state of the Open MPI repository. The docs CI build is failing because it can't find the docs config files, for example. Can you base your branch off something much more recent / closer to the tip of this repository's |
e40bd83 to
55c8c33
Compare
@jsquyres Thanks for the review! I've rebased the branch on the latest main to fix the CI issues. For the release branches - yes, I can create cherry-pick PRs for v4.1.x, v5.0.x, and v6.0.x once this is merged. |
.nspect-allowlist.toml
Outdated
| [[pulse-trufflehog.files.secrets]] | ||
| type = "PrivateKey" | ||
| values = [ "-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAtK07Ili0dkJb79m/" ] |
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.
Nit: is there a reason this is indented and the previous entry is not?
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.
Good point! I removed the indentation
.nspect-allowlist.toml
Outdated
| [[pulse-trufflehog.files.secrets]] | ||
| type = "PrivateKey" | ||
| values = [ "-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAtK07Ili0dkJb79m/" ] | ||
|
|
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.
Nit: blank line at end of file.
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.
removed
|
Hello! The Git Commit Checker CI bot found a few problems with this PR: aa18e69: .nspect-allowlist.toml remove useless blank line
Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks! |
|
Hello! The Git Commit Checker CI bot found a few problems with this PR: e53cd30: Fix formatting of secrets entry in allowlist
aa18e69: .nspect-allowlist.toml remove useless blank line
Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks! |
This PR adds an allowlist configuration to exclude a false positive detection of a test private key in the libevent library. The file is part of the libevent test suite and is not a real secret. Signed-off-by: Arnaud Celermajer <[email protected]>
e53cd30 to
710b3ff
Compare
Add secret exception for security scan
This PR adds an allowlist configuration to exclude a false positive detection of a test private key in the libevent library.
Background
Security scanning tools may flag a test private key in
3rd-party/libevent-2.1.12-stable.tar.gz. This is a known false positive for the following reasons:test/regress_ssl.c)Changes
.nspect-allowlist.tomlconfiguration file