An organization is reviewing its CI/CD pipeline automation for deploying microservices to Cloud Run. During an internal SDLC security audit, the team discovers that the Cloud Build pipeline runs under a service account granted the Owner primitive role across the target Google Cloud project. To enforce least-privilege security controls while maintaining automated pipeline deployments, which configuration change should the Cloud Architect recommend?
- Configure Cloud Build build triggers to execute using a dedicated user-managed service account assigned only the specific predefined roles required to build artifacts and deploy to Cloud Run.Cevap
- BReplace the Owner role on the default Cloud Build service account with the Editor primitive role to reduce administrative scope across the project.
- CGrant the Service Account Admin role to pipeline developers so they can directly impersonate and manage the Cloud Build execution identity.
- DMaintain the project-level Owner permissions on the service account and implement VPC Service Controls to prevent unauthorized resource modifications.
Cevap
Configure Cloud Build triggers to execute using a dedicated user-managed service account assigned only the specific predefined roles required to build artifacts and deploy to Cloud Run.
Configuring Cloud Build triggers to use a custom user-managed service account with fine-grained predefined roles satisfies least-privilege access requirements while allowing automated build and deployment workflows.
Adım Adım Çözüm
Anahtar Kavram
Least-Privilege Pipeline Execution with User-Managed Service Accounts