Access policy
Decide which user, agent or workload may call which model, tool or resource, and what data may flow back.
On this page
Access policy is the gateway’s authorization layer. The policy filter runs the policy engine in-process, on the request path: it verifies each caller’s identity, evaluates your policy document against the operation, and applies the result before the request reaches an upstream.
What it controls
- Identity: validate user, agent and workload tokens from separate headers and map their claims into attributes.
- Authorization: gate tool, prompt, resource and model calls by role, attribute, or a decision from Cedar, CEL or OPA. Unknown or ambiguous models fail closed by default.
- Delegation: mint audience-scoped upstream credentials with token exchange (RFC 8693).
- Data controls: apply session taint that outlives one call, request human approval, and emit an audit event per decision. Field mutators such as
redact()only take effect withbody_access: read_write; the defaultread_onlydiscards them. Even withread_write, they rewrite JSON-RPC tool, prompt and resource bodies, not inference request or response bodies.
Enable it
The filter is registered as policy and needs the policy-engine build feature; the default build includes it and its builtin plugins. Read the policy filter reference (Praxis v0.8.0) for configuration and filter ordering, then write a first policy (Praxis Policy Engine v0.7.0).
Common tasks:
- Authorize model routes (Praxis Policy Engine v0.7.0)
- Authorize HTTP routes (Praxis Policy Engine v0.7.0)
- Identity and token exchange (Praxis Policy Engine v0.7.0)
- Test policies (Praxis Policy Engine v0.7.0) and audit decisions (Praxis Policy Engine v0.7.0)
The policy language is documented in the reference section, starting with the language overview (Praxis Policy Engine v0.7.0).
The engine contract
Filters and extensions talk to the engine through a typed contract: the Common Message Format (Praxis Policy Engine v0.7.0), the assertions wire contract (Praxis Policy Engine v0.7.0) and capability-gated extensions (Praxis Policy Engine v0.7.0). You only need these pages to extend the gateway or embed the engine in another Rust host; they are listed under Extend.
Versions
The policy engine is versioned in its own repository (v0.7.0). The gateway pins the engine version it compiles in; the engine release shown on this site is selected independently and is not a tested combination with the gateway release shown alongside it.