Workload Identity Federation (WIF) enables external workloads — applications running on AWS, Azure, GitHub Actions, GitLab CI, Kubernetes clusters outside GCP, or any OIDC-compatible identity provider — to authenticate to GCP APIs and impersonate GCP service accounts without storing long-lived GCP service account keys. The core mechanism is OIDC or SAML 2.0 token exchange: the external workload presents a short-lived token from its native identity provider, and GCP exchanges it for a short-lived GCP access token, eliminating the static key credential that represents the highest-risk exfiltration target in GCP IAM.
The security improvement from WIF over service account keys is categorical, not incremental. A service account key is a long-lived, downloadable JSON credential that retains full permissions until explicitly revoked. If leaked in a git commit, log file, container image, or CI/CD pipeline variable, the key provides persistent access until discovered and rotated. A WIF-issued access token is valid for one hour and is bound to the specific workload’s OIDC claims; it cannot be reused from a different context, and there is no long-lived credential to leak in the first place.
WIF is the mechanism enabling true keyless authentication for all three major cross-cloud scenarios encountered in Course 5: authenticating from an AWS Lambda function to a GCP API in a multi-cloud architecture, authenticating from a GitHub Actions workflow to GCP for automated deployments, and authenticating from a GitLab CI pipeline to GCP for container image pushes to Artifact Registry. Understanding WIF’s configuration model — workload identity pools, providers, and service account impersonation — is the prerequisite for implementing any of these keyless cross-cloud patterns.