ARTEX/sandbox
BaaRai 49c4511cf4 fix(sandbox): prove container removal before reporting Kill/Delete success
removeContainer and removeNetwork discarded Docker transport failures and
non-2xx statuses, so Kill could clear the worker ID and return nil while the
worker kept running, and Delete removed the task from the in-memory map before
killing, ignored the resulting not-found, and cleaned up unchecked.

removeContainer/removeNetwork now return errors (404 counts as proven absent),
Kill clears the worker ID only after the container is proven stopped or absent,
and Delete kills from the captured task state, keeps the entry until every
resource is proven gone, and returns a retryable error otherwise. Cleanup runs
on a fresh bounded context instead of inheriting a cancelled request, and a
per-task mutex serializes concurrent Kill/Delete.
2026-12-01 02:42:53 +01:00
..
client.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
docker.go fix(sandbox): prove container removal before reporting Kill/Delete success 2026-12-01 02:42:53 +01:00
docker_cleanup_test.go fix(sandbox): prove container removal before reporting Kill/Delete success 2026-12-01 02:42:53 +01:00
docker_e2e_test.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
policy.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
proxy.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
runner.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
sandbox_test.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
types.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00
validate.go security: isolate task execution in per-task sandbox worker and egress proxy 2026-11-30 19:09:32 +01:00