liveBook · Manning

Gatekeeper

As explained in Effective Platform Engineering

Gatekeeper is an open-source Kubernetes admission controller that enforces policies through Open Policy Agent integration.

Gatekeeper is an open-source Kubernetes admission controller that integrates with Open Policy Agent (OPA) and Rego to enforce policy at deployment time. section 4.1.1

Use it to accept or deny Kubernetes deployments based on required configuration, such as labels needed by cost-optimization and tracking systems. Security teams can own reusable pipeline code and policies while teams receive immediate verification at the point of change. section 4.1.1

Gatekeeper structures policies more like Kubernetes resources than general OPA policies. That specialization is useful for Kubernetes compliance but can create friction when organizations seek one shared policy-as-code standard across disciplines. section 4.1.1

Figure 4.4 Admission controller built using Gatekeeper (https://github.com/open-policy-agent/gatekeeper), which checks for labels on the deployment
A screen shot of a computer program

AI-generated content may be incorrect.

See an admission controller built with Gatekeeper that checks whether deployments contain required labels. section 4.1.1

How Effective Platform Engineering covers it

How deep it goes
Explains admission enforcement, required labels, and policy-format tradeoffs, but stops short of detailed Rego implementation.
Examples
Uses a deployment-label check that accepts or denies resources missing required metadata.
What it assumes
Assumes Kubernetes and policy-as-code familiarity while identifying OPA and Rego as the policy foundations.
What you can do after
Operate Kubernetes admission checks that block deployments lacking required configuration.
How it connects
Connects Kubernetes admission control with Open Policy Agent and the Rego policy language.

Also explained in

Compare how 2 books explain Gatekeeper →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Platform Engineering. The section links point to the parts of the book it draws on.