Skip to main content

Module policy

Module policy 

Source
Expand description

Policy evaluation framework for Code Mode.

This module provides a trait-based abstraction for policy evaluation, allowing different backends (AVP, local Cedar, etc.) to be used interchangeably.

§Important

The NoopPolicyEvaluator is provided for testing and local development only. Production servers MUST implement PolicyEvaluator with a real authorization backend.

Re-exports§

pub use types::*;

Modules§

cedar
Local Cedar policy evaluator.
types
Domain types for policy evaluation.

Structs§

NoopPolicyEvaluator
Always-allow policy evaluator for testing and local development ONLY.

Enums§

PolicyEvaluationError
Error type for policy evaluation.

Traits§

PolicyEvaluator
Trait for policy evaluation backends.