Sandbox scripts¶
The detailed view of a building block of 5.1; its summary is 5.2.12.
| Aspect | Detail |
|---|---|
| Role | one Docker Sandbox (sbx) per repository, holding that repository's coordinator and its workers: created, provisioned from inside, started and stopped by a systemd user unit, its coordinator brought back when its process ends, and the network allowlist kept |
| Interfaces | sbx and its proxy, which puts the real token into requests; the systemd user units of the user claude; the allowlist file, which the Linux host reads, the workstation's scripts on hold too, and the network allowlist page shows; the Linux host scripts' token helper and root packages; the plugins and the dev-env baseline it installs inside each VM |
| Code | scripts/sandbox; the units and the sandboxes' list in systemd/; the environment files and kits of the next sandbox layout in sandbox/ (its README (sandbox/README.md)); the tests in scripts/tests |
| Decided by | #306 (one sandbox per repository), #319 (user units), #529 (detached), #585 (the watch), #744 (the allowlist); setup/linux-host.md |
| Deployment | the Linux host, as the user claude; the Linux hosts only; the Windows scripts of the owner's workstation are on hold (7.1.1, 7.1.2) |
| Status | built; the environment files and kits planned (#849) |
| Script | Role |
|---|---|
sandboxes.sh |
status, setup and the network drift check on the Linux host: files and units, sbx settings, the network policy, each sandbox created, its root packages, its provisioning, its unit started |
claude-sandbox.sh |
start, stop and watch one sandbox with its coordinator, run by claude-sandbox@<name> and its watch timer |
sandbox-provision.sh |
runs inside a sandbox: the gate's tools, the destructive command guard, the plugins, the commit identity, trust, the coordinator's settings, the baseline |
network-allow.conf |
every host the sandboxes may reach, with its scope and reason |
network-allow-doc.sh |
writes the network allowlist page's tables from that file |
network-kits.ps1, sbxenv-args.ps1 |
write the network kits and the machine's environment arguments of the next sandbox layout |
The life cycle of a sandbox and its setup: 6.4.