forked from DelegoLabs/Delego-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
40 lines (36 loc) · 1.28 KB
/
Copy path.gitleaks.toml
File metadata and controls
40 lines (36 loc) · 1.28 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
# Gitleaks configuration for #81 — secret scanning.
#
# Extends gitleaks' default rule set (600+ patterns covering AWS, GitHub,
# Stripe, generic high-entropy strings, private keys, etc.) rather than
# replacing it — [extend] with no other [[rules]] means "keep every default
# rule, add these allowlist entries on top."
#
# Run locally:
# gitleaks detect --config .gitleaks.toml --source . -v
title = "Delego-backend secret scan"
[extend]
useDefault = true
[allowlist]
description = "Known-safe patterns: placeholder env values, generated fixtures, and docs examples"
paths = [
# Documentation and templates intentionally show the *shape* of a
# secret, never a real one.
'''\.env\.example$''',
'''ARCHITECTURE\.md$''',
'''DEPLOYMENT_EMAIL_RETRY_DLQ\.md$''',
'''OPERATIONAL_RUNBOOK_DLQ\.md$''',
'''docs/.*\.md$''',
# Test fixtures use fake keys/tokens by construction — see
# tests/unit and each service's *.test.ts files, which generate
# random or hardcoded-but-fake credentials for assertions.
'''\.test\.ts$''',
'''\.test\.js$''',
'''tests/.*''',
]
regexes = [
# Explicit non-secret placeholder conventions already used in this repo
# (.env.example's JWT_SECRET=change-me-in-production and similar).
'''change-me''',
'''your-.*-here''',
'''<[A-Z_]+>''',
]