Check your own permissions

Learning Kubernetes · 3:24

Listen on 93

Lyrics

[Verse 1]
Before you try to deploy your code
Or delete what's running in production mode
There's a question that you need to ask
Can I really do this task?

Kubernetes has a way to check
Your permissions before you wreck
The system with commands you can't run
Let's learn how it's properly done

[Chorus]
Can I, can I, check before you try
Auth can I will tell you why
Some commands might be denied
Can I, can I, verify your rights
Before you launch into the night
Permission checking keeps things right

[Verse 2]
Kubectl auth can I create
Deployments in this cluster state
The system checks your role and scope
Gives you yes or no, don't just hope

Maybe you can read the pods
But writing needs the admin gods
Each namespace has its own rules
Don't be caught without the tools

[Chorus]
Can I, can I, check before you try
Auth can I will tell you why
Some commands might be denied
Can I, can I, verify your rights
Before you launch into the night
Permission checking keeps things right

[Bridge]
In production be extra careful
Deletion can be truly harmful
Check your permissions with the flag
Dash dash namespace in the bag

Kubectl auth can I delete
Pods in production's elite
Better safe than sorry later
Permission checking makes you greater

[Chorus]
Can I, can I, check before you try
Auth can I will tell you why
Some commands might be denied
Can I, can I, verify your rights
Before you launch into the night
Permission checking keeps things right

[Outro]
Before you act, before you deploy
Use can I, it's not a toy
Check your permissions, stay secure
That's how professionals endure

← View bindings | Check another user's permissions →