code.repo.no-committed-secrets

Repositories contain no committed secrets

No tracked file and no commit in the full history of any repository contains a credential the secret scanner recognises.

Critical Attested Detective

Assertion

count(findings) == 0, after the repository's committed allowlist is applied

Evaluated against gitleaks git --redact --config .linter/.gitleaks.toml <repository>, collected on-push.

Rationale

A secret committed to git is a secret forever. Deleting the file does not remove it from history, and history is in every clone, every fork, every CI cache, and every backup. The only remediation that works is rotation, and the only way to rotate in time is to find the secret the moment it lands. This control scans the full history rather than the current tree for exactly that reason: the current tree is the one place a leaked secret is guaranteed not to be.

Observation

On every push, and daily across all repositories, the collector runs the secret scanner over the complete commit history using the configuration committed in the repository’s .linter/ directory. Findings are redacted in the evidence. The assertion holds when the finding count is zero after the repository’s allowlist is applied.

The allowlist is itself a file in the repository, so an exception is a reviewed change with a commit message, not a setting somewhere else. Test fixtures and example values belong in the allowlist with a reason; real credentials never do.

Remediation

Rotate the credential first. Then remove it from the tree. Rewriting history is optional and usually not worth the disruption, because rotation is what actually closes the exposure. If the finding is a false positive, add a scoped allowlist entry that names the file and the reason so the next reader does not have to re-investigate.