Skip to main content

Module source

Module source 

Source
Expand description

Where a compiled policy comes from: a snapshot of the authz database.

The trait is deliberately thin — one method returning a Db value — so every surface can supply the snapshot it already holds: the transactor reads its own DbState, a peer server reads the database value its connection keeps in sync, and tests hand over a value they built in memory. Nothing here fetches over the network on the request path; a snapshot is a cheap clone of an immutable value.

Structs§

MemoryPolicySource
A source over a database value held in memory: the embedded case, and what tests and corium authz check --policy use.

Enums§

SourceError
Failure to obtain a policy snapshot.

Constants§

DEFAULT_POLL_INTERVAL
How long a source with no change notification waits between polls.

Traits§

PolicySource
Supplies snapshots of the authorization database.