Lion Cipher Lab

Secure the cluster front door: an Ingress with TLS and no anonymous access to the API server

Why it matters

A cluster has two front doors. Users reach apps through an Ingress, and an Ingress without TLS sends passwords and tokens in plain text. Admins and machines reach the API server, and by default it lets callers with no credentials in as the user system:anonymous. RBAC (role-based access control) then decides what that user may do, so one loose binding can turn into an open door. Closing both is basic cluster hygiene, and doing it by hand once shows you what each setting really does.

What you'll learn

Steps in this lab

  1. Know the two doors before you lock them
  2. Write the kind cluster config and see the default API behaviour first
  3. Run an app and expose it with an ingress controller
  4. Make a self-signed certificate and put it in a TLS Secret
  5. Write the Ingress with a tls block and prove HTTPS works
  6. Close anonymous API access: the configuration file
  7. Rebuild the cluster with the file wired into the API server
  8. Test the closed door, then the health paths, then your own access
  9. Repeat the HTTPS test and clean up everything

Open the full interactive lab →

Keep learning