forked from INVERSEARENA/inversearena-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
36 lines (31 loc) · 1.1 KB
/
Copy path.gitleaks.toml
File metadata and controls
36 lines (31 loc) · 1.1 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
title = "InverseArena Gitleaks Configuration"
[extend]
# Extend the default ruleset shipped with Gitleaks.
useDefault = true
[[rules]]
id = "stellar-secret-key"
description = "Stellar secret key (56-character base32 string starting with S)"
regex = '''S[A-Z2-7]{55}'''
tags = ["stellar", "private-key", "high-severity"]
[[rules]]
id = "jwt-secret-env"
description = "JWT_SECRET assigned a literal value (not a variable reference)"
regex = '''JWT_SECRET\s*[=:]\s*['"]?[^${\n'"]{32,}'''
tags = ["jwt", "secret"]
[[rules]]
id = "admin-api-key-env"
description = "ADMIN_API_KEY assigned a literal value"
regex = '''ADMIN_API_KEY\s*[=:]\s*['"]?[^${\n'"]{8,}'''
tags = ["api-key", "secret"]
[allowlist]
description = "Allowlist for test fixtures and known safe dummy values"
# Paths that intentionally contain dummy/placeholder keys.
paths = [
'''\.env\.example''',
'''\.env\.test''',
]
# Known dummy Stellar secret key used exclusively in test fixtures.
# This is not a real key — it was generated offline for testing purposes only.
regexes = [
'''SCZANGBA5XHFAT5GJYMFNOHTN5SL6KVWGIXLIAQBCAYHH7QJIQKFXS5''',
]