Unprivileged Sandbox Workers vs Docker Socket Security & Overhead
Avoid mounting /var/run/docker.sock into automation workers; V8 SANDBOX_CODE_ONLY provides strong isolation without root container escalation risk.
Measured Unit Economics & Telemetry
Mounting /var/run/docker.sock gives any compromised flow step root-equivalent host control and adds 300-800ms container spin-up latency per execution. Activepieces achieves low-latency isolation through V8 isolated-vm and Linux chroot/nsjail sandboxes inside an unprivileged container—retaining sub-50ms isolate startup while preserving strict blast-radius containment.
| Resource / Billing Line | Audited Value | FinOps Impact |
|---|---|---|
| Docker-in-Docker / Socket Spawn | 350 - 800 ms / step | High host escalation surface |
| V8 isolated-vm (SANDBOX_CODE_ONLY) | 18 - 45 ms startup | Zero Docker socket mount required |
| Hostinger / Vultr Kernel Compatibility | Standard KVM Linux | Works out-of-the-box on Ubuntu 24.04 |
| Network Egress Containment | Docker internal bridge | Isolates Postgres & Redis from external SSRF |
Implementation & Configuration Checklist
- Never Bind /var/run/docker.sock: Keep Activepieces isolated on a dedicated Docker user-defined network without host daemon access.
- Separate Public Proxy & DB Networks: Expose only Caddy/Nginx ports 80/443 publicly while keeping Postgres 5432 and Redis 6379 internal.
- Audit Custom HTTP Targets for SSRF: Restrict outbound metadata IPs (169.254.169.254) via host firewall rules on cloud VPS nodes.
# Zero docker.sock mount; internal bridge isolation
AP_EXECUTION_MODE=SANDBOX_CODE_ONLY
ufw deny out to 169.254.169.254
Workflow Infrastructure FAQ
Does Activepieces require privileged mode in Docker Compose?
SANDBOX_CODE_ONLY runs without privileged mode on standard Linux VPS kernels; check host sysctl userns settings only for full isolate chroot.
Why test isolation flags on Vultr first?
Vultr $300 promo credit lets you validate custom kernel/cgroup behavior on disposable Ubuntu nodes before production cutover.