Lesson 5 of 9 - Identity and secrets
Where secrets leak, and how to limit the damage
By Branko Petric - Updated - About 8 min - Full access
The short answer
Secrets leak through Git history, CI logs and container images. When a key leaks, revoke or rotate it first, then clean up and check what it was used for. Least privilege means each key can do only what its job needs, so a leaked key exposes one thing, not the whole account.
Want the bigger picture? This lesson maps to this step of the DevOps roadmap.