Problem
The API container mounts /var/run/docker.sock, which grants root-equivalent control over the host if the API is compromised.
Proposed change
- Split execution into a dedicated executor service (RPC-based).
- API server submits job specs; executor launches containers.
- Executor runs with minimal permissions and strict allowlists.
Acceptance criteria
- API container no longer mounts
docker.sock.
- Executor enforces image allowlist.
- Executor disallows privileged containers.
- Executor disallows arbitrary mounts.
Problem
The API container mounts
/var/run/docker.sock, which grants root-equivalent control over the host if the API is compromised.Proposed change
Acceptance criteria
docker.sock.