Skip to content

authority

Functions


firma_sidecar::startup::authority::spawn_authority_client

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

Function

Spawn the required Authority stream clients. 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 configured 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<crate::authority_client::AuthorityClientHandle>

firma_sidecar::startup::authority::spawn_authority_client_publishing

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

Function

Spawn the Authority stream clients with the TLS material tls read from config, publishing each accepted bundle’s version to enforcement_state for status readers.

Returns an error when the configured Authority URL cannot be parsed into a tonic endpoint or its TLS settings are unusable.

fn spawn_authority_client_publishing(config: &config::SidecarConfig, tls: &crate::authority_tls::AuthorityTls, runtime: &crate::startup::pipeline::PipelineRuntime, cancel: tokio_util::sync::CancellationToken, enforcement_state: Option<std::path::PathBuf>) -> anyhow::Result<crate::authority_client::AuthorityClientHandle>