A security architect is configuring keyless authentication for an external CI/CD runner to fetch database credentials stored in GCP Secret Manager. To comply with zero-trust security standards and prevent credential leakage, the architect decides to implement Workload Identity Federation using OpenID Connect (OIDC). What is the correct chronological sequence of administrative steps required to establish keyless authentication and retrieve the secret payload?
- 1Create a Workload Identity Pool in Google Cloud IAM to define the management boundary for the external pipeline identities.
- 2Add an OIDC Workload Identity Provider to the pool, specifying the issuer URL, audience, and assertion attribute mappings.
- 3Provision a dedicated GCP Service Account and grant it the Secret Manager Secret Accessor role on the required secret.
- 4Bind the external workload identity principal to the GCP Service Account using the Workload Identity User role.
- 5Exchange the external OIDC token for a short-lived GCP access token using the Security Token Service API to fetch the secret payload.
Answer
The correct sequence starts with creating the Workload Identity Pool, adding the OIDC Workload Identity Provider, provisioning a dedicated target Service Account with least privilege, binding the external principal using the Workload Identity User role, and finally exchanging the external OIDC token for a short-lived GCP access token via STS.
The correct order follows the standard setup lifecycle for Workload Identity Federation: first establishing the infrastructure container (Workload Identity Pool), then configuring provider authentication parameters (OIDC Provider), provisioning a target identity with least privilege (Service Account with Secret Accessor role), mapping authorization between the external identity and target identity (Workload Identity User role), and executing runtime short-lived token exchange via STS.
Step-by-Step Solution
Key Concept
Workload Identity Federation lifecycle for external keyless authentication to Secret Manager