Architecture & Working Principles
Understand the division of labor between the Data Plane and asynchronous ALAP review, the out-of-band analysis model, and single-binary packaging.
CheeseWAF is a self-hosted reverse-proxy WAF. It keeps deterministic request inspection on the data plane and runs optional model-assisted review out of band, so an external model is never required to serve normal traffic.
The shortest supported path is: run the official Linux installer, open the HTTPS setup URL it prints, complete /setup, and onboard one test site. Downloads prefer the official source, with GitHub as a backup for failed downloads; checksum or signature failures stop installation. See the Linux guide for the command and backup entry. The Apache License 2.0 is available in the source repository.
Start with the task you need to complete:
sudo, enough disk for the release and runtime data, and an administration path to port 9443.The installer creates a dedicated cheesewaf system user, copies the Web Console assets, installs the runtime configuration only when it does not already exist, enables HTTPS on the management listener, and places the systemd unit under /etc/systemd/system by default. It does not replace an existing configuration.
temporary profile uses the local runtime store. Production deployments must explicitly provide the required external storage and must fail closed instead of silently falling back.| Plane / service | Default address | Purpose |
|---|---|---|
| Data plane | http://127.0.0.1:8080 | Business traffic inspection and reverse proxying |
| Management plane | https://PUBLIC_IP:9443/setup → https://PUBLIC_IP:9443/SECURITY_ENTRY | First setup uses a fixed /setup path with a one-time token; after setup, the generated security entry signs an access Cookie and redirects to login |
| Cluster plane | https://127.0.0.1:9444 | Optional mTLS node interconnect when clustering is enabled |
| Local controller | http://127.0.0.1:17943 | Desktop helper controller for Windows and macOS |
The one-line installer binds the management listener on all interfaces, enables HTTPS, and gates first setup with a one-time token and a generated security entry. Restrict port 9443 to trusted administration networks before exposing it. The shipped configuration template and the setup wizard default to 0.0.0.0:9443 with server.admin_public: true. A configuration that omits the server keys falls back to the loader default 127.0.0.1:9443. A public listener still requires management TLS, a valid certificate, and an external access policy. Do not expose /setup or the management port to the Internet as a substitute for those controls.
Understand the division of labor between the Data Plane and asynchronous ALAP review, the out-of-band analysis model, and single-binary packaging.
Choose a CheeseWAF deployment path, prepare the host, and verify the first running service.
Install, initialize, verify, and protect one test site before moving to production.
In-depth exploration of the request processing lifecycle, paranoia level evaluation, payload isolation mechanisms, and unified access control.
Configure host domains, upstream load balancing algorithms (round_robin/weighted/ip_hash/least_conn), active health checks, and per-site protection policies.
Go-first self-hosted gateway adapters for NGINX, Envoy, and Kubernetes, decoupling protocol translation from the core detection engine.
Complete guide to the AST semantic engine, custom regex rules, IP/GeoIP filtering, bot challenges, sharded sliding-window counter rate limits, ACLs, and block pages.
Automated API asset discovery, request schema structure validation, JWT/JWKS authentication, route-level rate limiting, and RBAC policies.
Edge HTTP header rewriting, static resource proxy caching, and Brotli/Gzip response payload compression.
Management plane TLS encryption, business site HTTPS certificate configuration, ACME automated issuance, HTTP/3, and HSTS policies.
Asynchronous LLM threat review queue, automated rule adoption with fail-closed guarantees, AI assistant tool approvals, and self-learning analytics.
CheeseSec plugin distribution model, CRP v1 offline resource package format, Ed25519 signature verification, staging lifecycle, and extension boundaries.
Access log rotation, Prometheus metrics and Remote Write protobuf streaming, alerts, and 100% offline air-gapped threat attack maps.
Node join tokens, mutual TLS (mTLS) health and heartbeat interconnects, external consensus coordination, Ansible orchestration, and CLI cluster management.
Embedded SQLite management storage, optional external log sinks, encrypted diagnostics, and scheduler maintenance.
Modern React-based single-page management console navigation, module routing matrix, and security mechanisms.
Public command parameters, local status endpoints, and current limits of the standalone cheesewaf-control process.
Unified single-binary CLI distribution for cheesewaf and waf-cli, global flags, subcommand reference, and terminal UI operations.
Management API authentication mechanics, public and bootstrap endpoint inventory, granular RBAC permission matrix, and standard error formats.
Complete structure navigation for cheesewaf.yaml, top-level key index, timeout controls, and hot-reload scopes.
User administration, TOTP two-factor authentication (2FA), NTP time synchronization, update capability status, and supply chain signature verification.
Go and Node.js toolchain requirements, compiling frontend and backend assets, running automated test suites, and regression testing with attack corpora.
Apache License 2.0 open-source licensing terms, trademark usage notice, and ecosystem repository directory.
Communication channels and procedures for issue reporting, feature suggestions, and critical security disclosures.
Design motivations, engineering philosophy, and personal reflections from the creator and core developer of CheeseWAF.