pub struct ShieldConfig {Show 15 fields
pub block_threshold: f64,
pub warn_threshold: f64,
pub sql: SqlFirewallConfig,
pub ssrf: SsrfConfig,
pub rate: RateConfig,
pub quarantine: QuarantineConfig,
pub audit_max_events: usize,
pub email: EmailGuardConfig,
pub api_token: Option<String>,
pub tls_cert: Option<String>,
pub tls_key: Option<String>,
pub webhook_urls: Vec<WebhookConfig>,
pub ferrum_mail: Option<FerrumMailConfig>,
pub signature_update: Option<SignatureUpdateConfig>,
pub nexus_pulse: Option<NexusPulseConfig>,
}Expand description
Complete configuration for the Shield security engine.
Fields§
§block_threshold: f64Threat score threshold above which requests are blocked (0.0–1.0).
warn_threshold: f64Threat score threshold for logging warnings (0.0–1.0).
sql: SqlFirewallConfigSQL firewall configuration.
ssrf: SsrfConfigSSRF guard configuration.
rate: RateConfigRate limiting configuration.
quarantine: QuarantineConfigData quarantine configuration.
audit_max_events: usizeMaximum audit chain events to keep in memory before pruning.
email: EmailGuardConfigEmail guard configuration.
api_token: Option<String>API authentication token (if set, all sensitive endpoints require Bearer auth).
tls_cert: Option<String>TLS certificate path.
tls_key: Option<String>TLS private key path.
webhook_urls: Vec<WebhookConfig>Webhook alert URLs for critical/high detections.
ferrum_mail: Option<FerrumMailConfig>Ferrum-Mail integration.
signature_update: Option<SignatureUpdateConfig>Signature auto-update configuration.
nexus_pulse: Option<NexusPulseConfig>NexusPulse SMS alert integration.
Trait Implementations§
Source§impl Clone for ShieldConfig
impl Clone for ShieldConfig
Source§fn clone(&self) -> ShieldConfig
fn clone(&self) -> ShieldConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ShieldConfig
impl Debug for ShieldConfig
Source§impl Default for ShieldConfig
impl Default for ShieldConfig
Source§impl<'de> Deserialize<'de> for ShieldConfig
impl<'de> Deserialize<'de> for ShieldConfig
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 ShieldConfig
impl RefUnwindSafe for ShieldConfig
impl Send for ShieldConfig
impl Sync for ShieldConfig
impl Unpin for ShieldConfig
impl UnsafeUnpin for ShieldConfig
impl UnwindSafe for ShieldConfig
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