Crate sentinel_agent_sentinelsec

Crate sentinel_agent_sentinelsec 

Source
Expand description

Sentinel SentinelSec Agent Library

A pure Rust ModSecurity-compatible WAF agent for Sentinel proxy. Provides full OWASP Core Rule Set (CRS) support without any C dependencies.

§Example

use sentinel_agent_sentinelsec::{SentinelSecAgent, SentinelSecConfig};
use sentinel_agent_protocol::AgentServer;

let config = SentinelSecConfig {
    rules_paths: vec!["/etc/modsecurity/crs/rules/*.conf".to_string()],
    ..Default::default()
};
let agent = SentinelSecAgent::new(config)?;
let server = AgentServer::new("sentinelsec", "/tmp/sentinelsec.sock", Box::new(agent));
server.run().await?;

Structs§

Detection
Detection result from SentinelSec
SentinelSecAgent
SentinelSec agent
SentinelSecConfig
SentinelSec configuration
SentinelSecConfigJson
JSON-serializable configuration for SentinelSec agent
SentinelSecEngine
SentinelSec engine wrapper