Part 12 / Topic 1 of 7
Least privilege
Ask for the narrowest access that does the job — for yourself and for every service you deploy. Not because broad access gets refused (it often doesn't), but because every credential you hold is risk you carry: if your laptop or your service is compromised, the blast radius is exactly what you were granted.
In practice: a read-only API scope if you only read; one database user per service with table-level grants; your personal access expiring when the engagement ends. Keep a written access list — who/what has access to which system, at what level, and why. It makes the security review (lesson 5) an email instead of a meeting, and offboarding a checklist instead of an archaeology dig.
🧪 Quick quiz — answer from memory, then check.
- What is the principle of least privilege?
Show the answer
Give each person and service only the access it needs. In customer environments, ask for the narrowest access that does the job, and document it.
Done here? The practice set for Part 12 — 4 exercises with solutions — is on the part page.