Skip to main content

Module policy

Module policy 

Source
Expand description

Engine-side policy enforcement. Wraps reifydb-policy’s evaluators with the call-sites the VM needs: write policy at commit boundaries, identity policy at session start, callable policy when invoking a routine. Read policy is injected into the plan before execution; this module handles the cases where injection isn’t enough and the engine has to actively gate an operation.

Anything that mutates state or transitions a session goes through these enforce calls. Bypassing them - even for a “trusted” code path inside the engine - means the matching policy never runs.

Structs§

PolicyEvaluator