Description
Integrate Gitleaks to detect hardcoded secrets, API keys, tokens, and credentials before they reach the repository.
Part of the Quality Tooling Rollout (#369).
Tasks
Motivation
A blockchain explorer handles RPC URLs, API keys, and potentially wallet-related configuration. Secret leaks are critical. Gitleaks:
- Prevents accidental credential commits (pre-commit + CI)
- Scans full git history for past leaks
- Detects 150+ secret types out of the box (AWS, GitHub tokens, private keys, etc.)
Notes
- Pre-commit hook via lefthook or husky to catch secrets locally.
- CI should block PRs on any detection (high signal, low false positives).
- After initial history scan, rotate any exposed credentials immediately.
Description
Integrate Gitleaks to detect hardcoded secrets, API keys, tokens, and credentials before they reach the repository.
Part of the Quality Tooling Rollout (#369).
Tasks
Motivation
A blockchain explorer handles RPC URLs, API keys, and potentially wallet-related configuration. Secret leaks are critical. Gitleaks:
Notes