{"record":{"id":"4952d6311dbab9bb","repo":"openai/codex","slug":"remote-exec-server-network-proxy-does-not-support","errorCode":null,"errorMessage":"remote exec-server network proxy does not support MITM, credential injection, or MITM hooks","messagePattern":"remote exec-server network proxy does not support MITM, credential injection, or MITM hooks","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/network-proxy/src/remote_config.rs","lineNumber":77,"sourceCode":"/// cross the exec-server boundary accidentally.\n#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]\n#[serde(rename_all = \"camelCase\")]\n#[non_exhaustive]\npub struct RemoteNetworkProxyConfig {\n    pub enabled: bool,\n    pub enable_socks5: bool,\n    pub enable_socks5_udp: bool,\n    pub allow_upstream_proxy: bool,\n    pub dangerously_allow_all_unix_sockets: bool,\n    pub mode: NetworkMode,\n    pub domains: Option<NetworkDomainPermissions>,\n    pub unix_sockets: Option<NetworkUnixSocketPermissions>,\n    pub allow_local_binding: bool,\n}\n\nimpl RemoteNetworkProxyConfig {\n    pub fn from_effective_config(config: &NetworkProxyConfig) -> Result<Self> {\n        ensure!(\n            !config.enabled\n                || (!config.mitm\n                    && !config.credential_broker\n                    && !config.dangerously_allow_plaintext_credential_injection\n                    && config.mitm_hooks.is_empty()),\n            \"remote exec-server network proxy does not support MITM, credential injection, or MITM hooks\"\n        );\n        Ok(Self {\n            enabled: config.enabled,\n            enable_socks5: config.enable_socks5,\n            enable_socks5_udp: config.enable_socks5_udp,\n            allow_upstream_proxy: config.allow_upstream_proxy,\n            dangerously_allow_all_unix_sockets: config.dangerously_allow_all_unix_sockets,\n            mode: config.mode,\n            domains: config.domains.clone(),\n            unix_sockets: config.unix_sockets.clone(),\n            allow_local_binding: config.allow_local_binding,\n        })","sourceCodeStart":59,"sourceCodeEnd":95,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/network-proxy/src/remote_config.rs#L59-L95","documentation":"Error \"remote exec-server network proxy does not support MITM, credential injection, or MITM hooks\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/network-proxy/src/remote_config.rs:77 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}