Interview Prep/Azure/Entra ID, RBAC and Identities

How does a pod in AKS get an Entra token with workload identity?

AdvancedConceptEntra ID, RBAC and Identities
Answer
  1. The cluster has the OIDC issuer and workload identity features enabled.
  2. A user-assigned identity has a federated credential with issuer = <cluster OIDC URL> and subject = system:serviceaccount:<ns>:<sa>.
  3. The ServiceAccount is annotated azure.workload.identity/client-id: <clientId> and the pod has label azure.workload.identity/use: "true".
  4. The mutating webhook injects AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_FEDERATED_TOKEN_FILE and a projected SA token volume.
  5. The Azure SDK (DefaultAzureCredential / WorkloadIdentityCredential) exchanges the projected token for an Entra token.

No node-level identity is shared between pods, which is why it replaced the deprecated AAD Pod Identity.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities