Privacy and Security

Kubernetes Manifests: Seeing the Connections and Fixing Security Gaps

Map how Ingress, Services, workloads, ConfigMaps and Secrets connect, find broken references, and harden pods against the Pod Security Standards.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
Kubernetes Manifests: Seeing the Connections and Fixing Security Gaps

Kubernetes objects find each other by names and labels, not by direct links. That makes manifests flexible and also fragile: a typo in a Service selector or an Ingress backend leaves traffic going nowhere, and the YAML still applies without complaint. Security settings are just as easy to miss because they are spread across pod and container fields. The Kubernetes Manifest Visualizer and Security Checker shows both problems at once.

How the pieces connect

A typical web application chains several objects:

  • An Ingress routes a host and path to a Service by name.
  • A Service selects pods whose labels match its selector.
  • A Deployment or other workload creates those pods from a template.
  • Pods read ConfigMaps and Secrets through env, envFrom and volumes, and mount PersistentVolumeClaims.
  • A HorizontalPodAutoscaler targets the workload by kind and name.

The graph draws these links from left to right. If something is referenced but not in the YAML you pasted, it appears as a red dashed box. That may be fine, for example a Secret created separately, or it may be a typo that would break the release.

The Pod Security Standards

Kubernetes defines three security profiles for pods. Privileged allows everything. Baseline blocks known privilege escalations. Restricted follows current hardening practice. The checker combines baseline and restricted rules and adds common operational checks.

High-risk findings are the baseline violations: privileged containers, sharing the host's network, process or IPC namespaces, hostPath volumes, running as user 0, adding powerful capabilities such as SYS_ADMIN, secrets written as plain env values and bindings to cluster-admin.

Medium findings include not setting allowPrivilegeEscalation to false, not requiring runAsNonRoot, latest or untagged images, missing CPU or memory requests, missing memory limits, hostPort, Ingresses without TLS and Services that select nothing.

Low findings cover a writable root filesystem, not dropping all capabilities, no seccomp profile, missing probes, automatically mounted service account tokens, objects in the default namespace and the absence of any NetworkPolicy.

A hardened container in brief

Most findings disappear with a small block of settings: run as non-root, disallow privilege escalation, use a read-only root filesystem with an emptyDir for scratch space, drop all capabilities, use the RuntimeDefault seccomp profile, set requests and a memory limit, and add readiness and liveness probes. Turn off service account token mounting unless the pod talks to the Kubernetes API.

Reading the score

Findings are weighted 8, 3 and 1 and the penalty is scaled to the number of objects, so a large file with one weak pod is not judged as harshly as a small file that is all weak pods. When a file spans several namespaces, filter to one to focus the graph and the report. The objects tab lists each object with its line number and risk points so you can jump to the worst ones.

A worked example

Consider a namespace with an Ingress, a Service, two Deployments, a ConfigMap and an autoscaler. The web Deployment follows the hardened pattern, but a log agent added later runs privileged, shares the host network, mounts /var/log from the node and carries an API token as a plain env value. Almost every high finding comes from that one workload. The graph also shows two red dashed boxes: the Ingress routes /api to a Service that is not defined, and the web pods read a Secret that is not in the file. Fixing the agent and checking those two names raises the score sharply.

Secrets deserve a word

Kubernetes Secrets are base64-encoded, not encrypted. A manifest with real secret data committed to git exposes it to everyone with repository access. Tools such as sealed secrets, external secrets operators or a cloud secret manager keep real values out of the repository.

Limits

The checker sees only the YAML you paste. Admission controllers, Pod Security Admission labels on namespaces, mutating webhooks, RBAC and cluster defaults can change what really runs. Render Helm charts and Kustomize overlays before pasting. Nothing is sent anywhere, including Secret values.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages