QuestionQ49

VerifiedBuilding and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You have configured a CI/CD pipeline in Cloud Build that builds container images. The containers are stored in Artifact Registry. You must ensure that only images built by the Cloud Build pipeline in your production project are deployed to your Google Kubernetes Engine (GKE) cluster. You want to minimize the manual effort needed for implementation and ongoing maintenance. What should you do?

Explanation

Cloud Build automatically creates the built-by-cloud-build attestor and signs successful image builds with attestations. Enabling Binary Authorization for GKE and requiring projects/PROJECT_ID/attestors/built-by-cloud-build in its policy enforces that only images built by Cloud Build in that project can be deployed, without maintaining a custom signing key or event-driven verification function.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!