Secrets hygiene
P57.secrets-supply-chain.01 · Audience: guest, it-ml, language-pro · Prerequisites: Injection & the untrusted-input lens
A credential that reaches a repository is already compromised: history is permanent and clones are
everywhere, so rotation is the only real cure. This project learned it directly — on
2026-07-04 a blanket git add -A swept an .env backup into a commit, which is why staging
explicit paths is now a standing rule, alongside the bandit gate in make quality.
This module builds the defence that catches it earlier: a scanner over the diff, before it lands.
Ask the mentor about this module
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Keeping your files on this device
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Rung 1 — scan a diff for leaked secrets
Loading exercise…
My notes on this module
Loading your notes...
Where next?
Later in Secrets & Supply Chain