hosted slice 2: allow two base64 test fixtures in gitleaks
make gitleaks found two generic-api-key matches in branch history:
internal/hostedops/ledger_test.go (5c6d7afd), base64 of the text
"secret-seed-bytes-0123456789abcdef", a fake operator key the bundle test
checks is left out; and internal/hostedproxy/e2e_test.go (3fb0e5ca),
RFC 6455's sample Sec-WebSocket-Key ("the sample nonce"). Neither is a
credential. Each gets an exact-value secret allowlist, as the file's
other fixtures do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+10
−0
.gitleaks.toml+10 −0
diff --git a/.gitleaks.toml b/.gitleaks.toml| index 93510242..47ccdd22 100644 |
| --- a/.gitleaks.toml |
| +++ b/.gitleaks.toml |
| @@ -32,3 +32,13 @@ regexes = ['''\["equipo\.person\.v1\.TOKENFIXTURE", "equipo\.person\.v1\.OTHER"\ |
| description = "The protocol 37 worker hello fixture (wiretest frames/hello-worker-conns.json) uses the seal key 0123456789abcdef0123456789abcdef, as text and as base64; it is not a credential." |
| regexTarget = "secret" |
| regexes = ['''^0123456789abcdef0123456789abcdef$''', '''^MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=$'''] |
| + |
| +[[allowlists]] |
| +description = "The hosted ops bundle test (internal/hostedops/ledger_test.go) writes base64 of the text secret-seed-bytes-0123456789abcdef as a fake operator key and checks the bundle leaves it out; it is not a credential." |
| +regexTarget = "secret" |
| +regexes = ['''^c2VjcmV0LXNlZWQtYnl0ZXMtMDEyMzQ1Njc4OWFiY2RlZg==$'''] |
| + |
| +[[allowlists]] |
| +description = "The hosted proxy WebSocket test (internal/hostedproxy/e2e_test.go) sends RFC 6455's sample Sec-WebSocket-Key, base64 of the text the sample nonce; it is a public example nonce, not a credential." |
| +regexTarget = "secret" |
| +regexes = ['''^dGhlIHNhbXBsZSBub25jZQ==$'''] |