OxL Reference

type DynGate

The compiled policy Name { allow set if … } of a dynamic config: may caller change field at layer (global, zone:eu, …) to value?

Example:

oxl✓ checked in CI
dynamic Limits {
  rps: u32 = 100
}

// who may change `Limits`: only an operator service
policy Limits {
  allow set if caller.service("operator")
}
pub(api) type DynGate = fn(Principal, str, str, str) -> bool

Since. 1.0.0-beta

Defined in: std/core/dynconf.oxl:79

See also