forked from Blue-Kollar/Blue-Collar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
38 lines (35 loc) · 1.19 KB
/
Copy path.gitleaks.toml
File metadata and controls
38 lines (35 loc) · 1.19 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
title = "Blue-Collar Gitleaks config"
# Gitleaks 8.18 accepts a single global `[allowlist]` table, so every exemption
# is merged here. Each entry is a regex, not a glob.
[allowlist]
description = "Placeholder credentials in tests, example env files, and deploy templates"
regexes = [
# Test JWT secrets
'(?i)test.secret',
'(?i)test.jwt.secret.key.for.testing',
# Test passwords
'(?i)test123!@#',
# E2E test credentials
'(?i)e2e\+[0-9]+@example\.com',
]
paths = [
# Password123! used exclusively in e2e and integration tests
"packages/api/src/__tests__/",
"packages/api/src/controllers/.*\\.test\\.ts",
"packages/api/src/services/.*\\.test\\.ts",
"packages/api/src/middleware/.*\\.test\\.ts",
"packages/api/src/utils/.*\\.test\\.ts",
"packages/api/src/config/.*\\.test\\.ts",
"packages/app/e2e/",
"deploy/load-tests/",
# Example env files with placeholder credentials
"\\.env\\.example",
"packages/api/\\.env\\.example",
"packages/api/\\.env\\.staging\\.example",
"deploy/monitoring/\\.env\\.example",
"packages/monitoring/\\.env\\.example",
# Kubernetes secrets template
"deploy/k8s/secrets\\.yaml",
# Docker compose dev default password
"docker-compose\\.yml",
]