Module capability

Module capability 

Source
Expand description

Granular capability tokens and permission checks for IPC services.

Structs§

CapabilityBundle
A capability bundle given to the workspace to spawn a child process. Includes both a token and a capability set.
CapabilitySet
A set of capabilities for a process, not including a token.
CapabilityToken
An unguessable capability token bound to a single connection/process.
GlobalLimits
Global limits across the connection/process.
InMemoryTokenValidator
A simple in-memory token validator that stores tokens and their associated capability sets.
MethodRule
Pattern/rule controlling access to a method with optional quotas.
QuotaSet
Quotas applicable to a method.
ServiceName
Logical service identifier (human-readable, stable across versions).

Enums§

MethodSelector
A method selector can be exact or wildcard.

Traits§

TokenValidator
Validates a capability token and derives a bound CapabilitySet. Implementations should avoid panics and return errors for invalid tokens.

Functions§

default_service_capabilities
Provides default capabilities for singleton services.
trusted_workspace_capabilities
Capabilities used to authorize requests arriving from the workspace.