Skip to content

authority_client

Modules

  • backoff - Exponential reconnect backoff with bounded jitter.
  • channel - Authority gRPC channel builder.
  • policy_bundle - WatchPolicyBundle stream task.
  • readiness - Readiness state shared between Authority stream tasks and the pipeline.
  • revocation - WatchRevocations stream task.
  • swappable_policy - Hot-swappable policy evaluator.

Structs

Functions


firma_sidecar::authority_client::AuthorityClientHandle

Section titled “firma_sidecar::authority_client::AuthorityClientHandle”

Struct

Join handles for the spawned stream tasks.

Fields:

  • policy_task: tokio::task::JoinHandle<()> - WatchPolicyBundle task.
  • revocation_task: tokio::task::JoinHandle<()> - WatchRevocations task.

firma_sidecar::authority_client::AuthorityDeps

Section titled “firma_sidecar::authority_client::AuthorityDeps”

Struct

Dependencies required to spawn Authority stream clients.

Fields:

  • channel: tonic::transport::Channel - Shared tonic channel to the Authority.
  • swappable_policy: std::sync::Arc<self::swappable_policy::SwappablePolicyEvaluation> - Hot-swappable policy evaluator used by Stage 2.
  • revocation_store: std::sync::Arc<dyn RevocationStore> - Revocation store shared with Stage 1.
  • readiness: std::sync::Arc<self::readiness::ReadinessFlag> - Readiness writer shared by stream tasks.
  • cancel: tokio_util::sync::CancellationToken - Cancellation token used for graceful shutdown.
  • config: crate::config::AuthorityConfig - Authority client tuning.
  • bundle_parser: std::sync::Arc<dyn BundleParser> - Policy bundle parser implementation.

Exponential reconnect backoff with bounded jitter.

Authority gRPC channel builder.

WatchPolicyBundle stream task.

Readiness state shared between Authority stream tasks and the pipeline.

WatchRevocations stream task.

firma_sidecar::authority_client::spawn_authority_client

Section titled “firma_sidecar::authority_client::spawn_authority_client”

Function

Spawn both Authority stream clients.

fn spawn_authority_client(deps: AuthorityDeps) -> AuthorityClientHandle

Hot-swappable policy evaluator.