-
Couldn't load subscription status.
- Fork 2.1k
Add allowlist feature to suppress test secrets #4436
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
Open
jporzucek
wants to merge
24
commits into
trufflesecurity:main
Choose a base branch
from
jporzucek:add-whitelist-feature
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0f6bb1a
Add whitelisting feature
jporzucek 4c3476d
Move loading function to detectors pkg
jporzucek 4f8af2f
fix tests
jporzucek 9b2883a
Mask logged secret
jporzucek eacbb6c
Add support for multiline secrets
jporzucek fcd4251
Add example whitelist file
jporzucek eac3d7c
Merge branch 'main' into add-whitelist-feature
jporzucek 4963cca
Change naming to allowlisted
jporzucek f58adf8
fix main.go naming changes
jporzucek 8f8783f
Merge branch 'main' into add-whitelist-feature
nabeelalam 96fbdd2
fix wrong assignment operator
jporzucek 7010e58
add empty line to yaml if not exsit
jporzucek e5c2101
fix flag description
jporzucek 8f85450
Fix test
jporzucek a526bde
Rename flag
jporzucek fa75aea
Merge branch 'main' into add-whitelist-feature
nabeelalam 788fb7e
Use slices.DeleteFunc and pre-compile regexes
jporzucek 0664b3c
Add allowlists to config
jporzucek 011a859
Trim whitespace characters when matching secrets
jporzucek a5a459d
Merge branch 'main' into add-whitelist-feature
jporzucek f625db8
Change confusing var name
jporzucek b340d16
Update example config
jporzucek a384429
Merge branch 'main' into add-whitelist-feature
jporzucek 4024f83
Merge branch 'main' into add-whitelist-feature
jporzucek 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| - description: "RSA test keys" | ||
| values: | ||
| - | | ||
| -----BEGIN RSA PRIVATE KEY----- | ||
| MIIEpAIBAAKCAQEA... | ||
| -----END RSA PRIVATE KEY----- | ||
| - description: "Demo API keys for documentation" | ||
| values: | ||
| - "demo_.*" | ||
| - "example-api-key-.*" | ||
| - "sk_test_.*" | ||
| - description: "Decommissioned secrets (rotated out)" | ||
| values: | ||
| - "old-prod-key-2023" | ||
| - "^legacy-.*-deprecated$" | ||
| - description: "Public certificates and well-known test tokens" | ||
| values: | ||
| - "^-----BEGIN CERTIFICATE-----" | ||
| - "password123" | ||
| - "token_1234567890abcdef" |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.