mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add managed network policy support to the Windows MXC sandbox (#44872)
## What changed Add `create_command_args()` to encode argv, permissions, policy cwd, and optional managed network context through the existing bounded environment transport. For managed networking, generate a policy that allows IPv4 and IPv6 loopback while denying direct non-loopback egress and general inbound access. Require nonempty, nonzero proxy ports and reject `allow_local_binding=false` at both launcher and policy boundaries because native host-loopback access is bidirectional. Document the MXC launch contract, platform requirements, and limitations. ## Testing Add portable tests covering managed network transport and policy translation, plus rejection of missing proxy ports, zero ports, and unsupported local-binding restrictions at both boundaries. GitOrigin-RevId: 8d31b98f94a2ba3769369aa50de8e53dc143bac4
This commit is contained in:
1 parent
68bc5369ba
commit
2c9e1a5775
7 files changed
+274
-4
No files matched your search
@@ -16,6 +16,7 @@ ignored = ["tracelogging"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = { workspace = true }
|
||||
codex-network-proxy = { workspace = true }
|
||||
codex-protocol = { workspace = true }
|
||||
codex-utils-absolute-path = { workspace = true }
|
||||
codex-utils-path-uri = { workspace = true }
|
||||
|
||||
Reference in new issue
Block a user