-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
31 lines (28 loc) · 913 Bytes
/
Copy path.gitleaks.toml
File metadata and controls
31 lines (28 loc) · 913 Bytes
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
# Gitleaks configuration for infrastructure repository
# https://github.com/gitleaks/gitleaks
title = "gitleaks config"
# Global allowlist for known non-sensitive patterns
[allowlist]
description = "Global allowlist"
regexes = [
# SOPS/age encrypted secrets (ENC[...] format)
'''ENC\[AES256_GCM,data:[A-Za-z0-9+/=]+,iv:[A-Za-z0-9+/=]+,tag:[A-Za-z0-9+/=]+,type:\w+\]''',
# age recipient public keys (safe to commit)
'''age1[a-z0-9]{58}''',
# AGE ENCRYPTED FILE markers
'''-----BEGIN AGE ENCRYPTED FILE-----''',
'''-----END AGE ENCRYPTED FILE-----''',
# SOPS metadata fields
'''encrypted_regex''',
'''lastmodified''',
]
paths = [
# SOPS-encrypted Kubernetes secrets
'''kubernetes/.*/(secrets|credentials|ovh-credentials)\.yaml$''',
# Gitleaks config itself
'''\.gitleaks\.toml$''',
# Test files with mock data
'''(.*?)(test|spec|mock)(.*)''',
# Git directory
'''^\.git/''',
]