Module authorizer

Module authorizer 

Source
Expand description

ClientAuthorizer trait for incoming client authorization.

The reflector delegates the accept/reject decision for every new client link to a pluggable ClientAuthorizer. Implementors can consult bans, quotas, whitelists, or any other policy before letting a client into the fan-out pool.

The default AllowAllAuthorizer accepts every request with read-write access and is intended for tests and local bring-up.

Structs§

AllowAllAuthorizer
Authorizer that accepts every link with AccessPolicy::ReadWrite.
DenyAllAuthorizer
Authorizer that rejects every link with RejectReason::Banned.
LinkAttempt
One link attempt observed by the reflector.
ReadOnlyAuthorizer
Authorizer that accepts every link with AccessPolicy::ReadOnly.

Enums§

AccessPolicy
Access policy granted to an accepted client.
RejectReason
Why a link attempt was rejected.

Traits§

ClientAuthorizer
Decision boundary for accepting / rejecting a new client link.