forked from juspay/neurolink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaksrc.json
More file actions
87 lines (87 loc) · 2.12 KB
/
.gitleaksrc.json
File metadata and controls
87 lines (87 loc) · 2.12 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"description": "NeuroLink Gitleaks Configuration for Comprehensive Secret Detection",
"extend": {
"useDefault": true
},
"rules": [
{
"id": "neurolink-api-key",
"description": "NeuroLink API Key Pattern",
"regex": "neurolink[_-]?api[_-]?key[\"'\\s]*[=:][\"'\\s]*[a-zA-Z0-9]{32,64}",
"keywords": ["neurolink_api_key", "neurolink-api-key", "neurolinkApiKey"]
},
{
"id": "custom-bearer-token",
"description": "Bearer Token Pattern",
"regex": "bearer[\\s]+[a-zA-Z0-9\\-._~+/]+=*",
"keywords": ["bearer"]
},
{
"id": "database-url",
"description": "Database Connection String",
"regex": "(postgres|mysql|mongodb)://[a-zA-Z0-9_:@.-]+/[a-zA-Z0-9_-]+",
"keywords": ["postgres://", "mysql://", "mongodb://"]
},
{
"id": "private-key",
"description": "Private Key Pattern",
"regex": "-----BEGIN [A-Z ]+ PRIVATE KEY-----[\\s\\S]*?-----END [A-Z ]+ PRIVATE KEY-----",
"keywords": ["PRIVATE KEY"]
}
],
"allowlist": {
"description": "Global allowlist for common false positives",
"regexes": [
"your[-_]api[-_]key[-_]here",
"replace[-_]with[-_]your",
"example[-_]key",
"test[-_]key",
"dummy[-_]key",
"placeholder",
"sample[-_]token",
"[Xx]{20,}",
"123456789",
"abcdefgh",
"sk-[Xx]{48}",
"AIza[Xx]{35}"
],
"paths": [
".gitleaksrc.json",
"node_modules/**",
"dist/**",
"build/**",
".svelte-kit/**",
"coverage/**",
"*.min.js",
"*.bundle.js",
".git/**",
"docs/**/*.md",
"examples/**",
"test/**/*.json",
"tools/**",
"memory-bank/**"
],
"commits": [],
"stopwords": [
"example",
"test",
"dummy",
"placeholder",
"sample",
"demo",
"fake",
"mock",
"template"
]
},
"severity": {
"rules": {
"aws-access-token": "high",
"openai-api-key": "high",
"github-token": "high",
"neurolink-api-key": "critical",
"private-key": "critical",
"database-url": "medium"
}
}
}