← All field notes

Your Kubernetes Cluster Is Running. But Is It Secure?

Six practical checks to uncover security gaps in a running Kubernetes cluster, from image scanning and RBAC to Secrets, policy enforcement and runtime detection.

Healthy Kubernetes workloads contrasted with hidden risks in RBAC, network policies and privileged pods.

Your deployments go green. Your pods are Running. Your dashboards look healthy. None of that tells you whether the cluster is secure.

Most Kubernetes security gaps don't come from clever attackers. They come from inconsistent configuration, manual processes and missing guardrails that nobody noticed because everything kept working.

Here are six questions every team should be able to answer about its clusters, with a quick way to check each one.

1. Are container images scanned before deployment?

Every image you run carries an operating system and libraries, and each can ship known vulnerabilities. If scanning happens after deployment, or not at all, you find out from an incident.

Scan an image in seconds with Trivy:

bash
trivy image <registry>/<image>:<tag>

2. Do RBAC permissions follow least privilege?

Over time, clusters collect cluster-admin bindings, wildcard roles and service accounts that can do far more than they need.

List who has cluster-admin:

bash
kubectl get clusterrolebindings -o wide | grep cluster-admin

Check what a service account can actually do:

bash
kubectl auth can-i --list --as=system:serviceaccount:<namespace>:<service-account>

Every cluster-admin binding should have a named owner and a reason.

3. Are Secrets encrypted and managed securely?

Kubernetes Secrets are only base64-encoded by default. Anyone with read access to Secrets, or to etcd backups, can read them.

1 of 2 sections shown

Discussion

Have a question or something to add? Share it below.

Comments appear immediately. Please keep the discussion respectful.

No comments yet. Be the first to join the discussion.

Keep exploring

More from the field.

All articles ↗

Platform Mandate

Request Architecture Review

Review platform posture, reliability constraints, and cost governance priorities with an infrastructure engineering team.

Request Architecture Review