Professional Cloud Security Engineer
Binary Authorization functions as an admission control deployment gate for Google Kubernetes Engine (GKE) and Cloud Run workloads. When a deployment request occurs, the service evaluates the container image against predefined security policies before allowing it to run. Administrators can configure policy enforcement in blocking mode to actively stop non-compliant images, or in dry-run mode during testing phases. In dry-run mode, the system allows the deployment to proceed while recording policy violations in Cloud Audit Logs so security teams can evaluate impact without disrupting operations.
To handle known software dependencies, policies can define an exempt image list containing trusted container registry paths. Any container image matching an exempt path bypasses standard verification checks and deploys immediately. For production emergencies, administrators can execute a break-glass procedure to bypass all policy enforcement for a specific cluster or deployment. The system logs every emergency override event to Cloud Audit Logs, capturing the identity of the user who initiated the bypass and the specific resource involved to ensure operational accountability.
Automated pipelines secure the software supply chain by generating digital attestations before container images reach deployment environments. During the continuous integration phase in Cloud Build, the build system automatically inspects the container image against defined quality gates, such as vulnerability scan thresholds and build provenance requirements. Once the image passes these checks, the pipeline creates an attestation containing the unique image digest and cryptographically signs it using a private key.
The build pipeline stores the generated attestations inside Artifact Analysis as metadata occurrences linked directly to the image digest. When a deployment is initiated on GKE or Cloud Run, Binary Authorization intercepts the request and queries Artifact Analysis to verify that all required cryptographic signatures exist. If the image meets the required policy thresholds and contains valid signatures from designated attestors, the engine permits deployment. In addition to deploy-time checks, administrators can configure continuous validation to monitor running containers throughout their Pod lifecycle and detect policy violations that occur post-deployment.
A Binary Authorization policy defines the rules governing container deployment, including default evaluation rules, cluster-specific overrides, and platform-specific policies. Within these rules, administrators specify whether to allow all images, deny all images, or require explicit verification from trusted attestor resources. The evaluation engine validates image provenance using three core infrastructure components:
In enterprise architectures, organizations separate duties by placing attestor infrastructure, cryptographic keys, and runtime workloads into separate Google Cloud projects. To enable verification across projects, administrators grant the Attestors Verifier role (roles/binaryauthorization.attestorsVerifier) to the deployer project's service agent on the central attestor resource. For Cloud Run workloads, enforcement is applied directly through service annotations or enforced across projects using the run.allowedBinaryAuthorizationPolicies constraint. Organizations maintain baseline security by enforcing custom organization policy constraints with Common Expression Language (CEL) rules, ensuring all projects require valid attestations and approved signature algorithms.
Prepare and test your skills
Prepare and test your skills
Binary Authorization is an admission control deployment gate that evaluates container images against predefined security policies before allowing them to run. It secures Google Kubernetes Engine (GKE) and Cloud Run workloads by acting as a deployment gate that blocks non-compliant images.
In blocking mode, Binary Authorization actively stops non-compliant images from deploying. In dry-run mode, the system allows deployment to proceed while recording policy violations in Cloud Audit Logs, enabling security teams to evaluate impact without disrupting operations.
The break-glass procedure allows administrators to bypass all policy enforcement for a specific cluster or deployment during production emergencies. The system logs every emergency override event to Cloud Audit Logs, capturing the identity of the user who initiated the bypass and the specific resource involved to ensure operational accountability.
The three core components are Attestor Authority (the control resource referenced by admission rules to define required cryptographic signatures), Artifact Analysis Note (the centralized metadata storage location where attestations are published), and Asymmetric Public Keys (public keys stored as PKIX or in Cloud KMS used to verify attestation signature integrity).
An enterprise is securing its software supply chain across Google Kubernetes Engine (GKE) clusters and Cloud Run services using Binary Authorization.
The security architecture requires:
prod-attestor that verifies cryptographic signatures generated by the CI/CD pipeline using a Cloud KMS asymmetric key pair.prod-attestor before container deployment across all production GKE clusters and Cloud Run services.us-central1-a.staging-cluster) configured to log policy violations without blocking non-compliant container deployments.Which configuration should the security engineer implement to satisfy these requirements?