Module ockam_core::access_control
source · Expand description
Access control
Structs§
- Allows message that are allowed by all
IncomingAccessControl
s - Allows message that are allowed by all
OutgoingAccessControl
s - An Access Control type that allows all messages to pass through.
- An Access Control type that allows messages to the given onward address to go through Note that onward and destination addresses are different in some cases
- An Access Control type that allows messages to the given onward address to go through Note that onward and destination addresses are different in some cases
- An Access Control type that allows messages from the given source address to go through Note that it’s based on source address, not a first hop of return_route, which may be different in some scenarios
- An Access Control type that allows messages from the given source addresses to go through Note that it’s based on source address, not a first hop of return_route, which may be different in some scenarios
- Allows message that are allowed by any of
IncomingAccessControl
s - Allows message that are allowed by any of
OutgoingAccessControl
s - A wrapper for an incoming access control that caches successful authorizations. The message is considered the same if everything except the payload is the same. Keeps a cache of the last [
CACHE_MAX_SIZE
] authorized messages with validity of [CACHE_DURATION_SECS
] seconds. - A wrapper for an outgoing access control that caches successful authorizations. The message is considered the same if everything except the payload is the same. Keeps a cache of the last [
CACHE_MAX_SIZE
] authorized messages with validity of [CACHE_DURATION_SECS
] seconds. - An Access Control type that blocks all messages from passing through.
Traits§
- Defines the interface for incoming message flow authorization.
- Defines the interface for outgoing message flow authorization.