Context
Credentials (API keys, database passwords, Stellar secret keys) have been committed to git repositories in the past. No automated detection exists to prevent future leaks.
Current Limitation/Problem
No pre-commit or CI secret scanning. Leaked credentials remain in git history indefinitely and are only discovered post-breach.
Expected Outcome
GitLeaks-based secret scanning in pre-commit hook and CI pipeline, with custom regex patterns for Stellar keys, API keys, and JWTs. Automatic alerting and revocation on detection.
Acceptance Criteria
Technical Scope
- .gitleaks.toml - GitLeaks configuration with custom rules
- .pre-commit-config.yaml - pre-commit hook configuration
- .github/workflows/secret-scan.yml - CI secret scanning workflow
- scripts/revoke-stellar-key.sh - automated key revocation script
- docs/SECURITY.md - credential management best practices guide
Context
Credentials (API keys, database passwords, Stellar secret keys) have been committed to git repositories in the past. No automated detection exists to prevent future leaks.
Current Limitation/Problem
No pre-commit or CI secret scanning. Leaked credentials remain in git history indefinitely and are only discovered post-breach.
Expected Outcome
GitLeaks-based secret scanning in pre-commit hook and CI pipeline, with custom regex patterns for Stellar keys, API keys, and JWTs. Automatic alerting and revocation on detection.
Acceptance Criteria
Technical Scope