Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Implementing OPA Gatekeeper for Policy Enforcement
Overview
OPA Gatekeeper is a Kubernetes admission controller that enforces policies written in Rego. It uses ConstraintTemplates (policy blueprints with Rego logic) and Constraints (instantiated policies with parameters) to validate, mutate, or deny Kubernetes resource requests at admission time.
When to Use
When deploying or configuring implementing opa gatekeeper for policy enforcement capabilities in your environment
When establishing security controls aligned to compliance requirements
When building or improving security architecture for this domain
When conducting security assessments that require this implementation
Common Misconfigurations & Verification
Constraint in dryrun/warn, not deny: a ConstraintTemplate plus Constraint left at enforcementAction: dryrun audits but never blocks. Verify: kubectl get constraints -o json | jq '.items[] | {name:.metadata.name, action:.spec.enforcementAction}'.
Template without a Constraint: applying the ConstraintTemplate alone does nothing - you must also create the Constraint CR that instantiates it. Confirm both exist (kubectl get constrainttemplates and kubectl get <kind>).
Webhook failurePolicy: Ignore: when Gatekeeper pods are down, requests are admitted unchecked (fail-open). For security-critical constraints prefer Fail, but scope namespaceSelector to avoid locking out the control plane.
Over-broad exemptions:excludedNamespaces covering more than kube-system/gatekeeper-system quietly creates enforcement holes - review the Config CR.
Audit lag / wrong Rego path:.status.violations populates on the audit interval, so pre-existing violators aren't instant; and a Rego rule reading input.review.object.spec.containers misses initContainers/ephemeralContainers.
Verify enforcement:kubectl get <constraintKind> <name> -o jsonpath='{.status.violations}' for existing breaches, then kubectl apply a violating pod (e.g. privileged: true) and confirm it is with the constraint's message.