Menu

12 CIS Kubernetes & Dockerfile Security Checks Every Dev Should Run Before Prod (100% Local Tool)
📰

12 CIS Kubernetes & Dockerfile Security Checks Every Dev Should Run Before Prod (100% Local Tool)

DEV Community: devsecops·Woojin LIM, Ryan·3 days ago
#nIluGM4o
#devtodevsecops#devto#dev#production#root
Long article (272 words) — no AI summary yet.
Reading 0:00
15s threshold

Most container breaches don't come from exotic zero-days — they come from shipping default Dockerfile and Kubernetes Deployment manifests straight to production.

Here are the top 8 misconfigurations that show up in almost every early-stage production cluster:

Running as root ( USER root / missing runAsNonRoot: true ) — gives any RCE full root inside the container namespace.

Mutable :latest image tags — breaks reproducible rollbacks and silently pulls breaking upstream updates.

Writable root filesystem — set readOnlyRootFilesystem: true and mount an emptyDir only at /tmp .

Unrestricted Linux capabilities — always drop ["ALL"] and add back only what is strictly required.

Hardcoded secrets in ENV or manifest value: — inject via Kubernetes Secrets, Vault, or AWS IRSA.

Missing livenessProbe / readinessProbe — causes dropped traffic during rolling deploys.

Missing resources.requests / resources.limits — invites noisy-neighbor OOM kills across the node.

Single-stage Docker builds — ships compilers, package…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.