-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy path.gitleaks.toml
57 lines (51 loc) · 1.23 KB
/
.gitleaks.toml
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
# Gitleaks configuration for AZ-104 lab environment
title = "AZ-104 Lab Gitleaks Config"
[allowlist]
description = "Global allowlist"
paths = [
'''class-setup/README.md''',
'''class-setup/INSTRUCTOR.md''',
]
# Azure specific rules
[[rules]]
id = "azure-storage-key"
description = "Azure Storage Key"
regex = '''(?i)(?:azure|storage).*(?:key|secret|password|token).*[=:]\s*["']?[\w\-=]+["']?'''
secretGroup = 1
keywords = [
"azure",
"storage",
"key",
"secret"
]
[[rules]]
id = "azure-connection-string"
description = "Azure Connection String"
regex = '''(?i)(?:DefaultEndpointsProtocol|AccountName|AccountKey|SharedAccessSignature)=[\w\-=;]+'''
secretGroup = 0
keywords = [
"DefaultEndpointsProtocol",
"AccountName",
"AccountKey"
]
[[rules]]
id = "azure-password"
description = "Azure Password or Token"
regex = '''(?i)(?:password|secret|token).*[=:]\s*["']?[\w\-=]+["']?'''
secretGroup = 1
keywords = [
"password",
"secret",
"token"
]
# Additional security for Key Vault references
[[rules]]
id = "key-vault-reference"
description = "Key Vault Secret Reference"
regex = '''(?i)vault.*(?:secret|key|cert).*[=:]\s*["']?[\w\-=]+["']?'''
secretGroup = 1
keywords = [
"vault",
"secret",
"key"
]