-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitleaks.toml
51 lines (47 loc) · 1.44 KB
/
.gitleaks.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[extend]
useDefault = true # The default config file is https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml
[[rules]]
# This is the same as the "Generic API Key" rule from the default config file except
# it has a lower entropy and adds a few more keywords to both the "regex" and "keywords" fields
description = "Generic API Key, with extra keywords and lower entropy"
id = "generic-api-key-extra-keywords"
regex = '''(?i)(?:key|api|token|secret|client|passwd|password|auth|access|dev|prod)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([0-9a-z\-_.=]{10,150})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
entropy = 3
keywords = [
"key",
"api",
"token",
"secret",
"client",
"passwd",
"password",
"auth",
"access",
"dev",
"prod",
]
[rules.allowlist]
stopwords = [
# Database column names
'''_talk''',
'''_status''',
'''_training''',
]
[[rules]]
id = "michalspacek.cz-encryption-keys"
description = "Identified an encryption key, risking data decryption and unauthorized access to sensitive information."
regex = '''(?:mspe|msee|msse)(?:test)?_([a-fA-F0-9]{32,64})'''
keywords = [
"mspe",
"msee",
"msse",
]
[allowlist]
paths = [
'''js/openpgp\.min\.js''',
'''site/vendor/''',
# Paths otherwise .gitignored should be listed here if you want to use `gitleaks directory`
'''i/build/''',
'''site/temp/cache/''',
]