pub struct SandboxConfig {
pub secrets: Vec<SecretMapping>,
pub strings: Vec<StringMapping>,
pub connections: Vec<ConnectionPolicy>,
pub allow_private_connect: bool,
pub upstream_ca: Option<PathBuf>,
}Expand description
Configuration for the sandbox: secrets, string mappings, connection allow/deny, and proxy options.
Fields§
§secrets: Vec<SecretMapping>Env-based secret mappings (env var name → value). Default empty.
strings: Vec<StringMapping>String token → value mappings. Default empty.
connections: Vec<ConnectionPolicy>Allow/deny rules for outbound connections (host or host regex). Evaluated in order; first match wins; no match = allow. Default empty.
allow_private_connect: boolIf true, CONNECT to private/local addresses (e.g. 127.0.0.1) is allowed. For testing only; default false.
upstream_ca: Option<PathBuf>Optional path to PEM file with extra CA cert(s) to trust for upstream (e.g. self-signed server).
Trait Implementations§
Source§impl Clone for SandboxConfig
impl Clone for SandboxConfig
Source§fn clone(&self) -> SandboxConfig
fn clone(&self) -> SandboxConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxConfig
impl Debug for SandboxConfig
Auto Trait Implementations§
impl Freeze for SandboxConfig
impl RefUnwindSafe for SandboxConfig
impl Send for SandboxConfig
impl Sync for SandboxConfig
impl Unpin for SandboxConfig
impl UnsafeUnpin for SandboxConfig
impl UnwindSafe for SandboxConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more