Workload identity federation is a mechanism by which a workload, such as an application or a CI pipeline, presents a token issued by an external identity provider to a cloud's security token service and receives short-lived credentials in exchange, instead of storing a long-lived secret key. It typically relies on OpenID Connect tokens, and Google Cloud, Microsoft Entra ID and Amazon Web Services each offer their own implementation.
Because no service account key or client secret has to be kept on disk or in environment variables, the risk of leaking secrets is reduced. It is used to access cloud resources from external environments such as GitHub Actions and to let AI agents obtain credentials dynamically at run time.