Skip to content

Commit 21e0da1

Browse files
committed
fix(hygiene): add gitleaks rule for autosearch-signsrv access tokens (as_hex32)
1 parent 5e70fa4 commit 21e0da1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.gitleaks.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ keywords = ["docs/plans", "docs/proposals", "docs/spikes", "docs/channel-hunt",
8383
description = "Release notes / migration docs may mention paths in historical context (batch 3 will rewrite migration doc)"
8484
paths = ['''^CHANGELOG\.md$''', '''docs/migration/.*\.md$''', '''docs/testing/TEST_PLAN\.md$''', '''docs/delivery-status\.md$''']
8585

86+
[[rules]]
87+
id = "autosearch-signsrv-token"
88+
description = "AutoSearch signsrv access token (as_<hex32>) — KV-backed worker auth, must not appear in public files"
89+
regex = '''\bas_[a-f0-9]{32}\b'''
90+
tags = ["secret", "signsrv-token"]
91+
keywords = ["as_"]
92+
93+
[[rules.allowlists]]
94+
description = "This rule file legitimately documents the token format"
95+
paths = ['''^\.gitleaks\.toml$''']
96+
8697
[[rules]]
8798
id = "runtime-experience-jsonl"
8899
description = "Runtime experience JSONL files should never be tracked (patterns-jsonl)"

0 commit comments

Comments
 (0)