Skip to content
Projets

À propos

Nerve WAF - 基于 Rust 的高性能 Web 应用防火墙

Sécurité

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Nerve WAF

L7 Web Application Firewall — inspection engine, control API, and L7 agent dataplane.

License: MIT Version Repo

Nerve WAF 对 HTTP/S 流量做规范化与规则检测(CRS / 自定义 / 可选 Expert 引擎),并提供策略与快照下发。
crate:nerve-waf-*(本仓库独立发版;检测引擎子产品见 Nerve Antibody)

架构总览(建议先读): docs/what-is-waf.md → capabilities.md → how-it-works.md → architecture-overview.md

组件

组件 端口 二进制
Controller(控制面) 9000 nerve-waf-controller
Agent(数据面) 9080 nerve-waf-agent
Console(可选) 9090 nerve-waf-console

环境要求

依赖 版本
PostgreSQL 14+(推荐 16)
Docker + Compose 24+ / Compose v2(容器路径)
Rust 1.92(rust-toolchain.toml,源码路径)
Kubernetes + Helm 1.24+ / Helm 3+(K8s 路径)

安装怎么选?

                    ┌─ PoC / 本地 ──► deploy/scripts/up.sh (Compose)
                    │
  我要装 Nerve WAF ─┼─ 开发调试 ──► scripts/start-waf.sh (源码三进程)
                    │
                    ├─ K8s 生产 ──► deploy/helm/nerve-waf (Controller+Agent)
                    │
                    └─ 已有镜像 ──► docker-compose.prebuilt.yml + DATABASE_URL
你的场景 文档
第一次安装 docs/installation.md
装完验证 docs/getting-started.md + scripts/smoke-test.sh
K8s HA / Agent 选型 docs/ha-deployment.md
产品边界 docs/concepts/boundaries.md

快速开始(Docker 一键安装)

git clone <your-repo-url> nerve-waf
cd nerve-waf/deploy
bash install.sh          # 依赖自检 → 生成 .env → 构建启动 → 等健康 → 冒烟验证

安装脚本会自动判断是否带 Console UI:找不到 Nerve-ui 时自动降级为 standalone(仅 Controller + Agent),不会中断。

bash install.sh --standalone   # 强制无 Console
bash install.sh --no-build     # 复用已有镜像
bash install.sh --skip-smoke   # 跳过冒烟
bash install.sh --down         # 停止并清理容器

Windows:powershell -ExecutionPolicy Bypass -File install.ps1(经 WSL 执行)。

需要 Console UI 时先指定前端源码目录:

NERVE_UI_DIR=/path/to/Nerve-ui bash install.sh

文档

文档 说明
docs/README.md 文档索引
docs/architecture-overview.md 架构(控制/数据面、同步、故障域)
docs/installation.md 安装方式
docs/api.md · openapi.yaml API
docs/security-model.md 安全模型
deploy/helm/nerve-waf/README.md Helm
CHANGELOG.md · UPGRADING.md 版本

发布物

类型 坐标
OCI 镜像 ghcr.io/aha-iii/waf:1.0.0(tag nerve-waf-v1.0.0)
Helm Chart deploy/helm/nerve-waf/

发版流程:RELEASE.md

社区

License

MIT

Explorer des projets similaires

Chargement…