CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Security Associate

Projected ServiceAccount Tokens

ServiceAccount tokens changed shape in 1.24 and most material has not caught up. This guide requests one, decodes it, and then uses it against the apiserver by hand to see authentication and authorization act separately.

Security Fundamentals Guide 19 of 42 Intermediate

Written against the versions above. TokenRequest API, stable since 1.22 and the default since 1.24. Legacy non-expiring Secret-based tokens still work if one exists, but nothing creates them automatically.

The cka5001 cluster: one control plane and 3 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA5001192.168.0.41Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA5001-NODE01192.168.0.42Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE02192.168.0.43Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE03192.168.0.44Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. Ask for a token, and look inside it

  2. Use it by hand, twice

Official sources