From 172459102961fc34d334093a59769bb968176f7e Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Sat, 27 Nov 2021 10:01:52 -0600 Subject: [PATCH] remove generic api key from default gitleaks config (#719) --- config/gitleaks.toml | 15 +++++++-------- testdata/repos/small/dotGit/index | Bin 317 -> 317 bytes 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/config/gitleaks.toml b/config/gitleaks.toml index e291a49f..df53b24a 100644 --- a/config/gitleaks.toml +++ b/config/gitleaks.toml @@ -126,14 +126,6 @@ id = "pypi-upload-token" description = "PyPI upload token" regex = '''pypi-AgEIcHlwaS5vcmc[A-Za-z0-9-_]{50,1000}''' -[[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})['\"]''' -entropy = 3.7 -entropyGroup = 4 - -# ➜ ~/code/gitleaks (v8) git show ec2fc9d6cb0954fb3b57201cf6133c48d8ca0d29 -- checks_test.go [[rules]] id = "gcp-service-account" description = "Google (GCP) Service-account" @@ -441,6 +433,13 @@ regex = '''(?i)(twitch[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a- description = "Typeform API token" regex = '''(?i)(typeform[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}(tfp_[a-z0-9\-_\.=]{59})''' +# [[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})['\"]''' +# entropy = 3.7 +# entropyGroup = 4 + [allowlist] description = "global allow lists" diff --git a/testdata/repos/small/dotGit/index b/testdata/repos/small/dotGit/index index 2d5704732d05d7a1af60b87b7c460347aaca5094..208f3d0e5f1f28ec06287f1a3345245ec45a54d2 100644 GIT binary patch delta 92 zcmdnXw3kW6#WTp6fq{Vuh?x^-pZLpS?D+#mGcqu+Fw5_bpQvIe4wAAue+VoEq@hxY d6La>8yxx<_c)3wdDN8Fs@(lYW%QJb3X8@|5A^iXV delta 92 zcmdnXw3kW6#WTp6fq{Vuh?x@`FO-@0gs3Gpp5c^;Zkor)z`(-H$MSumilKO?_5#Dy q6!Sz7o!qVhmJ+sMpO~{(WM4eDY0<)hX7j{kr;@IvZ#J