feat(rules): make case insensitivity optional (#1215)

This commit is contained in:
Richard Gomez authored and GitHub committed 2023-08-24 10:41:52 -05:00
1 parent 9fb36b242d
commit 18283bb48e
85 files changed
+151 -136

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ func VaultServiceToken() *config.Rule {
r := config.Rule{
Description: "Vault Service Token",
RuleID: "vault-service-token",
Regex: generateUniqueTokenRegex(`hvs\.[a-z0-9_-]{90,100}`),
Regex: generateUniqueTokenRegex(`hvs\.[a-z0-9_-]{90,100}`, true),
Keywords: []string{"hvs"},
}
@@ -26,7 +26,7 @@ func VaultBatchToken() *config.Rule {
r := config.Rule{
Description: "Vault Batch Token",
RuleID: "vault-batch-token",
Regex: generateUniqueTokenRegex(`hvb\.[a-z0-9_-]{138,212}`),
Regex: generateUniqueTokenRegex(`hvb\.[a-z0-9_-]{138,212}`, true),
Keywords: []string{"hvb"},
}