Introducing a new way to review your PRs.

Read the announcement

bunkerity / bunkerweb

🛡️ Open-source and cloud-native Web Application Firewall (WAF)

View on GitHub

19 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

BunkerWeb knowledge base

BunkerWeb is a security-focused reverse proxy built around NGINX, Lua runtime logic, generated configuration, and modular core plugins.

Its operational services include the management API, web UI, CLI, Autoconf discovery service, and scheduler. Shared database and configuration facilities connect these services to the gateway runtime.

Deployment supports service containers, an all-in-one topology, and Linux packaging. Automated test infrastructure validates core features and supported environments.

flowchart TD
  Config[Service configuration] --> Autoconf[Autoconf service]
  Config --> API[Management API]
  UI[Web user interface] --> API
  CLI[Administration CLI] --> DB[(Shared database)]
  API --> DB
  Autoconf --> DB
  Scheduler[Scheduler jobs] --> DB
  DB --> Generator[Configuration generation]
  Generator --> Nginx[NGINX gateway]
  Nginx --> Lua[Lua runtime]
  Lua --> Core[Shared core and plugins]
  Core --> Security[Request security processing]
  Security --> Upstream[Proxied upstreams]
  Distribution[Distribution and deployment] --> Nginx
  Tests[Quality and validation] --> Distribution

Glossary

  • Autoconf: Service that discovers external platform configuration and feeds BunkerWeb configuration workflows.
  • Core plugin: A shared runtime module that contributes settings, templates, Lua behavior, or NGINX configuration.
  • All-in-one: Container topology that supervises and bundles multiple BunkerWeb services.
  • Scheduler: Service responsible for recurring maintenance and operational jobs.
  • Ban lease: Runtime coordination mechanism for applying and sharing temporary blocking decisions.

Codebase-wide invariants

  • Generated gateway configuration is the interface between service configuration and NGINX runtime behavior (src/common/gen/**, src/common/confs/nginx.conf).
  • Shared persistence is a dependency of management and orchestration services (src/…/Database.py, src/api/**, src/ui/**, src/autoconf/**).
  • Runtime security behavior is assembled from Lua handlers and shared core plugins (src/bw/lua/**, src/common/core/**).
  • Container entrypoints define service startup contracts (src/…/entrypoint.sh, src/all-in-one/Dockerfile).
  • Integration validation is driven by the Python harness and scenario definitions (tests/main.py, tests/…/*.yml).

Routing table