Threat model¶
rendimiento wants to be the control plane agents deliver software through, and that is worth something only if it can be trusted. This page says who it defends against, what each piece protects and what it does not, what is not covered today, and what whoever installs it has to do. It reads with the security model, which says how each piece works. Each claim was checked in the code; what is not built yet is named with the encargo that builds it.
Who attacks, and what they want¶
| Who | What they want, or do by mistake | The first defenses |
|---|---|---|
| An agent that gets it wrong | well meant: deletes what it should not, pushes to the default branch, runs a branch over and over, spends money | its key's permissions, its own branch, the brake at twice its estimate, the bitácora |
| An agent with planted instructions | a repository, a log, an issue or a page tells it to send secrets out, reach other apps or the cluster | the sandbox, honeytokens, Ruta entries are notes, not orders, actions with effect need a person's yes |
| A person with a stolen key | an agent key, a session or a GitHub account used by someone else | keys stored hashed, expiring and revocable; sessions hashed, 7 days; roles and organizations; the bitácora |
| A dependency with bad code | a package or base image that runs code in CI, or in production with the app's secrets | CI isolation: no credentials, no cluster, no home network |
| Someone from outside | the web interface, the webhooks, the apps' addresses | the web surface: GitHub sign-in, signed webhooks, cross-site requests refused |
What each piece protects, and what it does not¶
Agent keys and permissions¶
Protects. A key is random, shown once, stored only as a SHA-256 hash, always expires and can be revoked. Its role says whether it writes; it can be limited to some apps, and another organization's apps do not exist for it. Each key has its own permissions: seeing the platform, the infrastructure and the copies, and actions with effect (running a branch, retrying a run, restarting a service), which a person allows one use at a time. Every call, allowed or refused, goes to the bitácora. The Ruta refuses text that looks like a secret. No key runs CI on the default branch, and none deploys or rolls back without a person's approval.
Does not. Whoever holds a key is that key until it expires or is revoked: nothing tells a stolen key from its agent. A collaborator's key writes the Ruta and asks for permissions; a person still has to say yes.
The sandbox¶
Protects. The coding agent's commands run in a pod with no identity (no service account token, no secrets after the clone), not root, no capabilities, seccomp, a deadline, and a network policy that reaches only DNS and the public internet: not the cluster, the nodes, your network or cloud metadata (how). CI steps are kept apart the same way, with a clone token for their own run and BuildKit.
Does not. It shares the node's kernel unless a RuntimeClass (gVisor, Kata) is installed and set (CODER_SANDBOX_RUNTIME_CLASS). It reaches the public internet, so what it holds (the repository, its changes) could leave. BuildKit runs privileged.
Honeytokens¶
Protects. Every call to a model is checked first: a conversation that holds one of the strings that only lie where no agent should look is cut before the model reads it, its encargo stops, and a person is told. A decoy agent key presented to /mcp is refused and reported, which reaches agents outside the platform too (how).
Does not. An agent that goes straight to a path it already knows, or runs a script without looking around, never sees one; nor one it encodes before reading it back. The platform's are seeded in one place today.
The coding agent's branch¶
Protects. The coding agent works on the encargo's own branch (or the failed run's branch), never on the default one; its work is merged by a person, or by the app itself once its run passed when its Settings say so.
Does not. That is the agent's code, not a wall: it writes through the forja's app (the GitHub App, say), whose token could push to the default branch. What stops that is the forja's branch protection, which is the installer's (below).
Git access for agents (encargo 115)¶
Not built. An agent outside the platform pushes with whatever git credentials its machine has, an SSH key or a personal token, to any branch those reach. Encargo 115 gives agents git through rendimiento, with their agent key, never the default branch.
Written policies (encargo 116)¶
Not built. What goes out by itself is an app's setting today (it merges by itself or not) plus a person's yes for actions with effect. Encargo 116 writes per app what goes out alone and what needs one or two people.
Signed provenance and admission (encargo 117)¶
Not built. The cluster runs any image its registry holds; the registry takes images without credentials or signatures, on the home network. Encargo 117 signs what the platform builds and has the cluster run only that.
The chained bitácora (encargo 119)¶
Built in part. Every change by people and every tool call by agents is a row, and each row carries the hash of the one before it, per organization: a row changed or removed breaks the chain, and GET /api/bitacora/verificar says where (how).
Does not. Whoever can write the database can rewrite the whole chain consistently: nothing outside it anchors it yet. Encargo 119 signs it every day and keeps the signature outside the database. Some automatic actions of the platform itself (a rollback after a failed verification, Renovate) are not in it yet.
Nothing external (encargos 110 and 111)¶
Not built. The platform talks to the forja, the AI provider an organization chose, email and DNS providers. Encargo 110 shows on the Environment page what is external, and 111 adds a mode that starts without any of it and refuses to use it. Which AI sees each app's code is encargo 120.
Secrets¶
Protects. Never in git in plain text, never in the platform's database in plain text, generated where possible, short-lived tokens, not logged (how).
Does not. On a cluster they are Kubernetes Secrets, which the cluster's datastore keeps in plain text unless its encryption at rest is turned on (encargo 121 brings OpenBao or encrypted secrets).
Not covered today, said plainly¶
- Whoever has the kubeconfig, or root on a node, has everything: the cluster, its secrets, the database. rendimiento does not defend against them.
- The sandbox and CI steps share the node's kernel by default: a kernel exploit reaches the node.
- BuildKit is privileged, and an escape from it reaches its node.
- One service account manages every organization's namespaces: the boundary between organizations is the platform's code, not Kubernetes (organizations in the cluster).
- The registry takes images without credentials or signatures (encargo 117).
- Agents outside the platform push with their machine's git credentials (encargo 115).
- Secrets at rest depend on the cluster's datastore encryption (encargo 121).
- What an agent reads goes to its model: the AI provider an organization chose sees the code and logs its agents read (encargo 120).
- Backups stay in the cluster (encargo 123).
- The bitácora is not anchored outside the database (encargo 119).
The list of known gaps has the rest, in order.
What whoever installs it has to do¶
- Protect the default branch in the forja. Require pull requests and passing checks for the default branch of every app's repository, and do not let the platform's app bypass the rule. rendimiento merges through pull requests, so it keeps working; the rule is what stops a token that pushes straight to it.
- Encrypt secrets at rest. Turn on the cluster's encryption of Secrets (on k3s,
--secrets-encryption), and keep the platform's own sealed withSECRETS_KEY_FILEwhere it applies. - Take git credentials away from agents' machines. An agent outside the platform pushes with whatever it finds: an SSH key, a personal token. Give it an agent key only, limited to its apps, and once encargo 115 is in, git through rendimiento.
- Keep the kubeconfig and the nodes to people. Never mount the kubeconfig in a pod, a CI step or an agent's machine.
- Give the sandbox a kernel of its own where you can: gVisor or Kata on the worker nodes, and
CODER_SANDBOX_RUNTIME_CLASS. - Keep builds off nodes that cannot enforce network policies (
BUILD_EXCLUDE_NODES, or the Environment page). - Copy backups off the cluster.
- Leave the honeytokens on (
TRAMPAS), and test the cut on the Environment page after an update.