Interview Prep/Azure/Entra ID, RBAC and Identities

How does workload identity federation work?

IntermediateConceptEntra ID, RBAC and Identities
Answer

Instead of a client secret, an app registration or user-assigned managed identity gets a federated identity credential that trusts tokens from an external OIDC issuer for a specific subject.

  1. The external system (GitHub Actions, Azure DevOps, a Kubernetes cluster) issues a short-lived OIDC JWT.
  2. The workload presents it to Entra's token endpoint as a client assertion.
  3. Entra checks issuer, subject and audience (api://AzureADTokenExchange) against the federated credential.
  4. If they match, Entra returns an Azure access token.

No secret exists to leak or expire. It is the default for CI and for AKS workload identity.

Azure All Azure questions Roadmap: Azure core services

More on Entra ID, RBAC and Identities