forked from AstronLabs/remitMortage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
46 lines (43 loc) · 1.41 KB
/
Copy path.gitleaks.toml
File metadata and controls
46 lines (43 loc) · 1.41 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
title = "RemitMortgage Gitleaks config"
# Extend default ruleset - catch AKIA, private keys, JWT, generic-api-key, etc.
[extend]
useDefault = true
[[allowlist]]
description = "Test fixtures and example keys - not real secrets"
# Paths that are known to contain placeholder/low-entropy example values
paths = [
'''backend/src/__tests__''',
'''backend/__tests__''',
'''frontend/__tests__''',
'''frontend/__mocks__''',
'''.*\.test\.ts''',
'''.*\.spec\.ts''',
'''frontend/package-lock\.json''',
'''backend/package-lock\.json''',
]
regexes = [
'''your_super_secret_webhook_signing_key_here''',
'''your_secret_admin_key_here''',
'''your_kyc_operator_signing_secret_here''',
'''your_backup_encryption_key_here_32chars''',
'''your_secure_32_character_key''',
'''default_jwt_secret''',
'''default_signing_secret_key''',
'''default_admin_api_key''',
'''default_kyc_operator_secret''',
'''default_backend_signing_secret''',
'''testing-secret''',
'''testuser''',
'''testpassword''',
'''remituser''',
'''remitpass''',
]
# Narrow allowlist for .env.example - only the placeholder patterns, not the whole file
[[allowlist]]
description = "Allow placeholder values in .env.example"
paths = ['''backend/\.env\.example''', '''frontend/\.env\.example''']
regexes = [
'''your_.*_here''',
'''your_secure_.*_key''',
'''example''',
]