pub struct SandboxConfigUserPolicyNetworkProxy {
pub password: Option<String>,
pub url: String,
pub username: Option<String>,
}Expand description
HTTP proxy configuration for sandboxed traffic.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§password: Option<String>Optional password for proxy authentication, combined with the URL at spawn time. The persisted value may be a literal password, a ${secret:…} reference resolved from the OS keychain, or a ${VAR}/$VAR environment reference; it is resolved just before the sandboxed process routes through the proxy. The /sandbox dialog stores a real password in the OS keychain and persists only a ${secret:…} placeholder (never plaintext in settings.json); the field is masked in the dialog and redacted by /settings show.
url: StringProxy URL (e.g. http://proxy.example.com:8080). The port is optional and defaults to the scheme’s standard port when omitted. Credentials must not be embedded here — a user:pass@ authority is rejected; put them in the separate username/password fields. A credential-free http:// loopback URL is routed through the localhost proxy automatically; loopback covers localhost and any *.localhost subdomain, the whole 127.0.0.0/8 range, ::1, and IPv4-mapped loopback (::ffff:127.0.0.1). An https:// URL, or one with a username/password set, is used as-is.
username: Option<String>Optional username for proxy authentication. Combined with the URL (and password) into user:pass@host when the sandboxed process routes through the proxy.
Trait Implementations§
Source§impl Clone for SandboxConfigUserPolicyNetworkProxy
impl Clone for SandboxConfigUserPolicyNetworkProxy
Source§fn clone(&self) -> SandboxConfigUserPolicyNetworkProxy
fn clone(&self) -> SandboxConfigUserPolicyNetworkProxy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more