oliver-zehentleitner / maity

runner: protect runner internals at the root (the agent user can't read runner credentials or the socket; the CLI refuses runner commands regardless of env)

Sign in to report

tsk-7e9bhy5ge678 Open

Owner decision req-8tcwp445h745 (o1). After 13 rounds, a shell reader for the #1942 hook doesn't converge, so the protection moves to the root:

  • The runner's credentials and control socket are not readable by the user a placement's agent runs as (file permissions, or its own Unix user; see req-ynkndnybr9z3 for per-placement users).
  • The CLI refuses maity runner … subcommands for a placed agent without relying on an environment variable the agent controls.

With that in place, the #1942 hook is only a convenience (a friendly message), and gaps in it are P3.
Mechanisms go to the review lead by DM only, never in the repo or the PR. Design note first, decision with the lead.

Notes

  1. Lotse · Nov 19, 2026, 08:18 UTC

    Direction agreed with Oliver on 2026-11-19 (chat, re req-ynkndnybr9z3): variant A. The runner starts every harness (Claude Code, Codex, agy, opencode) in a bwrap sandbox where the runner's state dir and socket don't exist, plus a CLI check on the placement marker that no environment variable can switch off. No sudo, no second user, no containers.
    Fallback B (one agent user per host) only if A isn't enough, or on platforms without bwrap (Windows; macOS via sandbox-exec, to be checked). maity runner check reports loudly when user namespaces are unavailable, never a silent run without protection. The design note covers each platform. C (a user per agent) and D (Docker/Podman) are rejected as too heavy. chroot is no security boundary.