Skip to main content

Crate khive_gate

Crate khive_gate 

Source
Expand description

Pluggable authorization gate for verb dispatch.

The runtime consults a Gate impl before dispatching each verb. The default AllowAllGate is permissive. For production enforcement, plug a Rego-backed or capability-witness-backed impl into RuntimeConfig.gate. Wire types validate invariants at construction and deserialization boundaries.

Structs§

ActorRef
Caller identity. kind distinguishes user vs agent vs lambda etc.
AllowAllGate
Permissive gate — every request is allowed with no obligations.
AuditEvent
Structured audit record emitted once per gate consultation.
GateContext
Per-request context — session, timing, transport source.
GateRequest
What the gate sees on every verb invocation.

Enums§

AuditDecision
The outcome field of an AuditEvent, serialised as "allow" / "deny".
GateDecision
Gate decision: allow (with optional obligations) or deny (with reason).
GateError
Errors returned by crate::Gate::check.
GateValidationError
Validation error for gate wire types.
Obligation
Side-effects a policy may attach to an Allow decision.

Traits§

Gate
Authorization gate consulted before each verb dispatch.

Type Aliases§

GateRef
Shareable handle to a Gate impl.