Expand description
Policy-authority credential revocation and session registry: one canonical store of each kind per deployment.
The policy service process owns the single canonical credential-revocation
store and session registry, each backed by a durable local file
(hyprstream_rpc::auth::FileBackedCredentialRevocationStore and
hyprstream_rpc::auth::FileBackedSessionRegistry). Every other service
process publishes PolicyAuthorityRevocationStore and
PolicyAuthoritySessionRegistry as its process-global handles: checks
and publications cross the RPC bus to the policy service. Fail-closed
everywhere — at startup (an unreachable or unhealthy authority aborts the
process), at check (any RPC error or timeout reports the credential as
revoked / the session as not active), and at publication (a failed
publication is an error, never a silent no-op).
Structs§
- Policy
Authority Revocation Store - Credential-revocation store that delegates to the policy service — the one
canonical revocation authority — over the RPC bus. Published as the
process-global store by
init_process_authority_storesin every process that does not host the policy service. - Policy
Authority Session Registry - Session registry that delegates to the policy service — the one canonical
session authority — over the RPC bus. Published as the process-global
registry by
init_process_authority_storesin every process that does not host the policy service.
Functions§
- init_
process_ authority_ stores - Initialize the process-global authority stores at startup: the credential-revocation store AND the session registry.