policy
Module: policy
Section titled “Module: policy”Contents
Section titled “Contents”Structs
PolicyBundle- Policy bundle containing Cedar policies and entity schema.
firma_core::policy::PolicyBundle
Section titled “firma_core::policy::PolicyBundle”Struct
Policy bundle containing Cedar policies and entity schema.
Created by the Authority when loading policies from disk, and distributed
to Sidecars via WatchPolicyBundle streaming. The version field is a
hex-encoded SHA-256 hash of the concatenated policy + schema bytes,
enabling cheap equality checks for deduplication.
Fields:
version: String- Bundle version identifier (hex SHA-256 of policies + schema).policies: Vec<u8>- Raw Cedar policy source (concatenated.cedarfiles).entity_schema: Vec<u8>- Raw Cedar entity schema bytes.ttl_seconds: u32- Time-to-live in seconds. Sidecars enter fail-closed when stale.
Methods:
fn new(version: String, policies: Vec<u8>, entity_schema: Vec<u8>, ttl_seconds: u32) -> Self- Create a newPolicyBundle.
Trait Implementations:
- Clone
fn clone(self: &Self) -> Self
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result