mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
feat(rules): make case insensitivity optional (#1215)
This commit is contained in:
1 parent
9fb36b242d
commit
18283bb48e
85 files changed
+151
-136
No files matched your search
@@ -12,7 +12,7 @@ func PlaidAccessID() *config.Rule {
|
||||
r := config.Rule{
|
||||
RuleID: "plaid-client-id",
|
||||
Description: "Plaid Client ID",
|
||||
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("24")),
|
||||
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("24"), true),
|
||||
SecretGroup: 1,
|
||||
Entropy: 3.5,
|
||||
Keywords: []string{
|
||||
@@ -32,7 +32,7 @@ func PlaidSecretKey() *config.Rule {
|
||||
r := config.Rule{
|
||||
RuleID: "plaid-secret-key",
|
||||
Description: "Plaid Secret key",
|
||||
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("30")),
|
||||
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("30"), true),
|
||||
SecretGroup: 1,
|
||||
Entropy: 3.5,
|
||||
Keywords: []string{
|
||||
@@ -53,7 +53,7 @@ func PlaidAccessToken() *config.Rule {
|
||||
RuleID: "plaid-api-token",
|
||||
Description: "Plaid API Token",
|
||||
Regex: generateSemiGenericRegex([]string{"plaid"},
|
||||
fmt.Sprintf("access-(?:sandbox|development|production)-%s", hex8_4_4_4_12())),
|
||||
fmt.Sprintf("access-(?:sandbox|development|production)-%s", hex8_4_4_4_12()), true),
|
||||
SecretGroup: 1,
|
||||
Keywords: []string{
|
||||
"plaid",
|
||||
|
||||
Reference in new issue
Block a user