mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why Networks that block HTTP/3 and HTTP/2 `CONNECT` can prevent `codex tcp-tunnel` from establishing an SSH connection. ## What changed In the default `auto` mode, keep the TCP attempt available when HTTP/3 `CONNECT` is blocked. If HTTP/2 `CONNECT` returns 405, 501, or a 403 with a `Server` header starting with `Zscaler/`, retry once over an HTTP/1.1 WebSocket. Use WebSocket directly when TLS negotiates HTTP/1.1. Ordinary authentication and authorization rejections stop setup. The attempts share the gateway, proxy route, TLS trust, and setup deadline. Use `--transport websocket` to force WebSocket or `--transport connect` to use only HTTP/3 and HTTP/2 `CONNECT`. Legacy JWT tunnels use `CONNECT`. Preserve independent EOF in both directions. When the remote side finishes writing, close the output pipe to OpenSSH so it sees EOF while upload can continue. ## Testing Add TLS-backed tests for fallback after blocked `CONNECT` responses, half-close in both directions, terminal gateway rejection, certificate verification before credential loading, and redirect rejection. GitOrigin-RevId: cfbbd81a3836da8d1f12bed61bb03c9dfb3674ce
155 lines
4.8 KiB
TOML
155 lines
4.8 KiB
TOML
[package]
|
|
name = "codex-cli"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
build = "build.rs"
|
|
default-run = "codex"
|
|
|
|
[[bin]]
|
|
name = "codex"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "logs_client"
|
|
path = "src/bin/logs_client.rs"
|
|
|
|
[[test]]
|
|
name = "app_server_daemon_package"
|
|
path = "tests/app_server_daemon/package.rs"
|
|
|
|
[lib]
|
|
name = "codex_cli"
|
|
path = "src/lib.rs"
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
base64 = { workspace = true }
|
|
codex-utils-process = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
chrono = { workspace = true }
|
|
clap = { workspace = true, features = ["derive", "env"] }
|
|
clap_complete = { workspace = true }
|
|
codex-app-server = { workspace = true }
|
|
codex-app-server-daemon = { workspace = true }
|
|
codex-app-server-protocol = { workspace = true }
|
|
codex-app-server-test-client = { workspace = true }
|
|
codex-arg0 = { workspace = true }
|
|
codex-build-info = { workspace = true }
|
|
codex-api = { workspace = true }
|
|
codex-cloud-config = { workspace = true }
|
|
codex-utils-cli = { workspace = true }
|
|
codex-config = { workspace = true }
|
|
codex-core = { workspace = true }
|
|
codex-core-plugins = { workspace = true }
|
|
codex-history = { workspace = true }
|
|
codex-home = { workspace = true }
|
|
codex-http-client = { workspace = true }
|
|
codex-exec = { workspace = true }
|
|
codex-exec-server = { workspace = true }
|
|
codex-exec-server-cli = { workspace = true }
|
|
codex-execpolicy = { workspace = true }
|
|
codex-extension-api = { workspace = true }
|
|
codex-features = { workspace = true }
|
|
codex-multi-env-copy-file = { workspace = true }
|
|
codex-git-attribution = { workspace = true }
|
|
codex-git-utils = { workspace = true }
|
|
codex-install-context = { workspace = true }
|
|
codex-login = { workspace = true }
|
|
codex-memories-write = { workspace = true }
|
|
codex-mcp = { workspace = true }
|
|
codex-model-provider = { workspace = true }
|
|
codex-models-manager = { workspace = true }
|
|
codex-plugin = { workspace = true }
|
|
codex-protocol = { workspace = true }
|
|
codex-responses-api-proxy = { workspace = true }
|
|
codex-tcp-tunnel = { workspace = true }
|
|
codex-rmcp-client = { workspace = true }
|
|
codex-rollout = { workspace = true }
|
|
codex-rollout-trace = { workspace = true }
|
|
codex-sandboxing = { workspace = true }
|
|
codex-skills-extension = { workspace = true }
|
|
codex-state = { workspace = true }
|
|
codex-terminal-detection = { workspace = true }
|
|
codex-thread-store = { workspace = true }
|
|
codex-tui = { workspace = true }
|
|
codex-uds = { workspace = true }
|
|
codex-utils-absolute-path = { workspace = true }
|
|
codex-utils-path = { workspace = true }
|
|
codex-utils-path-uri = { workspace = true }
|
|
codex-utils-redacted-string = { workspace = true }
|
|
codex-websocket-auth = { workspace = true }
|
|
crossterm = { workspace = true, features = ["event-stream"] }
|
|
filedescriptor = "0.8.3"
|
|
futures = { workspace = true }
|
|
http = { workspace = true }
|
|
libc = { workspace = true }
|
|
os_info = { workspace = true }
|
|
owo-colors = { workspace = true }
|
|
regex-lite = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
sqlx = { workspace = true }
|
|
supports-color = { workspace = true }
|
|
sys-locale = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
tokio = { workspace = true, features = [
|
|
"fs",
|
|
"io-std",
|
|
"io-util",
|
|
"macros",
|
|
"net",
|
|
"process",
|
|
"rt-multi-thread",
|
|
"signal",
|
|
"sync",
|
|
"time",
|
|
] }
|
|
toml = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-appender = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
unicode-segmentation = { workspace = true }
|
|
url = { workspace = true }
|
|
which = { workspace = true }
|
|
|
|
[target.'cfg(all(target_os = "linux", target_env = "musl", any(target_arch = "x86_64", target_arch = "aarch64")))'.dependencies]
|
|
tikv-jemallocator = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
codex_windows_sandbox = { package = "codex-windows-sandbox", path = "../windows-sandbox-rs" }
|
|
windows-sys = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Storage_Packaging_Appx",
|
|
"Win32_System_Console",
|
|
"Win32_System_Threading",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
app_test_support = { workspace = true }
|
|
assert_cmd = { workspace = true }
|
|
assert_matches = { workspace = true }
|
|
codex-app-server-client = { workspace = true }
|
|
codex-utils-cargo-bin = { workspace = true }
|
|
codex-utils-pty = { workspace = true }
|
|
core_test_support = { workspace = true }
|
|
flate2 = { workspace = true }
|
|
insta = { workspace = true }
|
|
jsonwebtoken = { workspace = true }
|
|
predicates = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
tar = { workspace = true }
|
|
tokio-tungstenite = { workspace = true }
|
|
vt100 = { workspace = true }
|
|
wiremock = { workspace = true }
|
|
zstd = { workspace = true }
|
|
|
|
[package.metadata.cargo-shear]
|
|
# These Rust sources are intentionally Bazel-only macrobenchmarks rather than
|
|
# Cargo targets.
|
|
ignored-paths = ["e2e_benches/*.rs"]
|