Skip to content

feat(sandbox): multi-tier networking configuration options (isolated pod, namespace, public whitelist, local whitelist) #207

Closed

Description

@dan-petty

Problem Statement

Workload sandboxes currently support limited network mode strings (bridge and none), lacking declarative, fine-grained networking isolation options required for safe execution of untrusted workloads, multi-container sandboxes, and hybrid environments.

Proposed Changes

  1. SandboxNetworkMode & SandboxNetworkConfig:
    • isolated: Isolated pod / container with zero external and zero local network access (loopback only, equivalent to none / zero-ingress-egress NetworkPolicy).
    • sandbox_namespace: Restricted to intra-sandbox communication within a dedicated internal bridge / Kubernetes sandbox namespace (devops-sandbox-net / sandbox), without public internet gateway or host access.
    • public_whitelist: Public internet access permitted strictly to explicitly whitelisted domains and public CIDRs/IPs; private RFC 1918 IPs, link-local, and cloud metadata (169.254.169.254) are rejected.
    • local_whitelist: Access permitted strictly to explicitly whitelisted local/private URLs, hostnames, or IPs (e.g. http://localhost:11434, http://192.168.1.50:8000); arbitrary local port scanning or unlisted internal hosts are blocked.
  2. Kubernetes & Docker Network Policy Enforcement:
    • Generate Kubernetes NetworkPolicy specifications enforcing the selected networking mode.
    • Support Docker network creation/attachment and --add-host / routing flags in WorkloadSandboxEngine and WorkloadSandboxRunner.
  3. CLI & FastMCP Integration:
    • Add --network-mode, --public-whitelist, --local-whitelist options to devops sandbox deploy, devops docker sandbox, and devops test sandbox.
    • Update FastMCP sandbox_deploy and docker_sandbox tools.
  4. Comprehensive Test Suite:
    • Unit tests validating all 4 modes, whitelist boundaries, validation errors, and NetworkPolicy generation.

Acceptance Criteria

  • Full support for all 4 networking options across devops sandbox and devops docker sandbox.
  • 100% test pass and zero regressions in devops ci.

Activity

  1. added this to the v0.2.18 milestone on Sep 14, 2026
  2. added
    type/feature
    scope/security
    scope/cli
    priority/p1-high
    on Sep 14, 2026
  3. added a commit that references this issue on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/cliscope/securitytype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions