CheeseWAF

Self-hosted Web Application Firewall with a single-binary data plane, management console, and asynchronous threat review.

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.

Choose a path

Start with the task you need to complete:

Install, initialize the console, verify the service, and protect one test site.

Install with the one-line installer or a verified archive, then run as a systemd service.

Run an isolated evaluation or compose-based deployment with explicit port and data mounts.

Five-minute path

  1. Prepare a supported Linux host with sudo, enough disk for the release and runtime data, and an administration path to port 9443.
  2. Run the official one-line installer. It downloads and verifies the latest stable release, installs the systemd service when available, and prints the HTTPS setup URL. Follow the verified archive path in the Linux guide when the host has no outbound access.
  3. Open the printed HTTPS URL, create the first administrator, and keep the one-time token out of tickets, screenshots, shell history, and logs.
  4. Follow Quick Start to add a test site before changing production DNS.

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.

What CheeseWAF provides

  • Data plane: reverse proxying, request normalization, AST-based semantic inspection, ACLs, IP and fingerprint controls, rate limiting, and bot challenges.
  • Management plane: Web Console, REST API, CLI/TUI workflows, setup wizard, RBAC, audit records, and operational health endpoints.
  • Asynchronous review: optional ALAP review for ambiguous samples. The review queue is out of band; it must not be treated as the inline enforcement path.
  • Storage choices: the default 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.
  • Adapters and plugins: adapterd integrates existing gateways; CRP packages provide signed offline resources. Review Plugins & CRP before enabling third-party packages.
  • Air-gapped operation: release archives, checksums, signed resources, and local runtime data can be managed without making the data plane depend on an external model.

Default network boundaries

Plane / serviceDefault addressPurpose
Data planehttp://127.0.0.1:8080Business traffic inspection and reverse proxying
Management planehttps://PUBLIC_IP:9443/setup → https://PUBLIC_IP:9443/SECURITY_ENTRYFirst 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 planehttps://127.0.0.1:9444Optional mTLS node interconnect when clustering is enabled
Local controllerhttp://127.0.0.1:17943Desktop 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.

Continue

Understand the request lifecycle, management boundaries, storage profiles, and enforcement order.

Configure semantic inspection, ACLs, IP controls, challenges, and rate limits.

Connect NGINX or Envoy through the authenticated adapter contract.

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.

Deployment & Installation

Choose a CheeseWAF deployment path, prepare the host, and verify the first running service.

Quick Start Guide

Install, initialize, verify, and protect one test site before moving to production.

Core Concepts

In-depth exploration of the request processing lifecycle, paranoia level evaluation, payload isolation mechanisms, and unified access control.

Site Management & Reverse Proxy

Configure host domains, upstream load balancing algorithms (round_robin/weighted/ip_hash/least_conn), active health checks, and per-site protection policies.

Gateway Adapters

Go-first self-hosted gateway adapters for NGINX, Envoy, and Kubernetes, decoupling protocol translation from the core detection engine.

Security Protection Policies

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.

API Security & Governance

Automated API asset discovery, request schema structure validation, JWT/JWKS authentication, route-level rate limiting, and RBAC policies.

Edge Optimization: Headers, Caching & Compression

Edge HTTP header rewriting, static resource proxy caching, and Brotli/Gzip response payload compression.

TLS & Certificate Management

Management plane TLS encryption, business site HTTPS certificate configuration, ACME automated issuance, HTTP/3, and HSTS policies.

ALAP Asynchronous Review & Self-Learning

Asynchronous LLM threat review queue, automated rule adoption with fail-closed guarantees, AI assistant tool approvals, and self-learning analytics.

Plugins & CRP Specification

CheeseSec plugin distribution model, CRP v1 offline resource package format, Ed25519 signature verification, staging lifecycle, and extension boundaries.

Observability, Logging & Threat Attack Map

Access log rotation, Prometheus metrics and Remote Write protobuf streaming, alerts, and 100% offline air-gapped threat attack maps.

High Availability & Cluster Federation

Node join tokens, mutual TLS (mTLS) health and heartbeat interconnects, external consensus coordination, Ansible orchestration, and CLI cluster management.

Storage & Scheduler Architecture

Embedded SQLite management storage, optional external log sinks, encrypted diagnostics, and scheduler maintenance.

Web Management Console

Modern React-based single-page management console navigation, module routing matrix, and security mechanisms.

Standalone Control Runtime

Public command parameters, local status endpoints, and current limits of the standalone cheesewaf-control process.

Command-Line Interface & Interactive TUI

Unified single-binary CLI distribution for cheesewaf and waf-cli, global flags, subcommand reference, and terminal UI operations.

RESTful Management API Reference

Management API authentication mechanics, public and bootstrap endpoint inventory, granular RBAC permission matrix, and standard error formats.

Configuration File Reference

Complete structure navigation for cheesewaf.yaml, top-level key index, timeout controls, and hot-reload scopes.

Operations & Security Hardening

User administration, TOTP two-factor authentication (2FA), NTP time synchronization, update capability status, and supply chain signature verification.

Building from Source & Developer Guide

Go and Node.js toolchain requirements, compiling frontend and backend assets, running automated test suites, and regression testing with attack corpora.

Open-Source License & Ecosystem Repositories

Apache License 2.0 open-source licensing terms, trademark usage notice, and ecosystem repository directory.

Feedback & Security Reporting

Communication channels and procedures for issue reporting, feature suggestions, and critical security disclosures.

Words from the Developer

Design motivations, engineering philosophy, and personal reflections from the creator and core developer of CheeseWAF.