Expand description
Built-in policy templates for bootstrapping access control
Templates provide pre-configured policy rules that can be applied via CLI or PolicyService RPC.
Also defines SERVICE_BASE_POLICIES — mandatory service-to-service
authorization rules that are always injected into the Casbin enforcer.
Structs§
- Policy
Template - Built-in policy template
- Service
Grouping - A role grouping rule.
- Service
Policy Rule - A single Casbin policy rule with named fields.
Constants§
- SERVICE_
BASE_ POLICIES - Base service-to-service authorization rules.
Functions§
- base_
policies_ to_ csv - Convert structured base policies to a CSV string (for default_policy_csv only).
- base_
policies_ to_ vec - Convert structured base policies to the Vec<Vec
> Casbin expects. - get_
template - Get a template by name
- get_
templates - Get all available policy templates.