Skip to content

authority

Functions


firma_sidecar::startup::authority::spawn_authority_client

Section titled “firma_sidecar::startup::authority::spawn_authority_client”

Function

Spawn the Authority stream clients when policy.authority_url is set. Uses the shared policy snapshot, revocation store, and readiness flag owned by the [PipelineRuntime].

Returns an error when the configured Authority URL cannot be parsed into a tonic endpoint, or when a required CA cert or client cert file cannot be read.

fn spawn_authority_client(config: &config::SidecarConfig, runtime: &crate::startup::pipeline::PipelineRuntime, cancel: tokio_util::sync::CancellationToken) -> anyhow::Result<Option<crate::authority_client::AuthorityClientHandle>>