Lesson 16 · Senior IaC judgment
Identity and secrets judgment: Workload Identity, keyless auth, and KMS
How to explain the trust chain behind pods, CI bots, and encrypted secrets — and why this matters more than memorizing annotations or resource names in isolation.
Your win: connect Workload Identity, GitHub WIF, and KMS into one trust story, and explain why senior IaC judgment cares more about identity flow and keyless design than about isolated YAML or Terraform snippets.
Why this is the cross-course payoff topic
Many earlier courses referenced identity and secret access indirectly: pods calling Google APIs, CI bots authenticating without static keys, SOPS decryption, KMS-backed attestation. This lesson is where those ideas finally become one system instead of scattered facts.
The senior move is to stop treating them as separate tool tricks. Workload Identity, WIF, and KMS are all parts of a broader trust design: who is allowed to be whom, how that trust is granted, and which paths avoid long-lived credentials.
That shift matters because a lot of weak explanations stay at the surface. They remember an annotation name, a Terraform resource kind, or a bot account label. Stronger explanations can trace the whole trust path end to end.
What the trust chain looks like here
For pods, the important idea is the KSA→GSA trust link behind the annotation. For CI, it is GitHub OIDC→WIF pool/provider→GSA. For secrets, it is the KMS-backed path that allows decryption or signing without smuggling static credentials around the platform.
That is why this topic matters more than “do you remember the annotation name?” The annotation is only the surface. The real engineering value is knowing what binding makes it real, what keyless path it enables, and what failure or over-permission risk appears if the trust chain is wrong.
modules/apps/*/sa_identity_namespaces.tf, the GitHub OIDC/WIF pool gh-action-pool, and the KMS keyrings backend-services and binauthz-attestors form a concrete identity-and-secrets system that earlier courses were already relying on.What stronger answers sound like
The strongest answers here sound like: “the platform’s identity and secrets story is a Terraform-wired trust chain — KSAs are allowed to impersonate GSAs through Workload Identity bindings, GitHub OIDC federates through a WIF pool to CI bot GSAs, and KMS provides the cryptographic backing for decryption and attestation without distributing static keys.”
That answer is stronger because it shows system thinking rather than tool-by-tool recall.
Re-read IAM, Workload Identity, and KMS as one system
Use the official docs and repo map together so the trust chain stays concrete.
→ GKE Workload Identity
→ Workload Identity Federation
→ Cloud KMS
→ Repo IaC map
Check yourself (from memory)
Q1. What is the strongest senior summary of the repo’s identity/secrets design?
Sources. GCP IAM/WI/WIF/KMS docs; repo IaC map.