Skip to content

Tlapiani

An open-source web application firewall module for Caddy, in pure Go.

Tlapiani is a web application firewall (WAF) module for Caddy. It inspects HTTP requests before they reach your upstream. It is open source under Apache-2.0.

Tlapiani means “guardian” in Náhuatl.

Tlapiani is for Caddy and DevOps users who want request filtering inside the Caddy binary. Coraza runs in-process. T1K mode still needs a separate SafeLine detector. There is no admin panel in the current phase, no telemetry, and no phone-home.

Phase 0 is the current draft state of the module (draft PR #1). It provides:

  • A single Caddy handler that can run Coraza with the embedded OWASP CRS, a T1K/SafeLine client, or both.
  • A fixed engine order: Coraza request phases first, then T1K.
  • Two modes: detect_only and block.
  • JSONL decision logs and Prometheus metrics.

See Phase 0 for the full list, including limitations.

The semantic engine, the web panel, signed CVE rules, API protection, bot defense, and deep CDN integration are all roadmap items. Nothing in those areas exists in the module today. See Roadmap for details.

The Caddyfile directive is currently wafx. It will be renamed in a later release. The module identifier is http.handlers.wafx.

Repository: github.com/liusc45/tlapiani (formerly caddy-wafx).