-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitleaks.toml
More file actions
42 lines (35 loc) · 1.38 KB
/
Copy path.gitleaks.toml
File metadata and controls
42 lines (35 loc) · 1.38 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
# Gitleaks configuration for healthgraph-agent.
# Mirrors github.com/ma3u/TwoBreath-app, with Neo4j/Aura-specific rules.
# Docs: https://github.com/gitleaks/gitleaks
title = "HealthGraph Secret Scanner"
[extend]
useDefault = true
# ── Project-specific rules ──────────────────────────────────
[[rules]]
id = "neo4j-aura-password"
description = "Neo4j / Aura password assignment"
regex = '''(?i)(neo4j|aura)[_-]?password\s*[:=]\s*['"]?[^\s'"]{8,}['"]?'''
tags = ["password", "neo4j"]
[[rules]]
id = "aura-client-secret"
description = "Aura API client secret"
regex = '''(?i)aura[_-]?(client[_-]?)?secret\s*[:=]\s*['"]?[A-Za-z0-9._\-]{20,}['"]?'''
tags = ["api-key", "aura"]
[[rules]]
id = "neo4j-bolt-uri-with-creds"
description = "Bolt/neo4j+s URI embedding credentials"
regex = '''neo4j\+s?://[^:@\s/]+:[^@\s/]+@'''
tags = ["credentials", "neo4j"]
[[rules]]
id = "nams-api-key"
description = "Neo4j Agent Memory Service key"
regex = '''nams_[A-Za-z0-9]{20,}'''
tags = ["api-key", "nams"]
# ── Allowlist (not secrets) ─────────────────────────────────
[allowlist]
description = "Non-secret files and examples"
paths = [
'''\.gitleaks\.toml$''',
'''(^|/)\.env\.example$''',
'''data/export_(athlete|biohacker|default|sedentary)\.xml$''', # synthetic personas
]