-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitleaks.toml
More file actions
62 lines (55 loc) · 1.81 KB
/
Copy path.gitleaks.toml
File metadata and controls
62 lines (55 loc) · 1.81 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
# GitLeaks Configuration for TinyRSVP
# This file tells secret scanning tools which secrets are safe to commit
# because they are only used in test/development environments
title = "TinyRSVP GitLeaks Configuration"
# Allow test environment secrets
[[rules]]
id = "test-environment-secrets"
description = "Allow test environment configuration files with known test secrets"
regex = '''(?i)(password|secret|key|token)'''
paths = [
'''test/authelia/.*\.yml''',
'''test/authelia/.*\.yaml''',
'''docker-compose\.test\.yml''',
'''docker-compose\.yml''',
]
[[rules.allowlist]]
description = "Test Authelia configuration files"
paths = [
'''test/authelia/configuration\.yml''',
'''test/authelia/users_database\.yml''',
]
[[rules.allowlist]]
description = "Test docker-compose files"
paths = [
'''docker-compose\.test\.yml''',
'''docker-compose\.yml''',
]
[[rules.allowlist]]
description = "Known test passwords and secrets"
regexes = [
'''admin123''',
'''test123''',
'''guest123''',
'''insecure_secret_for_testing_only''',
'''insecure_session_secret_for_testing_only''',
'''insecure_encryption_key_for_testing_only_must_be_32_chars!!''',
'''insecure_hmac_secret_for_testing_only_must_be_very_long_string''',
'''da8f152a3cc3d58054cb988a463344503ad1ad09fba718a8a5e6e9513d16040f''',
]
# Allow argon2 hashes in test files
[[rules.allowlist]]
description = "Argon2 password hashes in test configuration"
regexes = [
'''\$argon2id\$v=19\$m=65536,t=[0-9],p=[0-9]\$[A-Za-z0-9+/=]+\$[A-Za-z0-9+/=]+''',
]
# Allow RSA private keys in test configuration
[[rules.allowlist]]
description = "RSA private keys in test Authelia configuration"
regexes = [
'''-----BEGIN (RSA )?PRIVATE KEY-----''',
'''-----END (RSA )?PRIVATE KEY-----''',
]
paths = [
'''test/authelia/configuration\.yml''',
]