Crate sentinel_agent_protocol

Crate sentinel_agent_protocol 

Source
Expand description

Agent protocol for Sentinel proxy

This module defines the protocol for communication between the proxy dataplane and external processing agents (WAF, auth, rate limiting, custom logic).

The protocol is inspired by SPOE (Stream Processing Offload Engine) and Envoy’s ext_proc, designed for bounded, predictable behavior with strong failure isolation.

Structs§

AgentClient
Agent client for communicating with external agents
AgentRequest
Agent request message
AgentResponse
Agent response message
AgentServer
Agent server for testing and reference implementations
AuditMetadata
Audit metadata from agent
DenylistAgent
Reference implementation: Denylist agent
EchoAgent
Reference implementation: Echo agent (for testing)
RequestBodyChunkEvent
Request body chunk event
RequestCompleteEvent
Request complete event (for logging/audit)
RequestHeadersEvent
Request headers event
RequestMetadata
Request metadata sent to agents
ResponseBodyChunkEvent
Response body chunk event
ResponseHeadersEvent
Response headers event

Enums§

AgentProtocolError
Agent protocol errors
Decision
Agent decision
EventType
Agent event type
HeaderOp
Header modification operation

Constants§

MAX_MESSAGE_SIZE
Maximum message size (10MB)
PROTOCOL_VERSION
Agent protocol version

Traits§

AgentHandler
Trait for implementing agent logic