Binary Authorization for GKE on-prem is a Google Cloud product that extends Binary Authorization's hosted, deploy-time enforcement to GKE on-prem.
Binary Authorization for GKE on-prem connects on-premises user clusters to the Binary Authorization enforcer, running on Google Cloud. Binary Authorization for GKE on-prem works by relaying requests to run container images from GKE on-prem clusters to the Binary Authorization enforcement API.
On premises, Binary Authorization for GKE on-prem installs the Binary Authorization Module, which runs as a Kubernetes validating admission webhook in your user cluster.
When the Kubernetes API server for the user cluster processes a request to run a Pod, it sends an admission request, through the user control plane, to the Binary Authorization Module.
The module then forwards the admission request to the hosted Binary Authorization API.
On Google Cloud, the API receives the request and forwards it to the Binary Authorization enforcer. The enforcer then checks that the request satisfies the Binary Authorization policy. If it does, the Binary Authorization API returns an "allow" response. Otherwise the API returns a "reject" response.
On premises, the Binary Authorization Module receives the response. If the Binary Authorization Module and all of the other admission webhooks allow the deploy request, the container image is allowed to deploy.
For more information about validating admission webhooks, see Using Admission Controllers.
Webhook failure policy
When a failure prevents communication with Binary Authorization, a webhook-specific failure policy determines if the container is allowed to deploy. Configuring the failure policy to allow the container image to deploy is known as fail open. Configuring the failure policy to deny the container image from deploying is known as fail close.
To learn how to modify the failure policy, see Failure policy.
- To learn how to set up Binary Authorization for GKE on-prem, see Setting up Binary Authorization for GKE on-prem.
- To learn more about GKE on-prem, see GKE on-prem overview.
- To learn more about Binary Authorization, see Overview of Binary Authorization.