-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent divide by zero errors in alloy syntax
Also include previous prior failed fuzz test to validate it doesn't continue to fail.
- Loading branch information
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
internal/component/loki/secretfilter/testdata/fuzz/FuzzGitleaksConfig/7a04bd52cf6c2279
This file contains 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,4 @@ | ||
go test fuzz v1 | ||
string("types=0+0^100%000") | ||
string("0") | ||
string("\xa9\xc1\xd3\xff\xf8\xf8,\xd3r") |
4 changes: 4 additions & 0 deletions
4
internal/component/loki/secretfilter/testdata/fuzz/FuzzGitleaksConfig/7f290c1743bc365f
This file contains 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,4 @@ | ||
go test fuzz v1 | ||
string("types=100/00/00.00") | ||
string("0\x00\x80") | ||
string("\x06") |
4 changes: 4 additions & 0 deletions
4
internal/component/loki/secretfilter/testdata/fuzz/FuzzGitleaksConfig/f3b9ffb4406ec04b
This file contains 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,4 @@ | ||
go test fuzz v1 | ||
string("\n\t\tforward_to = []\n\t\tredact_with = \"<ALLOY-REDACTED-SECRET:$SECRET_NAME>\"\n\t") | ||
string("\n\t\ttitle = \"gitleaks custom config\"\n\n\t\t[[rules]]\n\t\tid = \"my-fake-secret\tregex = '''(?i)\\b(fakeSecied a fake secret\"\n\t\tregex = '''(?i)\\b(?:['|\\\"|\\n|\\r|\\s|\\x60|;]|$)'''\n\t\t[rules.allowlist]\n\t\tregexes = [\"abc\\\\d{3}\", \"fakeSecret[9]{5}\"]\nS") | ||
string("{\n\t\t\t\"message\": \"This is a simple log message with a secret value fakeSecret99999 !\n\t\t}") |
This file contains 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