An enterprise fintech organization is designing an automated continuous deployment pipeline using Cloud Build and Google Cloud Deploy to release microservices across multiple Google Kubernetes Engine (GKE) clusters. To comply with regulatory security auditing and zero-trust policies, the organization mandates that deployment pipelines must eliminate long-lived service account keys and adhere strictly to the principle of least privilege. The build runner service account requires authorization to execute deployment actions on behalf of a dedicated deployment service account without gaining overall administrative privileges. Which IAM configuration strategy should the cloud architect implement to fulfill these requirements securely?
- Grant the build runner service account the Service Account User role (`roles/iam.serviceAccountUser`) on the specific deployment service account to allow identity impersonation.Cevap
- BGrant the build runner service account the Service Account Admin role (`roles/iam.serviceAccountAdmin`) at the project level to ensure full privilege delegation during pipeline execution.
- CGrant the build runner service account the primitive Owner role (`roles/owner`) at the project level to prevent IAM authorization failures during pipeline execution.
- DConfigure the pipeline runner to generate and save temporary service account keys to local ephemeral runner storage for authentication during deployment phases.
Cevap
Grant the build runner service account the Service Account User role (`roles/iam.serviceAccountUser`) on the specific deployment service account to allow identity impersonation.
The option specifying to grant the Service Account User role (`roles/iam.serviceAccountUser`) on the specific deployment service account allows the build agent to impersonate the target deployment identity securely. This pattern avoids exported key files and adheres strictly to the principle of least privilege required in enterprise release pipelines.
Adım Adım Çözüm
Anahtar Kavram
Service Account Impersonation and Least Privilege in CI/CD Pipelines
Tahmini Süre:2m 0s