ignore k8s apiVersion in generic-api-key pattern (#760)

This commit is contained in:
Andrzej Amghar authored and GitHub committed 2022-02-22 17:00:20 -06:00
1 parent 4b6f4d0de5
commit c3b799ec63
1 file changed
+1 -1
+1 -1
View File
@@ -535,7 +535,7 @@ secretGroup = 3
[[rules]]
id = "generic-api-key"
description = "Generic API Key"
regex = '''(?i)((key|api|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
regex = '''(?i)((key|api[^Version]|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
entropy = 3.7
secretGroup = 4