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.
- The external system (GitHub Actions, Azure DevOps, a Kubernetes cluster) issues a short-lived OIDC JWT.
- The workload presents it to Entra's token endpoint as a client assertion.
- Entra checks issuer, subject and audience (
api://AzureADTokenExchange) against the federated credential. - 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.
More on Entra ID, RBAC and Identities
What is Microsoft Entra ID and how is it different from on-prem Active Directory?BeginnerWhat is the difference between an app registration and a service principal?BeginnerWhat is a managed identity and what problem does it solve?BeginnerSystem-assigned vs user-assigned managed identity: when do you use each?IntermediateHow does Azure RBAC evaluate access?IntermediateName the core built-in roles and the difference between Owner, Contributor and User Access Administrator.Beginner