pub struct ControlPlaneCfg {
pub enabled: bool,
pub url: String,
pub tenant_id: String,
pub edge_token: String,
pub poll_interval: String,
pub report_interval: String,
pub forward_csp: bool,
}Expand description
Managed-mode settings: when enabled, the edge pulls its policy from a remote control plane
(and hot-reloads it), reports usage deltas, and forwards CSP reports. The policy the control
plane pushes is the policy subset (auth/ratelimit/validation/headers/waf) — the edge keeps
its own local server/tls. The edge token is a secret, so prefer EDGEGUARD_CP_EDGE_TOKEN.
Fields§
§enabled: bool§url: StringBase URL of the control plane, e.g. https://cp.example.
tenant_id: StringThis edge’s tenant id at the control plane.
edge_token: StringPer-tenant edge token (Bearer). Prefer EDGEGUARD_CP_EDGE_TOKEN.
poll_interval: StringHow often to poll for policy, e.g. "30s".
report_interval: StringHow often to flush a usage delta, e.g. "60s".
forward_csp: boolForward received CSP reports to the control plane (default true).
Trait Implementations§
Source§impl Clone for ControlPlaneCfg
impl Clone for ControlPlaneCfg
Source§fn clone(&self) -> ControlPlaneCfg
fn clone(&self) -> ControlPlaneCfg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlPlaneCfg
impl Debug for ControlPlaneCfg
Source§impl Default for ControlPlaneCfg
impl Default for ControlPlaneCfg
Source§impl<'de> Deserialize<'de> for ControlPlaneCfgwhere
ControlPlaneCfg: Default,
impl<'de> Deserialize<'de> for ControlPlaneCfgwhere
ControlPlaneCfg: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ControlPlaneCfg
impl RefUnwindSafe for ControlPlaneCfg
impl Send for ControlPlaneCfg
impl Sync for ControlPlaneCfg
impl Unpin for ControlPlaneCfg
impl UnsafeUnpin for ControlPlaneCfg
impl UnwindSafe for ControlPlaneCfg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more