-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
54 lines (45 loc) · 1.24 KB
/
Copy path.gitleaks.toml
File metadata and controls
54 lines (45 loc) · 1.24 KB
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
# GitLeaks Configuration for BorrowEase
# Prevents committing secrets to Git
title = "BorrowEase Secret Detection"
[[rules]]
id = "twilio-account-sid"
description = "Twilio Account SID"
regex = '''AC[a-z0-9]{32}'''
tags = ["twilio", "api-key"]
[[rules]]
id = "twilio-auth-token"
description = "Twilio Auth Token"
regex = '''SK[a-z0-9]{32}'''
tags = ["twilio", "api-key"]
[[rules]]
id = "redis-password"
description = "Redis Connection String with Password"
regex = '''redis://[^:]+:([^@]+)@'''
tags = ["redis", "password"]
[[rules]]
id = "firebase-private-key"
description = "Firebase Private Key"
regex = '''-----BEGIN PRIVATE KEY-----'''
tags = ["firebase", "private-key"]
[[rules]]
id = "mongodb-connection"
description = "MongoDB Connection String"
regex = '''mongodb(\+srv)?://[^:]+:[^@]+@'''
tags = ["mongodb", "password"]
[[rules]]
id = "generic-api-key"
description = "Generic API Key"
regex = '''(?i)(api[_-]?key|apikey|api[_-]?secret)\s*[:=]\s*['"]?[a-z0-9]{20,}'''
tags = ["api-key"]
[[rules]]
id = "aws-access-key"
description = "AWS Access Key"
regex = '''AKIA[0-9A-Z]{16}'''
tags = ["aws", "access-key"]
[allowlist]
description = "Allowlist for template and example files"
paths = [
'''\.template$''',
'''\.example$''',
'''\.sample$''',
]