revert(sandbox): the identity is a file the API writes before boot

Merged
SA
2mo ago
+83-65

Decided after the fact on 2026-09-14: sandbox.conf goes back to a file written by the API before every boot (Decision 12 as written), instead of riding in the boot command's env. A file on the box is legible, has no size ceiling, and the runner's inputs keep one shape; the cost is one provider call, about 0.3 s on a 15 s path. The policy update still runs alongside the write and a create still settles instead of re-waking. The identity now carries only the start and ports hook overrides; setup is the release's and could be a whole script.

https://claude.ai/code/session_01FK6rLzBEUiHHXZWNmpQ2BP


Summary by cubic

Reverts the sandbox identity delivery from the boot command's env back to sandbox.conf written by the API before every boot.

  • Writes /etc/superset/sandbox.conf at claim, wake, and promotion instead of passing it as an env var.
  • Keeps HOST_SERVICE_SECRET in the boot command's env; no secrets move into the file.
  • Removes setup from the identity's hook overrides; the box now receives only start and ports.
  • Costs about 0.3 s per boot for the extra provider call.

Migration

  • superset-boot no longer writes the identity file itself; the API writes it before boot, so environments using a previous bundle must carry the updated runner before upgrading the control plane.