Kubernetes Manifest Auditor
A manifest is the cluster's promise on paper. Audit the paper before it becomes a pod.
A Kubernetes manifest audit is a static review of YAML manifests — pod security settings, host access, images, resources, secrets and RBAC — checked field by field against known-good practice, without touching a cluster. Paste a multi-document YAML here and this auditor reads it in your browser — never uploaded — and flags privileged containers, host namespaces, hostPath mounts, wildcard RBAC, cluster-admin bindings, :latest images and plaintext secret values, with a 0–100 score. The companion article Kubernetes manifest audit guide explains each check. Also see the GitHub Actions Workflow Auditor and the Dockerfile Auditor.
Last updated:
1. Audit manifests
Results
🔒 The audit runs entirely in your browser: your manifests are never uploaded, never stored, and never sent anywhere. A manifest can name internal images, namespaces and secrets — that is exactly why it stays on your machine.
What a manifest set is
A manifest set is one or more YAML documents separated by ---: each document declares one object — a Deployment says how many copies of a pod template should run, a Service exposes it, an Ingress routes traffic to it, Role and RoleBinding objects decide who and what may do which API actions, and ConfigMap / Secret objects carry its configuration. kubectl apply sends the whole set to the API server, which is why auditing the set — not one file at a time — matters: RBAC risk only appears when roles and bindings are read together.
The security heart of a workload manifest is the pod template's securityContext, at pod level and per container. Five fields decide most of the risk: privileged, allowPrivilegeEscalation, runAsNonRoot, the capabilities add/drop lists, and whether the pod reaches outside its sandbox with hostNetwork, hostPID, hostIPC or a hostPath volume. The Kubernetes Pod Security Standards call the loose end of these settings the baseline profile and the locked-down end restricted — this auditor's error and warning rules track that same line.
Images and secrets are the other two quiet risks. An image with no tag, or the :latest tag, is a moving target: the pod you reviewed is not necessarily the pod that runs next week. And a secret written as a literal value — in a Secret object's data or as a plain env value — is a secret published to everyone who can read the repository; base64 encoding is not encryption.
Finally, the basics that decide whether the app survives the cluster: resource requests and limits so the scheduler can place pods honestly, livenessProbe and readinessProbe so Kubernetes can heal and gate traffic, more than one replica for anything users depend on, an explicit namespace, and a NetworkPolicy so pod-to-pod traffic is a decision rather than a default.
What this auditor does — and what it does not
It parses the pasted YAML in your browser (full YAML via the same parser family the GitHub Actions auditor uses — nested maps and lists, block scalars, multi-document files) and runs 33 rules over every document: container and pod securityContext, host access, images, resources, probes, secret hygiene, RBAC wildcards and bindings, and workload basics. Scoring starts at 100; each error deducts 10 (capped at 50), each warning 4 (capped at 28), each info 1 (capped at 10). Bands: 90+ Excellent, 70–89 Good, 50–69 Needs work, below 50 Poor.
It does not talk to a cluster, run kubectl, or apply anything: it reads exactly the text you give it. A finding is a pattern, not a verdict — a privileged container in a node-monitoring DaemonSet, or a cluster-admin binding owned by your platform team, may be deliberate. Read each finding with its resource and field path and decide with your context.
The risky demo is a small app built to trip the rules on purpose — a privileged container with host namespaces, a hostPath mount of /, a :latest image, a plaintext password env value, a wildcard ClusterRole and a cluster-admin binding — and scores 20 (Poor). The hardened demo is the same app with every finding fixed, plus a NetworkPolicy, and scores 100.
Be honest about what a static audit cannot see
This audit reads text. It cannot see admission decisions (a Pod Security admission controller or a policy engine may reject or mutate what you apply), runtime behaviour (what the container actually does once running), the API server's own configuration, or the state of a live cluster — a clean paste does not prove the running pods match it, and policies that exist in the cluster but are not in your paste are invisible here, which is why the NetworkPolicy finding is phrased as paste-scope only.
And a high score is not a safe cluster. The rules encode widely agreed practice — the Kubernetes Pod Security Standards, the securityContext documentation and the NSA/CISA hardening guidance — but they are a checklist, not a penetration test. “No findings” means no risky pattern was found in this text — not that the workload behind it is secure.
Key facts
| Pod Security Standards | Kubernetes defines two profiles: baseline (blocks the known privilege-escalation paths) and restricted (the locked-down end — non-root, dropped capabilities, seccomp, read-only root filesystems). This auditor's rules follow the same line. |
| privileged | A privileged container gets nearly all host capabilities and device access. It is the single largest step out of the container sandbox. |
| hostPath | A volume that mounts a directory from the node itself. Mounting / or the container-runtime socket is effectively node root for anything that escapes. |
| cluster-admin | The built-in ClusterRole that grants every action on every resource in the cluster. A binding to it should be rare, owned and reviewed. |
| seccomp | A kernel filter on system calls. The RuntimeDefault profile blocks the dangerous minority of calls while letting normal apps run. |
| base64 is not encryption | Secret data in a manifest is base64-encoded, not encrypted — anyone who can read the file or the etcd backup has the plaintext. |
| Format reference | Pod Security Standards — Kubernetes documentation |
Frequently asked questions
Why does the audit run in my browser instead of on a server?
Because a manifest can name things you do not publish: internal image registries, namespaces, service accounts and — in the worst pastes — literal secret values. Sending that to a server to audit it would create the exact exposure the audit is meant to catch. Parsing it locally means the YAML never leaves your machine.
My manifests have findings — is my cluster unsafe?
Not necessarily. A finding is a pattern that matched, and some matches are intended: node agents legitimately use host access, and platform components may hold broad RBAC. Start with the errors — privileged containers, host mounts, wildcard RBAC, cluster-admin bindings — then the warnings, and treat the infos as a checklist of defaults worth setting explicitly.
What can this audit not check?
Anything outside the pasted text: admission controllers and policy engines, runtime behaviour, the API server's own flags, and whether the live cluster still matches these manifests. Run it as the fast first pass before kubectl apply — not as a replacement for cluster-side policy.