Free module
Workload identity with SPIFFE and SPIRE
Learn workload identity hands on with SPIFFE and SPIRE on k3s: SPIFFE IDs, SVIDs, attestation, registering pods, mTLS and rotation.
The lessons
Each lesson is free and interactive. Press Start lab to run its commands in a live lab and to sit its quizzes and tasks, with no account needed.
1 · Virtual machine lab
Why workload identity replaces shared secrets
I can explain why an attested, short-lived identity is safer than a shared secret.
Read the lesson2 · Virtual machine lab
SPIFFE IDs, trust domains and SVIDs
I can read a SPIFFE ID and find it inside an X.509 or JWT SVID.
Read the lesson3 · Virtual machine lab
SPIRE node and workload attestation
I can work out which registration entries match a workload from its selectors.
Read the lesson4 · Virtual machine lab
Register a Kubernetes workload with SPIRE
I can register a Kubernetes workload so that its pods, and only they, get its SVID.
Read the lesson5 · Virtual machine lab
Mutual TLS between services with SVIDs
I can decide whether a caller is authorised from the SPIFFE ID in its certificate.
Read the lesson6 · Virtual machine lab
SVID rotation, federation and running SPIRE
I can work out when SPIRE will rotate an SVID from its time to live.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.