Skip to main content

Module revocation

Module revocation 

Source
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§

PolicyAuthorityRevocationStore
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_stores in every process that does not host the policy service.
PolicyAuthoritySessionRegistry
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_stores in 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.