pub struct GlobalConfig {
pub policies: HashMap<String, PolicyGroup>,
pub defaults: HashMap<String, PolicyGroup>,
pub identity: Option<RouteIdentityConfig>,
}Expand description
Global configuration — applies across all routes.
Only used when routing is enabled. Contains named policy groups
(including the reserved all group) and per-entity-type defaults.
Fields§
§policies: HashMap<String, PolicyGroup>Named policy groups. The reserved name all is applied to
every request unconditionally. Other groups are inherited
by routes via meta.tags.
defaults: HashMap<String, PolicyGroup>Per-entity-type default policy groups.
Keys are tool, resource, prompt, llm.
identity: Option<RouteIdentityConfig>Global authentication dispatch list (YAML key authentication:).
Inherited by every route as the first layer of identity
resolution. Routes can append to it (additive, the default) or
replace it (with authentication.replace_inherited: true on the
route).
Same YAML shape as the route-level authentication: block — see
RouteEntry.identity for the accepted forms.
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more