Give a ServiceAccount Limited Access
Write a Role, bind it, and then prove the boundary by showing everything the identity still cannot do.
Skill labbeginner~25 minPro
What you'll do
- ✓Write a Role that lists resources and verbs
- ✓Attach it to an identity with a RoleBinding
- ✓Test permissions the way an operator does, with kubectl auth can-i
- ✓Recognise subresources like pods/log as separate permissions
Lab outline
- 01A Role is a list of verbs
- 02A binding attaches it to an identity
- 03Least privilege is the denials
Before you start
- Knowing what a ServiceAccount is
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.