Commit 5477bd8
test(crypto): mark deterministic test fixtures gitleaks:allow
The gitleaks "generic-api-key" rule was matching three hard-coded test
fixtures in aead_test.go (lines 249, 355, 378):
plainSecret := "abcdef0123456789..." // 64 hex chars
apiKey := "abcdef1234567890..." // 64 hex chars (x2)
These are deterministic fixtures used to exercise the secret-file
round-trip, not real credentials — but they trip the rule because the
variable names include "secret"/"key" and the values are 32+ chars of
[a-z0-9]. Added //gitleaks:allow inline comments rather than broadening
the global path allowlist so future test files don't get an accidental
free pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6e48567 commit 5477bd8
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
0 commit comments