Skip to content

P0: enforce Enabled network via isolated netns and managed proxy - #55

Merged
novelKR merged 2 commits into
mainfrom
cursor/p0-network-enforcement
Sep 19, 2026
Merged

novelKR merged 2 commits into
mainfrom
cursor/p0-network-enforcement

Conversation

@novelKR

@novelKR novelKR commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds SandboxNetwork::Enabled mapped to Codex Enabled + --allow-network-for-proxy. Restricted stays --unshare-net + Restricted seccomp exec; Enabled starts helper-owned NetworkProxy then spawn+waits Codex argv.
  • Operator workspace JSON network (restricted | enabled, default restricted) selects the axis. MCP profiles and LIVE_TOOLS are unchanged; { "network": true } is not a grant. Probe failure + Enabled is PROCESS_SPAWN_FAILED (no host FullAccess fallback).
  • workspace_info advertises enforcement=enforced for both axes when the Linux helper wraps spawn. Bilingual docs + prepare/isolation/MCP tests.

Test plan

  • cargo test -p codespace-linux-sandbox-protocol -p codespace-policy -p codespace-domain -p codespace-runner -p codespace-server
  • cargo test --manifest-path crates/linux-sandbox/Cargo.toml (Linux CI with CODESPACE_REQUIRE_LINUX_SANDBOX=1 for isolation HTTP-via-proxy)
  • scripts/check-no-model-deps.sh and python3 -B scripts/check_docs.py check
  • Confirm default workspace network.policy=restricted; operator network: enabled advertises enabled without raising Write/Exec

Made with Cursor

novelKR and others added 2 commits September 19, 2026 17:03
…oxy.

Restricted stays fail-closed OS deny; Enabled without the Linux helper is PROCESS_SPAWN_FAILED rather than host FullAccess.

Co-authored-by: Cursor <cursoragent@cursor.com>
Clear Codex's default NO_PROXY after apply_to_env so loopback clients cannot bypass the helper proxy, and drop the unused isolation prepare_plan wrapper.

Co-authored-by: Cursor <cursoragent@cursor.com>
@novelKR
novelKR merged commit ab5defb into main Sep 19, 2026
16 checks passed
@novelKR
novelKR deleted the cursor/p0-network-enforcement branch September 19, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant