McKube 0 bytes sent

Paste a manifest. See what the admission controller would say, before your cluster does.

Pod Security levels, RBAC escalation paths, removed APIs, and plaintext secrets checked in your browser. PSS v1.35-v1.37 rules verified 2026-11-29. Nothing is uploaded.

PSS v1.35-v1.37 · verified 2026-11-29YAML 1.1, JSON, Helm output, kubectl get -o yamlWorks offlineCtrl+Enter audit · j/k findings
Baseline ✗ 3Restricted ✗ 85 criticalSee report

Manifest

1 object · 31 lines
Drop .yaml files or a whole folder. Read via File.text() in this tab. 0 bytes leave your device.

Inspection report

Privileged✓ AllowedUnrestricted baseline
Baseline✗ 3 violationsBlocks admission
Restricted✗ 8 violationsAdds 5 Restricted checks

Strictest namespace label this workload survives today: pod-security.kubernetes.io/enforce: privileged · Score F (0/100)

$ kubectl apply --dry-run=server -f manifest.yaml # simulated PSA v1.37Warning: would violate PodSecurity "baseline:v1.37": host namespaces (hostPID=true), hostPath volumes (volume "docker-sock"), privileged (container "api" must not set securityContext.privileged=true)
Fails Baseline (Pod Security) (3)
◆ CRITICAL

Host namespace sharing (hostPID)

Sharing host PID/IPC/Network namespaces breaks container isolation and exposes host processes or node interfaces.

Remove hostPID from Pod spec.
KUBE-SEC-002 · Deployment/payments-api · PSS Baseline: Host Namespaces
◆ CRITICAL

Sensitive hostPath mounted (/var/run/docker.sock)

Mounting /var/run/docker.sock from the host grants container escape or root access on the node.

Replace hostPath with a PVC, emptyDir, ConfigMap, or projected volume.
KUBE-SEC-003 · Deployment/payments-api · PSS Baseline: HostPath Volumes
◆ CRITICAL

Privileged container "api"

Full access to the host kernel and devices. Breaks Baseline and Restricted.

Remove `privileged: true` and set `allowPrivilegeEscalation: false`.
KUBE-SEC-001 · Deployment/payments-api · PSS Baseline: Privileged Containers
Fails Restricted (Pod Security) (5)
◆ CRITICAL

Container "api" sets runAsUser: 0 (root)

Explicitly running as UID 0 violates PSS Restricted.

Set `runAsUser: 10001` (or another non-zero UID).
KUBE-SEC-004 · Deployment/payments-api · PSS Restricted: Running as Non-root User
▲ HIGH

Container "api" does not drop ALL capabilities

PSS Restricted requires `capabilities.drop: ["ALL"]` on every Linux container.

Set `capabilities: { drop: ["ALL"] }`.
KUBE-SEC-007 · Deployment/payments-api · PSS Restricted: Capabilities
▲ HIGH

Container "api" missing seccompProfile: RuntimeDefault

PSS Restricted requires RuntimeDefault or Localhost seccompProfile on Pod or Container.

Set `seccompProfile: { type: RuntimeDefault }` on Pod securityContext.
KUBE-SEC-008 · Deployment/payments-api · PSS Restricted: Seccomp
▲ HIGH

Container "api" allows privilege escalation

Without `allowPrivilegeEscalation: false`, setuid binaries inside the container can gain extra privileges.

Set `securityContext.allowPrivilegeEscalation: false`.
KUBE-SEC-006 · Deployment/payments-api · PSS Restricted: Privilege Escalation
▲ HIGH

Container "api" does not enforce runAsNonRoot: true

PSS Restricted requires `runAsNonRoot: true` at Pod or Container level.

Set `securityContext.runAsNonRoot: true`.
KUBE-SEC-004 · Deployment/payments-api · PSS Restricted: Running as Non-root
Plaintext Secrets (1)
◆ CRITICAL

Plaintext secret in env "STRIPE_API_KEY" (Stripe Key)

Hardcoded credentials in Pod manifests leak into Git, etcd, and `kubectl describe`.

Move to a Kubernetes Secret and reference via `valueFrom: { secretKeyRef: { name: ..., key: ... } }`.
KUBE-SEC-009 · Deployment/payments-api (api) (STRIPE_API_KEY) · Secrets Hygiene
Reliability & Hardening Advice (not admission) (6)
▲ HIGH

Missing CPU/memory requests or memory limit on "api"

Without requests and a memory limit, kube-scheduler cannot bin-pack accurately and BestEffort pods are evicted first under memory pressure.

Set resources.requests.cpu, resources.requests.memory, and resources.limits.memory.
KUBE-REL-001 · Deployment/payments-api (api) · QoS & Scheduling
▲ HIGH

Mutable image tag ":latest" on "api"

Image "registry.internal/payments:latest" is mutable; rollbacks or node reschedules can pull a different digest.

Pin an immutable version tag (e.g. :1.4.2) or @sha256 digest.
KUBE-REL-003 · Deployment/payments-api (api) · Supply Chain & Reliability
● MEDIUM

Single replica Deployment (replicas: 1)

Node drains, spot interruptions, or rolling restarts will cause brief downtime with only 1 replica.

Use at least 2 replicas with a PodDisruptionBudget and topologySpreadConstraints for production services.
KUBE-REL-004 · Deployment/payments-api · Availability
● MEDIUM

automountServiceAccountToken is not disabled

Kubernetes mounts a ServiceAccount JWT into /var/run/secrets/kubernetes.io/serviceaccount by default even if the app never calls the K8s API.

Set `automountServiceAccountToken: false` in Pod spec unless this workload talks to the K8s API.
KUBE-SEC-010 · Deployment/payments-api · Defense in Depth
● MEDIUM

Missing readinessProbe and livenessProbe on "api"

Without readinessProbe, traffic routes to pods before startup finishes; without livenessProbe, deadlocked processes stay alive.

Add readinessProbe (and livenessProbe / startupProbe) pointing to your real health endpoint.
KUBE-REL-002 · Deployment/payments-api (api) · Reliability
● MEDIUM

Writable root filesystem on "api"

Leaving the root filesystem writable lets an attacker drop binaries or tamper with scripts at runtime.

Set `readOnlyRootFilesystem: true` and mount an emptyDir volume at `/tmp`.
KUBE-SEC-005 · Deployment/payments-api (api) · Hardening Advice

Provided as is, without warranty. Verify results; consult an expert for important decisions. Disclaimer

Audit findings and generated patches can be wrong or incomplete for your cluster and Kubernetes version. Review every manifest and diff, and test in a non-production environment, before you apply anything to a production cluster.

Common Kubernetes Pod Errors & Exit Codes