Skip to main content

SERVICE_BASE_POLICIES

Constant SERVICE_BASE_POLICIES 

Source
pub const SERVICE_BASE_POLICIES: &[ServicePolicyRule];
Expand description

Base service-to-service authorization rules.

These rules are ALWAYS present in the Casbin enforcer — injected at init and re-injected after every reload. They grant each local service the permissions it needs to operate. Templates and user-facing rules are added ON TOP of these rules, never replacing them.

Because they’re structured Rust data, field count/order is compile-time validated. No CSV parsing needed.