Skip to content

pipeline

Structs

  • PipelineRuntime - Runtime state produced while building the enforcement pipeline.

Functions


firma_sidecar::startup::pipeline::PipelineRuntime

Section titled “firma_sidecar::startup::pipeline::PipelineRuntime”

Struct

Runtime state produced while building the enforcement pipeline.

Fields:

  • pipeline: std::sync::Arc<pipeline::EnforcementPipeline> - Request enforcement pipeline.
  • revocation_store: std::sync::Arc<dyn RevocationStore> - Store shared by Stage 1 and the Authority revocation task.
  • swappable_policy: std::sync::Arc<crate::authority_client::swappable_policy::SwappablePolicyEvaluation> - Policy snapshot shared by Stage 2 and the Authority bundle task.
  • readiness: std::sync::Arc<crate::authority_client::readiness::ReadinessFlag> - Writable readiness flag for Authority tasks.
  • mapping_rules_loaded: usize - Total mapping rule count loaded across primary + extra files.

firma_sidecar::startup::pipeline::build_pipeline_runtime

Section titled “firma_sidecar::startup::pipeline::build_pipeline_runtime”

Function

Build the enforcement pipeline plus stream-client shared state.

Pass a [PreflightResult] to populate Stage 1 with a real token and verifier. Without it, Stage 1 uses the stub verifier (always deny).

Returns an error when pipeline component construction fails.

fn build_pipeline_runtime(config: &config::SidecarConfig, preflight: Option<crate::startup::preflight::PreflightResult>) -> anyhow::Result<PipelineRuntime>