-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (50 loc) · 1.61 KB
/
Copy pathCargo.toml
File metadata and controls
62 lines (50 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "zentinel-agent-zentinelsec"
version = "0.2.0"
edition = "2021"
rust-version = "1.94.1"
authors = ["Zentinel Contributors"]
license = "Apache-2.0"
repository = "https://github.com/zentinelproxy/zentinel-agent-zentinelsec"
homepage = "https://zentinelproxy.io"
documentation = "https://zentinelproxy.io/docs/agents/zentinelsec"
description = "Pure Rust ModSecurity-compatible WAF agent for Zentinel - loads the stock OWASP CRS without C dependencies"
keywords = ["zentinel", "proxy", "agent", "waf", "modsecurity"]
categories = ["network-programming"]
readme = "README.md"
[lib]
name = "zentinel_agent_zentinelsec"
path = "src/lib.rs"
[[bin]]
name = "zentinel-zentinelsec-agent"
path = "src/main.rs"
[dependencies]
# Zentinel protocol
zentinel-agent-protocol = "0.6"
zentinel-common = "0.5"
# Pure Rust ModSecurity implementation
# >= 0.4.0 required: 0.3.0 and earlier deny every request under stock OWASP CRS,
# because CRS 920100 tests an unimplemented REQUEST_LINE with a negated regex.
# See zentinel-modsec#29.
zentinel-modsec = "0.4.0"
# Async runtime
tokio = { version = "1.40", features = ["full"] }
async-trait = "0.1"
# Glob pattern matching for rule files
glob = "0.3"
# Base64 decoding for body chunks
base64 = "0.22"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Command line
clap = { version = "4.5", features = ["derive", "env"] }
[dev-dependencies]
tempfile = "3.12"
uuid = { version = "1.10", features = ["v4"] }