mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
feat(generic-api-key): exclude keywords (#1587)
* fix(config.tmpl) missing \n for rules with regexes AND stopwords patch provided by rgmx fix(config.tmpl) omit `condition=OR` * feat(generic-api-key): exclude keywords prevent matching the rule generic-api-key on e.g. - public_key - api_version - client_id - client_name - keyword - monkey feat(generic-api-key): review findings - combine capture groups - remove mapKey from allowList fix(generic): make monkey, donkey, case-sensitive avoids matching on e.g. pokemonKey= * feat(generic) remove client, add credential exclude more composite words with key
This commit is contained in:
1 parent
0afb525e59
commit
e97695b852
4 files changed
+81
-15
No files matched your search
@@ -638,6 +638,7 @@ var DefaultStopWords = []string{
|
||||
"jbos",
|
||||
"jekyll",
|
||||
"jenkin",
|
||||
"jetbrains",
|
||||
"job-",
|
||||
"job.",
|
||||
"job_",
|
||||
@@ -1181,6 +1182,7 @@ var DefaultStopWords = []string{
|
||||
"smart",
|
||||
"smtp",
|
||||
"snake",
|
||||
"snapshot",
|
||||
"snippet",
|
||||
"soap",
|
||||
"social",
|
||||
|
||||
Reference in new issue
Block a user