Skip to content

proxy_bridge

Structs

  • ProxyBridgeInput - Lib-level input for [execute_proxy_bridge]. The CLI layer builds this

Functions


Struct

Lib-level input for [execute_proxy_bridge]. The CLI layer builds this from its clap-derived args struct.

Fields:

  • listen: std::net::SocketAddr - TCP listen address reachable by the sandboxed agent process.
  • upstream_uds: std::path::PathBuf - Upstream host-side Unix socket path exposed by firma run.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> ProxyBridgeInput

firma_run::proxy_bridge::execute_proxy_bridge

Section titled “firma_run::proxy_bridge::execute_proxy_bridge”

Function

Run the internal sandbox bridge process.

The bridge accepts HTTP proxy traffic over TCP (inside the sandbox) and relays bytes bidirectionally to a host-side Unix socket endpoint.

Returns an error if the bridge cannot bind/listen or if the platform does not support Unix sockets.

fn execute_proxy_bridge(args: &ProxyBridgeInput) -> Result<i32, crate::error::RunError>