Skip to main content

Crate aviso_ecpds

Crate aviso_ecpds 

Source
Expand description

ECPDS destination authorization plugin for aviso-server.

This crate decides whether a given user is allowed to read a given ECPDS destination, by consulting one or more ECPDS monitor servers and caching the result. It is consumed by aviso-server behind the ecpds Cargo feature; deployments that don’t need ECPDS auth compile without this crate at all.

See aviso-ecpds/README.md for an architectural overview, the “ECPDS Destination Authorization” section in the operator documentation for setup, and the “ECPDS Plugin Runbook” for on-call triage.

Public surface, at a glance:

Re-exports§

pub use checker::EcpdsChecker;
pub use client::EcpdsError;

Modules§

cache
In-process single-flight bounded cache of authorised ECPDS destination lists, keyed by username.
checker
The single public facade combining the HTTP client, the cache, and the destination match logic.
client
HTTP client to one or more ECPDS servers, plus the typed error / fetch-outcome / deny-reason types consumed by the route layer.
config
Static configuration for the ECPDS plugin (deserialised from YAML at startup).

Functions§

set_service_identity
Register the parent-process service identity used in this crate’s structured tracing events.