KubeAPT lab files (ShellNetBlog Rabbit Hole post, 2026-11-24) Everything runs in Docker. Nothing is installed on the host except Docker itself. Dockerfile.tools toolbox image: docker CLI + kind v0.33.0 + kubectl v1.37.2 + kubeapt built from source kind-modern.yaml kind cluster on Kubernetes v1.37.0 (pinned node image digest) kind-legacy.yaml kind cluster on Kubernetes v1.29.14 (no ValidatingAdmissionPolicy v1 API) tk helper: ./tk '' runs them in the toolbox on the "kind" Docker network with KUBECONFIG=kubeconfig- wildcard-cr.yaml a */*/* ClusterRole used to test the cluster-scoped objectSelector opt-in priv-pod.yaml a privileged pod carrying the label the tampered bundle exempts priv-pod-tidy.yaml a privileged pod that satisfies every other rule in the bundle (replace the image digest with a current busybox:1.36 digest) failopen-webhook.yaml a failurePolicy: Ignore webhook pointing at a service that doesn't exist tamper.sh simulates a compromised publisher: exempts one label in every enforce binding verify-bundle.sh compares installed policies/bindings with a pinned known-good bundle make-cluster-guards.sh generates Deny bindings for cluster-scoped policies, exclusions by exact name protect-admission-labels.yaml only the platform group may change admission labels on namespaces ci-gate.sh kubeapt analyze as a CI gate that also fails on Inconclusive results fleet.sh one analyze -A per cluster, one summary line each kubeapt-omitempty-fix.patch fix for false "Mutated" verdicts (empty strings dropped by the API server) Quick start (from this folder): docker build -t kubeapt-lab-tools -f Dockerfile.tools . docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD":/lab kubeapt-lab-tools -c \ 'kind create cluster --config kind-modern.yaml && kind get kubeconfig --internal --name kubeapt-modern > /lab/kubeconfig-modern' mkdir -p kubeapt-config ./tk modern 'kubeapt scan; kubectl create ns team-a; kubeapt bundles download cenroq-best-practices; kubeapt analyze -n team-a' Tear down: docker run --rm -v /var/run/docker.sock:/var/run/docker.sock kubeapt-lab-tools -c \ 'kind delete cluster --name kubeapt-modern; kind delete cluster --name kubeapt-legacy' kubeconfig-* files contain cluster credentials; they are created locally and not shipped here.