chore: allowlist the test-fixture secret so the scanner stays trustworthy (#132) #438
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/gitleaks-allowlist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
.gitleaks.tomlextending the default ruleset, with one path allowlist.#132 has been reporting a single finding: a
generic-api-keyatwebapp/backend/tests/test_config.py:8. Checked rather than assumed — it is:in a file whose docstring reads "Tests for startup validation of placeholder and weak secrets." It exists to prove the app accepts a well-formed key while rejecting weak ones. Never a live credential.
Why bother. Not the noise — what permanent noise does. A scanner that always says "1 secret" is a scanner nobody reads, and this week #428 found a real credential sitting in plaintext at rest, unnoticed for months and present in every backup. The next finding has to mean something.
Why a path allowlist rather than an inline
gitleaks:allow. The finding is reported against a historical commit (f25ee12096, 2026-07-14), so a marker in the working tree would not suppress it.⚠️ This may not be enough on its own. The scanner is fleet-wide —
security-scan.ymlis not in this repo's.forgejo/workflows. A repo-local.gitleaks.tomlis only picked up when gitleaks runs without an explicit--config. If the fleet runner passes its own config, the allowlist has to move to the iac-repo instead. Worth confirming on the next scheduled scan; if #132 still shows the finding, that is the reason.The file's header sets the bar for future additions: allowlist only when the value is demonstrably not a live credential, say why, and if in doubt rotate instead.
🤖 Generated with Claude Code