-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitleaks.toml
More file actions
61 lines (56 loc) · 2.63 KB
/
Copy path.gitleaks.toml
File metadata and controls
61 lines (56 loc) · 2.63 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
[extend]
useDefault = true
[[allowlists]]
description = "UUID-shaped App Store and mobile SDK test tokens"
condition = "AND"
targetRules = ["generic-api-key"]
regexTarget = "secret"
regexes = ['''(?i)^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$''']
paths = [
'''(?:^|/)libraries/react-native/tests/''',
'''(?:^|/)libraries/android/sdk/src/test/''',
'''(?:^|/)libraries/ios/Tests/''',
'''(?:^|/)vendored/app-store-server-sdk/tests/''',
]
[[allowlists]]
description = "Synthetic Stripe credentials used by config-provider tests"
condition = "AND"
targetRules = ["generic-api-key", "stripe-access-token"]
regexTarget = "secret"
regexes = ['''^(?:(?:sk|rk)_(?:live|test)|whsec_)[a-z0-9_]+$''']
paths = [
'''(?:^|/)packages/core/src/services/paymentProviders/stripe/config-provider\.test\.ts$''',
'''(?:^|/)packages/backend/test/paymentProviders/stripe/config-provider\.test\.ts$''',
'''(?:^|/)packages/backend/test/paymentProviders/PaymentProviderConfigurationSecrets\.integration\.test\.ts$''',
]
[[allowlists]]
description = "Public UUIDv5 namespace used for deterministic account tokens"
condition = "AND"
targetRules = ["generic-api-key"]
regexTarget = "secret"
regexes = ['''^3919eb4e-3466-593c-8c1e-84554e13a0a6$''']
paths = [
'''(?:^|/)libraries/react-native/src/core/utils/account-token\.ts$''',
'''(?:^|/)packages/core/src/utils/crypto/account-token\.ts$''',
]
[[allowlists]]
description = "Throwaway private keys used only by crypto unit tests"
targetRules = ["private-key"]
paths = [
'''(?:^|/)packages/core/src/utils/crypto/SecretBox\.test\.ts$''',
'''(?:^|/)packages/core/test/services/paymentProviders/appStore/sdk-context\.test\.ts$''',
'''(?:^|/)packages/backend/test/paymentProviders/appStore/AppStoreSdkContext\.test\.ts$''',
]
[[allowlists]]
description = "Byte-identical public fixtures from Apple's App Store Server Library"
targetRules = ["jwt"]
paths = [
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/mock_signed_data/missingX5CHeaderClaim$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/mock_signed_data/renewalInfo$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/mock_signed_data/testNotification$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/mock_signed_data/transactionInfo$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/mock_signed_data/wrongBundleId$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/xcode/xcode-signed-app-transaction$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/xcode/xcode-signed-renewal-info$''',
'''(?:^|/)vendored/app-store-server-sdk/tests/resources/xcode/xcode-signed-transaction$''',
]