Expand description
Native TrustForge policy engine — Rust mirror of
tools/tf-types-ts/src/core/policy-engine.ts.
Structs§
Traits§
- Policy
Engine Impl - A pluggable policy engine. Implemented by the native engine, the
tf-cedarcrate, and thetf-regocrate. Decoupling via a trait (rather than a feature-gated dependency on the adapter crates) letstf-typesstay lightweight while still letting the daemon dispatch the right engine for a givenengine_hint.
Functions§
- evaluate_
with_ engine - Dispatch a
PolicyQueryto the appropriate backend based onengine_hint. Pass an explicit backend for the hints that need one;nativefalls back to the supplied native engine. When the requested hint has no backend wired in (e.g. caller didn’t construct a Cedar engine yet) the dispatcher returns a safe deny.