Security model¶
What kubedelos can touch, what it keeps, and what it sends anywhere, in both of the ways it runs. The in-cluster mode's sign-in and NetworkPolicy details are in Running kubedelos in a cluster.
The cluster: read-only¶
kubedelos only reads (get and list) namespaces, nodes, pods, Deployments, StatefulSets and CronJobs, plus, for the
attack-surface facts, Services, Ingresses, HTTPRoutes, NetworkPolicies, ServiceAccounts, Roles and
bindings. No code path creates, changes or deletes a cluster object.
It reads no Secrets, with one opt-in exception: in kubedelos serve, with podPullSecrets on, it gets the pull
secrets a pod names, only in the namespaces you list for that, and never lists Secrets. On your machine, scans use your
own kube-context and its login, as kubectl does. Cluster permissions lists the RBAC.
Credentials¶
Registry tokens are never written to the database and never logged, not even in error messages.
- On your machine, scans use your Docker logins (
DOCKER_CONFIGor~/.docker/config.json, credential helpers included). kubedelos doesn't copy them. - In a cluster, a scan that needs a pull secret or a cloud token writes a Docker config for that scan only, on a
memory-backed volume (
KUBEDELOS_SECRETS_DIR), and deletes it when the scan ends.
What leaves your machine or cluster¶
- Trivy's download from GitHub, checked against a SHA-256 built into kubedelos (see Verifying a release).
- Trivy's vulnerability and Java DBs from the registries Trivy fetches them from.
- Your image registries, for the image layers Trivy scans.
- The CISA KEV and EPSS feeds for the risk score: plain GETs that carry nothing about your cluster. They are off by default in the Helm chart.
- Owner report emails, when you turn them on in
kubedelos serve: image names, package versions and CVE ids of a recipient's own namespaces, sent through the SMTP server you name. They are off by default, and allowed domains keep them inside your organisation. The SMTP password comes only from a Secret and is never written to the database or the logs (details).
Nothing else: no telemetry, and no LLM calls. kubedelos mcp answers your own agent over stdio and makes no network
calls.
What is stored¶
The SQLite database holds the inventory (image refs, workloads, namespaces, owner and team from namespace metadata),
the findings, the attack-surface facts and the risk acceptances. On your machine it lives in your user data directory,
created 0700, with the database files 0600 (where). In a cluster it
lives on the chart's volume. kubedelos mcp opens it read-only. With owner reports on, the database also holds each
report round and each send: the recipient address, kind, status, skip reason and the error's class name, never the
server's message or the password.
The local web UI¶
kubedelos ui listens on loopback only (127.0.0.1, ::1 or localhost). Any web page you visit can still send
requests to a loopback port, so every request passes these checks:
- Host check: a request whose
Hostisn't the loopback address and port is refused, which stops DNS rebinding. - Startup token: the URL kubedelos prints carries a random token. Visiting it swaps the token for an
HttpOnly,SameSite=Strictsession cookie; a request without a valid session is refused. The token is valid until the process stops, and the access log never records query strings, where it travels. - CSRF: every request that changes something (a scan, a retry, a risk acceptance) must carry an
Originnaming the UI and an HMAC token bound to the session. - CSP: a strict Content Security Policy with a per-response nonce,
frame-ancestors 'none'and no third-party scripts.
These checks guard against other web pages. Anyone who can run commands as your user can read the database and the printed token anyway.
In a cluster¶
The chart runs one pod as user 65532 on a read-only root filesystem, with all capabilities dropped and the
RuntimeDefault seccomp profile, and a NetworkPolicy that admits nothing until you list who may reach it.
Without a sign-in proxy, anyone who can reach the UI can read everything and start scans or accept risks. Use
readOnly: true, a sign-in proxy with auth.trustProxyHeaders, or a cluster-internal Service. The chart refuses to
render header trust without a NetworkPolicy that can enforce it. Security model in the
in-cluster guide covers the trust boundary, the guard and what it does not cover.
Reporting a vulnerability¶
See the security policy.