[ORCH-106] Docker sandbox isolation #241
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Isolate agents in Docker containers for security.
Acceptance Criteria
Implementation Details
DockerSandboxService with methods: createContainer, startContainer, stopContainer, removeContainer, getContainerStatus, cleanup, isEnabled.
Configuration added to orchestrator.config.ts: DOCKER_SOCKET, SANDBOX_ENABLED, default image/memory/CPU/network settings.
Security: Non-root user, resource limits, network isolation options, workspace volume mounts only.
Test Coverage: 21 unit tests, 100% statement/function/line coverage, 70% branch coverage.
Integration: Added to spawner module, exported in index.ts, AgentSession type updated with containerId field.
See docs/scratchpads/orch-106-sandbox.md for details.
Implemented following TDD principles.