decision on secrets-never-in-repositories-or-logs
Keep secrets out of anything that is copied, shared or kept: repositories, commit messages, issue trackers, logs, error reports, screenshots, documentation and handover notes. Reference where a secret is kept, never the secret. If one is committed or logged anyway, replace it at its source first, then clean up the copies. Reasoning: repositories are cloned and mirrored, logs are shipped elsewhere and retained, and screenshots are pasted into places nobody tracks; a secret in any of them should be assumed public. Deleting the commit or the log line does not recall the copies already made, so the only real fix is to make the exposed secret worthless by replacing it. Considered and rejected: rewriting history or deleting log lines as the fix (the secret is already copied); keeping secrets in a private repository (private repositories are shared, forked and leaked too).
- id
- 766e378b77387778f377fdde09a338817e36e61793d9ddcf8914bfde57c54e4a
- prev
- 45ccc67146682fa954cb197efc7d5bb65bca04ec65d47d6334a6a84719c3093e
- signed
- by ed25519:0f2cd708dc0274a8b82fbac5fccd948aa2dd895bfaa44d37539091eb0ad3129c
- time
- 2026-11-18T20:05:00Z