-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitleaks.toml
63 lines (61 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
title = "gitleaks config"
[[regexes]]
description = "Password in string"
regex = '''(?i)[\w]*password[\w]*[:=>, ]+['"][\S]{2,}['"]'''
[[regexes]]
description = "Password in YAML config"
regex = '''^(?i)[\w]*password[\w][: ]+[\S]{2,}[^,}]$'''
[[regexes]]
description = "Rails secret key"
regex = '''(?i)(devise_secret_key|secret_key_base).+[0-9a-zA-Z]{2,}'''
[[regexes]]
description = "Database connection string"
regex = '''(?i)database_url.*mysql2://'''
[[regexes]]
description = "Alma API key"
regex = '''(?i)alma_api_key.*[0-9a-zA-Z]{36}'''
[[regexes]]
description = "Alma auth secret"
regex = '''(?i)alma_auth_secret.*[0-9a-zA-Z]{2,}'''
[[regexes]]
description = "AWS"
regex = '''AKIA[0-9A-Z]{16}'''
[[regexes]]
description = "RKCS8"
regex = '''-----BEGIN PRIVATE KEY-----'''
[[regexes]]
description = "RSA"
regex = '''-----BEGIN RSA PRIVATE KEY-----'''
[[regexes]]
description = "Github"
regex = '''(?i)github.*['\"][0-9a-zA-Z]{35,40}['\"]'''
[[regexes]]
description = "SSH"
regex = '''-----BEGIN OPENSSH PRIVATE KEY-----'''
[[regexes]]
description = "Facebook"
regex = '''(?i)facebook.*['\"][0-9a-f]{32}['\"]'''
[[regexes]]
description = "Twitter"
regex = '''(?i)twitter.*['\"][0-9a-zA-Z]{35,44}['\"]'''
[[regexes]]
description = "PGP"
regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
[[regexes]]
description = "Slack token"
regex = '''xox[baprs]-.*'''
[[regexes]]
description = "Strip API Key"
regex = '''(?i)(sk|pk)_(test|live)_[0-9a-zA-Z]{10,32}'''
[allowlist]
commits = []
files = [
'\.gitleaks\.toml',
'\.env\.example',
'(.*?)(jpg|gif|doc|pdf|bin|md)$',
]
regexes = [
# Values set by environment variables
'''ENV\[['"][\S]+['"]\]''',
'''(?i)(devise_secret_key\=x|secret_key_base\=x)'''
]