oliver-zehentleitner / maity

runner: a short private TMPDIR for Claude Code placements on ssh hosts

Sign in to report

tsk-crz2amd36gmm Open

Follow-up to tsk-k7svzz2p4v7y (step 2). The runner makes no per-user /tmp leaf on an ssh target, since it doesn't hold the remote uid. Since step 2, a sandboxed Claude Code placement there is refused (fail closed, as security asked on tsk-z5c3798r1ces) when its scratch's tmp is too long for a Unix socket.

Make the leaf on ssh hosts too, through maity runner scratchop as the agy scratch and the Codex home writes do, so such placements start with a private TMPDIR.

Done when:

  • the leaf is made, recorded and removed on the host;
  • Claude Code's settings there match the local ones;
  • tests;
  • docs/runners.md;
  • an ops live check on an ssh host.

Security leg on the PR.