Lion Cipher Lab

Audit the kubelet and API server settings of YOUR OWN kind cluster by hand

Why it matters

A cluster scanner reports that a kubelet check failed. A person who has read the kubelet's own settings knows what it means: the kubelet is the agent on each machine, with an HTTPS API that can read pod information and, depending on settings, run commands in containers. Who may call it depends on two things, how callers are identified and what they are allowed to do. Reading those two settings yourself, and seeing the status code flip when you change them, replaces memorised rules with understanding.

What you'll learn

Steps in this lab

  1. The rule, and the three questions of an audit
  2. A kind node is a container: go in and look
  3. Read the kubelet: who may call it, and what may they do
  4. Read the API server flags
  5. Test the kubelet port from inside the cluster, by status code
  6. Change one setting, prove the effect, put it back
  7. Two RBAC audits that belong with the settings
  8. Rate it, fix it, and what the defender sees

Open the full interactive lab →

Keep learning