Skip to content

local_exec

Functions


firma_sidecar::startup::local_exec::spawn_local_exec_endpoint

Section titled “firma_sidecar::startup::local_exec::spawn_local_exec_endpoint”

Function

Build and spawn the local-exec governance endpoint if configured. Every execution is denied once readiness records a rejected run.

Returns a JoinHandle for the endpoint task, or None when [sidecar.local_exec] is absent from the config.

Returns an error when the socket cannot be bound (bad path, permissions).

fn spawn_local_exec_endpoint(config: &crate::config::SidecarConfig, sandbox_id: Option<firma_identifiers::SandboxId>, readiness: crate::authority_client::readiness::ReadinessView, cancel: tokio_util::sync::CancellationToken) -> anyhow::Result<Option<tokio::task::JoinHandle<()>>>