mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why Proxy settings are bound to the command's execution environment. Preparing them again at launch can overwrite the settings already bound to the command, including credentials prepared for its shell. ## What changed Have `SandboxManager` prepare the proxy environment and sandbox network context together when the caller hasn't supplied a prepared route. Pass the prepared environment through to the child and use the prepared context for sandbox policy, including macOS Seatbelt's proxy ports and Unix socket rules. ## Testing Add regression coverage for preserving shell-specific credentials and environment-bound proxy settings, reporting proxy setup errors for the requested environment, and deriving Seatbelt rules from the prepared route. GitOrigin-RevId: 7a9b5822d8d53f6c93e6318a19222bf06abf0da0
43 lines
1.2 KiB
TOML
43 lines
1.2 KiB
TOML
[package]
|
|
name = "codex-sandboxing"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
name = "codex_sandboxing"
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
codex-mxc-sandbox = { workspace = true }
|
|
codex-network-proxy = { workspace = true }
|
|
codex-protocol = { workspace = true }
|
|
codex-uds = { workspace = true }
|
|
codex-utils-absolute-path = { workspace = true }
|
|
codex-utils-path-uri = { workspace = true }
|
|
codex-utils-pty = { workspace = true }
|
|
codex-windows-sandbox = { workspace = true }
|
|
dunce = { workspace = true }
|
|
libc = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
regex-lite = { workspace = true }
|
|
tokio = { workspace = true, features = ["rt", "sync"] }
|
|
tracing = { workspace = true, features = ["log"] }
|
|
which = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
codex-otel = { workspace = true }
|
|
codex-utils-home-dir = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true }
|
|
codex-utils-cargo-bin = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true, features = ["macros", "rt", "time"] }
|