mirror of
https://github.com/quay/quay.git
synced 2026-10-23 09:49:06 +03:00
fix(security): add gitleaks fixture marker and clear generic secret findings Add a root .gitleaks.toml that extends the default rules and allowlists the QUAY_FIXTURE_ONLY stopword, so dummy test credentials can be marked explicitly without exempting test paths. Realistic unmarked values are still reported. Mark the existing test fixtures with the QUAY_FIXTURE_ONLY- prefix: the LDAP redaction values, the invalid-Unicode token fixtures, and the shared DATABASE_SECRET_KEY test value used by CI, the Makefile, initdb and the test configs. Values that must keep an exact format (encrypted robot token, Garage RPC secret, the local Keycloak example) get a same-line gitleaks:allow instead. Document the convention in agent_docs/testing.md and .github/CONTRIBUTING.md. NO-ISSUE Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>