An organization mandates that external deployment pipelines running outside Google Cloud must access Cloud Storage buckets without using downloadable credential keys. A cloud engineer configures Workload Identity Federation to establish trust between the external identity provider and Google Cloud. Which IAM role assignment on the target Google Cloud service account is required to allow the external workload principal to obtain short-lived credentials?
- Grant the external workload principal the Workload Identity User role (roles/iam.workloadIdentityUser) directly on the target service account.Cevap
- BCreate and export a JSON service account key for the target service account and store it as an encrypted secret in the external deployment pipeline.
- CGrant the external workload principal the primitive Editor role (roles/editor) at the project level.
- DGrant the target service account the Workload Identity User role (roles/iam.workloadIdentityUser) at the organization resource level so permissions inherit down.
Cevap
Grant the external workload principal the Workload Identity User role (roles/iam.workloadIdentityUser) directly on the target service account.
Workload Identity Federation allows external workloads to exchange external tokens for short-lived GCP credentials by granting the external workload principal the Workload Identity User role (roles/iam.workloadIdentityUser) on the target service account resource.
Adım Adım Çözüm
Anahtar Kavram
Configuring Service Account Impersonation and Workload Identity
Tahmini Süre:2m 0s