Skip to content

06 · Security

What onreel protects against, what it does not, and what you can configure.

6.1 · The trust boundary

onreel runs on your machine under your OS account, and the trust boundary follows that account.

onreel protects against:

  • other OS users on the same machine;
  • pages in a browser (DNS rebinding, CSRF, a foreign origin);
  • the network, including the local one: the host listens on 127.0.0.1 only;
  • leaking secrets through journals, error texts, database copies and reports.

onreel does not protect against:

  • processes of the same OS user, including a hostile agent process: they read the files of the data directory, including the owner token;
  • the root user and physical access to the machine.

An agent is a semi-trusted participant. The rights of its token are limited by the state of the attempt, but the process runs as your user: the token protects against agent mistakes and prompt injection through the CLI and environment it was given, not against hostile code.

6.2 · Tokens and roles

  • Owner. Their token is in host.json of the data directory. The directory is created with 0700 permissions and the secret files in it with 0600. Do not publish or commit that file.
  • Coordinator. Works with the token of its Run: other Runs and the owner's commands are closed to it. The coordinator's rights over onreel verbs (tasks, PRs, git) are configured separately: onreel settings coordinator.
  • Attempt agent. The rights of its token are limited by the state of the attempt; it works in the project of its own Run.
  • Phone and the access server. They receive only the verbs allowed to the device; host settings, starting Runs and managing devices stay with the owner on the PC.

6.3 · Agent rights

An agent is launched with a set of permissions granted "without asking": reading and editing files, files outside the worktree, shell commands, the web, the network of commands and onreel MCP calls. The ask, auto and full presets define that set as a whole.

The default preset is full: the agent runs commands with your rights, including outside the worktree. If that is too much, choose ask or auto for the host or a project.

terminal
onreel settings rights
onreel settings permissions --mode ask
onreel project update --project <projectId> --permission-mode auto

Not every CLI can restrict every right, so the per-agent outcome is in the "What the agents will understand" block of onreel settings rights. On the shell.run right, some agents have nothing to stop: shell commands run with your rights. The narrowest layer wins: a workflow step, then the project, then the host.

6.4 · The sandbox

An attempt can be launched in the confined sandbox: onreel orch dispatch start --sandbox confined. On Linux this is bubblewrap: the host data directory is hidden from the agent, and only its worktree is attached writable. A stopped process in the sandbox is killed at once, with no time for a graceful exit.

  • The sandbox is off by default: without the flag an attempt runs in the trusted mode.
  • If the sandbox cannot be built (not Linux, no bubblewrap or user namespaces), the launch is refused with sandbox_unavailable instead of running unprotected.
  • The sandbox does not close the network, and your account's other files are not protected by this mode. It hides the data directory; it does not turn the agent into an isolated one.

Separately, the desktop app window uses the Chromium sandbox. The Linux package configures it on installation (onreel --setup-sandbox), and if it does not work, the launcher explains why and names the command.

6.5 · Trust in manifests and workflows

  • An agent manifest from a project repository is not trusted: a launch from it is refused with agent_untrusted until you copy the file to ~/.onreel/agents.
  • A project workflow file is trusted only after approval: onreel workflow approve records the hash of the text you read. A changed file is untrusted again, and a Run from it is refused with workflow_untrusted.

6.6 · Secrets

  • Tracker and git hosting connection tokens live in tracker-secrets.json and forge-secrets.json with 0600 permissions; instead of a token you can give a $NAME reference to a host environment variable. A token is shown neither in the interface nor in the CLI nor in MCP.
  • The host journal contains no secrets or request contents. A Run export (onreel orch run export) is made without secrets.
  • A $NAME reference removes the token value from disk but does not hide it from agents: the variable is present in the environment of the agents the host launches.
  • A backup of the data directory contains the token files: keep it as a secret.

6.7 · Merging and branches

  • Merging a PR requires headSha, the head you saw; nobody can bypass CI checks, branch protection or review.
  • By default the owner merges PRs. The coordinator merges a PR only when the setting is agents, after a green CI and the approval of an independent reviewer; the author of a task does not merge their own PR.
  • onreel brings a lagging branch up with a merge commit and a push without force: history is not rewritten.

6.8 · Phone access

The phone does not talk to the host directly: it connects to the access server on your PC, which lets through only the verbs allowed to the device. Only the owner enables and revokes access.

  • Pairing goes by a QR code or a one-time code valid for a few minutes. A code without a QR connects only to a PC the phone already knows: this way a PC cannot be impersonated.
  • Terminals on the phone are read-only.
  • A phone's sign-in is limited in time (30 days by default) and is extended while the phone is in touch. A revoked phone loses access at once.
  • If there is no direct path, the connection goes through TURN with a ticket issued by the PC itself.

Connecting over the local network does not work yet (limitations).

6.9 · What next

The platforms and limits of this version are in the Limitations article. How to connect agents and restrict their rights is in Agents and manifests.