A global media organization is establishing a centralized CI/CD pipeline using Cloud Build, Artifact Registry, and Cloud Deploy to deliver microservices to GKE clusters. The enterprise security policy enforces two strict constraints: first, build workers must operate without public internet exposure and be prevented from exfiltrating source code or build artifacts to external Google Cloud projects; second, build and deployment execution identities must adhere to strict least-privilege principles without administrative rights over IAM service accounts. Which pipeline architecture and security configuration satisfies these requirements?
- Execute build jobs using Cloud Build Private Pools enclosed within a VPC Service Controls perimeter, establish separate dedicated service accounts for Cloud Build and Cloud Deploy pipelines, and grant the Cloud Deploy worker service account the Service Account User role (roles/iam.serviceAccountUser) on the target GKE runtime service account.Cevap
- BExecute build jobs using default Cloud Build worker pools with VPC Peering, and assign the primitive Editor role (roles/editor) to the Cloud Build service account to ensure seamless provisioning and deployment across all target environments.
- CExecute build jobs inside Cloud Build Private Pools, and grant the pipeline service account the Service Account Admin role (roles/iam.serviceAccountAdmin) so the build runner can dynamically generate and impersonate short-lived credentials during release delivery.
- DExecute build jobs using default Cloud Build pools protected by IAM condition bindings, relying solely on Cloud Audit Logs to monitor and alert on potential code exfiltration to unauthorized storage buckets.
Cevap
Execute build jobs using Cloud Build Private Pools enclosed within a VPC Service Controls perimeter, establish separate dedicated service accounts for Cloud Build and Cloud Deploy pipelines, and grant the Cloud Deploy worker service account the Service Account User role (roles/iam.serviceAccountUser) on the target GKE runtime service account.
Designing secure cloud native CI/CD pipelines on GCP requires combining VPC Service Controls with private build infrastructure and fine-grained IAM controls. Cloud Build Private Pools run inside a private VPC network within a VPC Service Controls boundary, preventing unauthorized exfiltration of intellectual property and source code. Additionally, decoupling CI and CD service account identities and assigning the Service Account User role (roles/iam.serviceAccountUser) to the deployment runner provides exact workload impersonation rights without granting dangerous administrative IAM permissions.
Adım Adım Çözüm
Anahtar Kavram
Secure CI/CD Pipeline Design with Private Pools, VPC Service Controls, and IAM Least Privilege