Repository navigation
Expand file tree
/
Copy path.gitleaks.toml
More file actions
119 lines (103 loc) · 4.3 KB
/
Copy path.gitleaks.toml
File metadata and controls
119 lines (103 loc) · 4.3 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
title = "OpenMed secret scanning"
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Literal synthetic unresolved patient identifier in clinical registry test"
condition = "AND"
regexTarget = "line"
paths = ['''^tests/unit/structured/registry/test_(clinical_)?registry\.py$''']
regexes = ['''^\s*patient_key="patient_unresolved000001",\s*$''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Literal synthetic unresolved patient identifier in dataset integration fixture"
condition = "AND"
regexTarget = "line"
paths = ['''^tests/integration/test_saved_cohort_dataset_build\.py$''']
regexes = ['''^\s*patient_key="patient_unresolved000001",\s*$''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Literal synthetic patient identifier in saved cohort journey fixture"
condition = "AND"
regexTarget = "line"
paths = ['''^tests/integration/test_saved_cohort_journey\.py$''']
regexes = ['''^\s*patient_key="patient_goldenjourney001",\s*$''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Literal synthetic patient identifier in identity resolution examples"
condition = "AND"
regexTarget = "line"
paths = ['''^docs/interop/identity-resolution\.md$''']
regexes = ['''^\s*(selected_)?canonical_key="patient_0123456789abcdef",\s*$''']
[extend]
useDefault = true
[[rules]]
id = "local-credential-file"
description = "Local credential files must not be committed"
path = '''(^|/)(creds\.txt|\.pypirc|secrets\.json|\.env(\..*)?)$'''
regex = '''(?m).+'''
tags = ["credentials", "local-secret-file"]
[[rules]]
id = "openmed-secret-scan-canary"
description = "Synthetic canary used to verify the secret scanner gate"
regex = '''OPENMED_SECRET_SCAN_CANARY_[A-Z0-9]{32}'''
keywords = ["OPENMED_SECRET_SCAN_CANARY_"]
tags = ["secret-scanner-canary"]
[[allowlists]]
targetRules = ["openmed-secret-scan-canary"]
description = "Committed canary fixture; CI copies it to a non-allowlisted path to prove detection still works"
paths = ['''tests/fixtures/secret_scan_canary\.txt$''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Synthetic secret labels in the privacy filter example"
condition = "AND"
regexTarget = "line"
paths = ['''examples/privacy_filter_book/app\.py$''']
regexes = ['''\("secret", "(VIOLET-WINDSOR-1944|KRONEN-29-ALPHA|silver-maple-lune-88)"\)''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Synthetic patient key in the determinism regression fixture"
condition = "AND"
regexTarget = "line"
paths = ['''openmed/eval/determinism\.py$''']
regexes = ['''patient_key="synthetic-patient-0001"''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Swift demo note describes tokenization, not a token value"
condition = "AND"
regexTarget = "line"
paths = ['''swift/OpenMedDemo/OpenMedDemo/ContentView\.swift$''']
regexes = ['''o200k_base tokenization, BIOES/Viterbi decoding''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Cloudflare Web Analytics beacon token is public site metadata"
condition = "AND"
regexTarget = "line"
paths = ['''docs/website/index\.html$''']
regexes = ['''data-cf-beacon=.*"token": "[0-9a-f]{32}"''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Synthetic dataset marker in the guard regression fixture"
condition = "AND"
regexTarget = "line"
paths = ['''tests/unit/guard/test_dataset\.py$''']
regexes = ['''SYNTHETIC_(TOKEN|MARKER) = "SYNTHETIC_SUBJECT_001"''']
[[allowlists]]
targetRules = ["aws-access-token"]
description = "Synthetic AWS-shaped credential in the privacy scanner unit test"
condition = "AND"
regexTarget = "line"
paths = ['''tests/unit/test_privacy_scan_action\.py$''']
regexes = ['''key: AKIA(?:ABCDEFGHIJKLMNOP)''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Exact public Cloudflare site identifier used by analytics regression tests"
condition = "AND"
regexTarget = "secret"
paths = ['''^tests/browser/brand/brand\.spec\.ts$''', '''^tests/unit/test_brand_system\.py$''']
regexes = ['''^86108e13d57f44f69a4c67a445df1f17$''']
[[allowlists]]
targetRules = ["generic-api-key"]
description = "Exact public openai/whisper-tiny.en tokenizer Git revision used by the Core ML speech adapter"
condition = "AND"
regexTarget = "secret"
paths = ['''^swift/OpenMedKit/Sources/OpenMedSpeech/VerifiedSpeechArtifact\.swift$''']
regexes = ['''^87c7102498dcde7456f24cfd30239ca606ed9063$''']