mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add network environment ID plumbing (#28766)
## Why Prepare network approval scoping to distinguish execution environments without changing behavior yet. ## What changed - Add optional environment IDs to network policy requests. - Add optional network environment IDs to exec and sandbox request structs. - Thread default None values through existing construction points. - Fix stale constructor call sites that caused the CI compile failures. ## Not included - Per-environment proxy listeners. - Network approval cache or prompt behavior changes. - Ambiguous request attribution handling. Those behavior changes moved to stacked follow-up #28899. ## Validation - just fmt - CI will run tests and clippy
This commit is contained in:
21 files changed
+60
No files matched your search
@@ -97,6 +97,7 @@ fn unsandboxed_transform_preserves_foreign_cwd_and_unrestricted_file_system_poli
|
||||
permissions: &permissions,
|
||||
sandbox: SandboxType::None,
|
||||
enforce_managed_network: false,
|
||||
environment_id: None,
|
||||
network: None,
|
||||
sandbox_policy_cwd: &cwd_uri,
|
||||
codex_linux_sandbox_exe: None,
|
||||
@@ -151,6 +152,7 @@ fn transform_additional_permissions_enable_network_for_external_sandbox() {
|
||||
permissions: &permissions,
|
||||
sandbox: SandboxType::None,
|
||||
enforce_managed_network: false,
|
||||
environment_id: None,
|
||||
network: None,
|
||||
sandbox_policy_cwd: &cwd_uri,
|
||||
codex_linux_sandbox_exe: None,
|
||||
@@ -220,6 +222,7 @@ fn transform_additional_permissions_preserves_denied_entries() {
|
||||
permissions: &permissions,
|
||||
sandbox: SandboxType::None,
|
||||
enforce_managed_network: false,
|
||||
environment_id: None,
|
||||
network: None,
|
||||
sandbox_policy_cwd: &cwd_uri,
|
||||
codex_linux_sandbox_exe: None,
|
||||
@@ -316,6 +319,7 @@ fn transform_linux_seccomp_request(
|
||||
permissions: &permissions,
|
||||
sandbox: SandboxType::LinuxSeccomp,
|
||||
enforce_managed_network: false,
|
||||
environment_id: None,
|
||||
network: None,
|
||||
sandbox_policy_cwd: &cwd_uri,
|
||||
codex_linux_sandbox_exe: Some(codex_linux_sandbox_exe),
|
||||
@@ -505,6 +509,7 @@ fn transform_for_direct_spawn_windows_materializes_inner_helper() {
|
||||
permissions: &permissions,
|
||||
sandbox: SandboxType::WindowsRestrictedToken,
|
||||
enforce_managed_network: false,
|
||||
environment_id: None,
|
||||
network: None,
|
||||
sandbox_policy_cwd: &cwd_uri,
|
||||
codex_linux_sandbox_exe: None,
|
||||
|
||||
Reference in new issue
Block a user