Production-grade platform engineering handbook — Kubernetes, Terraform, Flux CD, GitHub Actions, AWS, and more.
67
84%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Status: Stable
An OPA/Rego admission policy with a critical default-allow flaw. Platform-skills catches it and generates a production-safe replacement.
| Finding | Severity | Risk |
|---|---|---|
default allow = true — allow-by-default | Critical | Any pod not explicitly denied passes — policy is opt-out, not opt-in |
Uses allow = false reassignment | High | Rego v0 style; undefined behaviour when multiple rules conflict |
| Only checks privileged containers | High | Root containers, missing limits, hostNetwork all bypass the policy |
No deny set — single boolean | Medium | Cannot return meaningful error messages to the user |
No import rego.v1 | Medium | Deprecated syntax; will break in OPA ≥1.0 |
default allow := false — deny-by-default; nothing passes unless explicitly permitteddeny contains msg set — each violation returns a human-readable messageimport rego.v1 — explicit Rego v1 syntax, forward-compatibleany_violation helper — single allow rule, no conflicting reassignmentsrunAsNonRoot: false and no memory limit deploys to production unblockedhostNetwork: true workload gets access to node network — lateral movement risk# Install conftest
brew install conftest
# Test the fixed policy against a violating pod spec
conftest test --policy fixed.rego --namespace kubernetes.admission ./test-pod.yaml
# Lint with Regal
brew install styrainc/packages/regal
regal lint fixed.regoUse $platform-skills to review this OPA/Rego admission policy for correctness.
Check: default deny, rule conflicts, coverage gaps, Rego v1 syntax, and unit test coverage..claude-plugin
.github
commands
docs
examples
agent-self-improve
argocd
awesome-docs
aws
cloudfront
functions
lambda-edge
functions
azure
compliance
conventional-commits
datadog
llm-observability
demo
documentation
dora
dynatrace
fluxcd
github-actions
composite-actions
configure-cloud
db-migrate
docker-build-push
k8s-deploy
notify-slack
pr-comment
release-tag
security-scan
setup-env
setup-terraform
terraform-plan
helm
web-service
templates
kubernetes
kyverno
mcp
observability
openshift
pr-review
ownership
runtime-security
supply-chain
terraform
references
scripts
skills
platform-skills
tests