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:
Ben-grmbl authored and GitHub committed 2024-10-25 15:26:00 -05:00
1 parent 0afb525e59
commit e97695b852
4 files changed
+81 -15

No files matched your search

+2
View File
@@ -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",