Traefik Warden Changelog & Release Notes
All notable changes to the Traefik Warden plugin (github.com/routewarden/traefik-warden) are documented here.
The format is based on Keep a Changelog, and Traefik Warden adheres to Semantic Versioning.
[v1.8.0] - 2026-10-30 (Latest)
Added
- AI Bot & Web Crawler Defense:
- Added native detection and blocking of automated LLM scrapers and AI crawlers (
blockAIBots/block_ai_botssetting). - Built-in multi-tier AI bot registry with profiles:
train_only(default: blocks mass training harvesters likeGPTBot,ClaudeBot,Bytespider,CCBot),all(blocks all training and search bots includingPerplexityBotandOAI-SearchBot),aggressive(blocks aggressive crawlers like Bytespider), andcustom(aiBotProfilesetting). - Added custom User-Agent pattern blocking via
blockUserAgentsand allowlisting viaallowUserAgents.
- Added native detection and blocking of automated LLM scrapers and AI crawlers (
- Negative ASN Filtering (
blockedASNs):- Added support for blocking client IP addresses originating from hostile Autonomous Systems or scraping clouds via
blockedASNs/blocked_asns(e.g. ByteDanceAS138699, DigitalOceanAS14061) using local offline routing snapshot (asnDB).
- Added support for blocking client IP addresses originating from hostile Autonomous Systems or scraping clouds via
- Active Deception Response Modes (
aiPoison&markovTarpit):- Added
mode: "aiPoison": Serves HTTP 200 withX-Robots-Tag: noindex, nofollow, noaiand adversarial system prompt injection directives, neutralizing data poisoning into RAG and model training pipelines. - Added
mode: "markovTarpit": Continuously streams pseudo-coherent Markov text tokens at configured delays (tarpitDelayMs), exhausting scraper worker capacity and token context windows.
- Added
- Honeypot Spider Traps & In-Memory IP Ban Table:
- Added
honeypotTrapPathsto designate invisible honeypot routes in web templates. - Added zero-dependency, Yaegi-compliant thread-safe bounded in-memory sliding-window IP ban table: any crawler accessing a honeypot path is banned for
trapBanDuration(default:24h), automatically rejecting subsequent requests.
- Added
- Search Engine Impersonator Verification via FCrDNS (
verifySearchEngineBots):- Added Forward-Confirmed Reverse DNS verification setting
verifySearchEngineBots/verify_search_engine_bots. - Performs reverse DNS PTR lookups and forward IP cross-validation for crawlers presenting Googlebot, bingbot, or Applebot User-Agents against authorized domain suffixes (
.googlebot.com,.google.com,.search.msn.com,.applebot.apple.com). - Includes a zero-dependency, 100% Yaegi-compliant in-memory cache with 6-hour TTL (up to 10,000 entries) and 500ms timeout.
- Allows verified search engine spiders through to upstream services while instantly blocking spoofed bots (
search_engine_spoofed).
- Added Forward-Confirmed Reverse DNS verification setting
- Browser Impersonation Detection (
detectBrowserImpersonation):- Added
detectBrowserImpersonation/detect_browser_impersonationoption to detect and block bots disguising themselves with desktop/mobile browser User-Agents. - Cross-validates Client Hints (
Sec-CH-UA-Platformmatching OS in User-Agent,Sec-CH-UA-Mobileform factor consistency,Sec-CH-UApresence on modern Chromium $\ge 89$, and brand integrity), Chromium Fetch Metadata (Sec-Fetch-Site,Sec-Fetch-Mode,Sec-Fetch-Dest), and mandatory companion headers (Accept-Language,Accept-Encoding).
- Added
- Script Client & Headless Automation Blocking (
blockScriptClients):- Added
blockScriptClients/block_script_clientsoption to block requests originating from programmatic HTTP client libraries (Pythonrequests,urllib,aiohttp,httpx,Scrapy,curl-cffi,mechanize, PHPGuzzle, Rustreqwest, Nodeaxios,node-fetch,undici, GoGo-http-client, JavaOkHttp,curl,wget) and headless automation frameworks (X-Playwright,X-Puppeteer,X-Selenium,X-Cypress,X-Headless-Chrome,X-Automation,Sec-WebDriver).
- Added
- Edge robots.txt Dynamic Honeypot Injection (
enableRobotsTxtHoneypot):- Dynamically injects daily rotating
Disallow: /_rw_trap_<token>/entries into/robots.txtwith HMAC-SHA256 tokens and UTC day rollover tolerance. - Synthesizes 200 OK
robots.txtresponses when origin returns 404, trapping non-compliant crawlers intoBanTable.
- Dynamically injects daily rotating
- 10-Engine Global FCrDNS Verification (
verifySearchEngineBots):- Expanded search engine verification to 10 global engines: Google, Bing, Apple, Yandex, Baidu, DuckDuckGo, Yahoo, Naver, Sogou, and Mojeek.
- Chromium GREASE & Header Order Anomaly Detection (
detectBrowserImpersonation):- Validates Chromium GREASE brand presence (
missing_grease_brand) and detects HTTP header order anomalies (header_order_anomaly).
- Validates Chromium GREASE brand presence (
- Datacenter & Cloud Hosting IP Classification (
blockCloudHosts):- Identifies and blocks requests from major cloud infrastructure (AWS, GCP, Azure, Hetzner, DigitalOcean, OVH, Linode, Oracle, ByteDance), emitting
datacenter_browser_impersonationorcloud_host_blockedwith FCrDNS exemptions for legitimate search crawlers.
- Identifies and blocks requests from major cloud infrastructure (AWS, GCP, Azure, Hetzner, DigitalOcean, OVH, Linode, Oracle, ByteDance), emitting
- Cryptographic Proof-of-Work Challenge Mode (
powChallenge):- Added zero-dependency client-side Hashcash challenge solver (<2KB inline HTML/JS using Web Crypto
crypto.subtle) returning HTTP 429. - $O(1)$ stateless token verification via normalized client IP binding and HMAC-SHA256 signatures (
powDifficulty,powSecret,powTimeoutSeconds). - Solved
rw_powcookie orX-RouteWarden-PoWbypasses bot inspection while keeping honeypot traps and hard IP bans immutable.
- Added zero-dependency client-side Hashcash challenge solver (<2KB inline HTML/JS using Web Crypto
[v1.7.0] - 2026-10-27
Added
- Offline ASN-Based Allowlisting (
allowedASNs/asnDB):- Added support for Autonomous System Number (ASN) based allowlisting using an offline, in-memory JSON routing snapshot (
asnDB), eliminating runtime DNS and external HTTP dependencies. - Supports standard string-formatted ASN identifiers such as
"64500"or"AS64500"(case-insensitive). - Implements in-memory longest-prefix matching across IPv4 and IPv6 routing tables, including dual-stack support and IPv4-mapped IPv6 client addresses (
::ffff:x.x.x.x). - Preserves hierarchical routing boundaries: more specific prefixes owned by another ASN never inherit an allowed parent's bypass. Conflicting origins for the exact same prefix are rejected during snapshot validation.
- Non-matching client IPs continue through standard security inspection without rejection; matching client IPs bypass inspection identical to
allowedIps. - Added strict peer IP resolution: client-supplied ASN headers (e.g.
CF-Connecting-ASN) are never trusted. Evaluates direct socket peer IP unlesstrustedProxies/trusted_proxiesare explicitly configured. - Bundled database compilation utility
scripts/build-asn-db.pyto convert MaxMind GeoLite2/GeoIP2 ASN Blocks CSV files into optimized JSON routing snapshots. - Added cross-engine configuration alias support: accepts both camelCase (
allowedASNs,asnDB) and snake_case (allowed_asns,asn_db) via sharedconfigFile(routewarden.json) policies.
- Added support for Autonomous System Number (ASN) based allowlisting using an offline, in-memory JSON routing snapshot (
Fixed & Enhanced
- IPv6 Scope & Zone Index Stripping:
- Automatically strip zone identifiers (
%interface, e.g.%eth0) from client IPv6 addresses before parsing inASNFilter.LookupandIPFilter. Preventsnet.ParseIPevaluation failures on scoped link-local and dual-stack socket addresses.
- Automatically strip zone identifiers (
- Response Handler Normalization & Status Code Fallbacks:
- Synchronized response status code fallback and mode handling across all 13 response modes, ensuring consistent status codes and headers in
ServeBlockedRequest. - Hardened silent drop connection termination and custom response text delivery.
- Synchronized response status code fallback and mode handling across all 13 response modes, ensuring consistent status codes and headers in
- AI Bot & Crawler Defense Architecture:
- Published comprehensive AI bot mitigation guide covering active tarpits, gzip bomb counters, and ASN filtering against automated LLM training scrapers (
GPTBot,ClaudeBot,Bytespider,CCBot).
- Published comprehensive AI bot mitigation guide covering active tarpits, gzip bomb counters, and ASN filtering against automated LLM training scrapers (
- Test Suite Hardening:
- Added unit test coverage for IPv6 zone handling, response mode fallbacks, Yaegi interpreter compliance, and path normalizer edge cases.
[v1.6.0] - 2026-10-20
Security
- Critical Fix: Matrix Parameter Allowlist Bypass (
/.env;robots.txt):- Fixed an issue in
ExtractCandidatePathswhere semicolon matrix parameters (e.g.;robots.txt,;sitemap.xml,;.well-known) were extracted as standalone root candidate paths (/robots.txt). BecauseAllowPatternsevaluates beforeBlockPatterns, this enabled attackers to bypass blocking on sensitive files (/.env,/backup.sql,/.git) simply by appending;robots.txt. - Removed synthetic parameter-to-path generation while preserving matrix parameter stripping (
matrixStripped) and semicolon slash normalization (semiAsSlash), ensuring all sensitive patterns inside or outside matrix segments are blocked.
- Fixed an issue in
Added
- Wildcard HTTP Methods Matching (
*andALL):- Added native support for
methods: ["*"]andmethods: ["ALL"]inConfigandServeHTTP. Operators can now inspect all HTTP methods across all endpoints without needing to list every verb explicitly.
- Added native support for
- Automatic Method Expansion on Request Body Inspection (
checkBody):- When
checkBody: trueorcheckBodyPatternsis configured andmethodswas left to its default["GET"], Routewarden now automatically expands inspected methods to includePOST,PUT, andPATCH. Prevents the silent configuration trap where request bodies submitted via mutation verbs were bypassed.
- When
- Flexible Snake_Case Support in
CaptchaConfig:- Added
UnmarshalJSONtoCaptchaConfigenabling transparent parsing of standardsite_key(snake_case) fromroutewarden.jsonand YAML dynamic configurations.
- Added
- Fractional & Floating Point Gzip Bomb Sizes (
gzipBombMB):- Added floating-point support for
gzipBombMB(e.g.gzipBombMB: 0.5for a 512KB payload) inResponseConfig, allowing fine-grained control over bomb sizes in memory-constrained environments.
- Added floating-point support for
[v1.5.1] - 2026-10-19
Fixed
- Gzip Decompression Bomb (
gzipBomb/bomb) Status Code Default:- Fixed
gzipBombmode defaulting to403 Forbiddeninstead of200 OKwhenstatusCodeis omitted. Web vulnerability scanners and crawlers typically discard response bodies on4xxerror codes without decompressing; an enticing200 OKheader forces the scanner's decompression stream to inflate the bomb in memory. - Explicit user-configured
statusCodevalues (e.g.403,418,404) remain respected when provided. - Added safe fallback in
ServeBlockedRequestensuringhttp.StatusOKis written ifstatusCodeevaluates to0.
- Fixed
- Configuration File Merging & Schema Parity (
configFile):- Fixed an issue where
CreateConfig()non-zero defaults (statusCode: 403,methods: ["GET"],securityLog: true,mode: "text") clobbered custom settings loaded fromroutewarden.json. - Added full dual-tag schema support (
sharedConfigFile) for standardsnake_caseJSON properties (status_code,block_patterns,allowed_ips,trusted_proxies,check_query, etc.), ensuring complete cross-engine compatibility with Caddy, NGINX, and CLI configurations.
- Fixed an issue where
- Case-Insensitive Captcha Mode Template Compilation:
- Fixed case-sensitive comparison (
respCfg.Mode == "captcha") inNewResponseHandler, ensuringmode: "Captcha"and"CAPTCHA"properly initialize the challenge template instead of falling back to raw plaintext. - Standardized captcha fallback body to render a valid HTML document conforming to
Content-Type: text/html.
- Fixed case-sensitive comparison (
[v1.5.0] - 2026-10-16
Key Highlights
- File-Based Configuration (
configFile):- Added new
configFilefield toConfig. When set, Routewarden loads the specifiedroutewarden.jsonas the base configuration at startup. - Inline
traefik.yml/ Docker label values take precedence over the file, enabling a shared policy file with per-service overrides. - Empty/omitted inline slices defer to the file so
blockPatternsfrom the file are preserved when only overridingresponse.mode. - Missing or malformed files cause an immediate startup error with a descriptive message — no silent fallback to defaults.
- Added 6 new unit tests covering: file-only load, inline override, missing file error, malformed JSON error, pattern merge from file, and empty-path no-op.
- Added new
[v1.4.2] - 2026-10-09
Key Highlights
- Traefik Catalog Archive Integrity & Fresh Checksum Release:
- Published clean SemVer patch release
v1.4.2to resolve the immutable hash mismatch on Traefik Plugin Catalog (plugins.traefik.io), preventingplugin integrity check failederrors when installing from the catalog.
- Published clean SemVer patch release
- Local & Offline Plugin Installation (
/plugins-local):- Added comprehensive documentation and production deployment guides for running Routewarden as a local Traefik plugin via
--experimental.localpluginsand volume mounting to/plugins-local/src/github.com/routewarden/traefik-warden, enabling zero-network air-gapped and enterprise usage.
- Added comprehensive documentation and production deployment guides for running Routewarden as a local Traefik plugin via
- Documentation & Configuration Parity:
- Updated configuration tables with full documentation for
trustedProxies,checkHeaders,checkBody,checkBodyMaxBytes, andcheckBodyPatterns. - Corrected default
response.modeto"text"(matchingCreateConfig()). - Aligned all documentation links to canonical routes (
/traefik/*,/core/*).
- Updated configuration tables with full documentation for
[v1.4.1] - 2026-10-07
Key Highlights
- Standardization on Canonical
blockPatternsDirective:- Replaced all legacy
pathPatternsandpath_patternsreferences across documentation, Docker Compose examples,.traefik.ymlmanifest, and test scripts with canonicalblockPatterns. - Enforced strict canonical configuration directives, verifying that legacy aliases (
pathPatterns,path_patterns,action) do not populate active middleware configuration.
- Replaced all legacy
- Enhanced Verification & Alias Safety:
- Added comprehensive test suites verifying
blockPatternsandallowPatternsmatching, wildcard prefixes, and regex override precedence. - Added unit tests confirming removed legacy alias keys are ignored and do not affect canonical fields.
- Added comprehensive test suites verifying
[v1.4.0] - 2026-10-05
Key Highlights
- Canonical Directive Standardization & Duplicate Alias Removal:
- Standardized on
enableDefaultPatternsandenableDefaultAllowPatternsas the canonical boolean opt-in flags for built-in rule sets. - Standardized on single canonical
blockPatterns(list of regex strings) replacing all legacy aliases (pathPatterns,path_patterns,block_pattern). - Standardized on
mode(replacingaction),statusCode(replacingstatus),checkBodyPatterns(replacingbodyPatterns/body_pattern), andcheckBodyMaxBytes. - Removed duplicate config aliases across Go structures and documentation to eliminate configuration drift.
- Standardized on
- Docker Label Parsing Parity:
- Ensured compatibility with CLI label compilation, supporting indexed array notation (
blockPatterns[0],allowedIps[0], etc.).
- Ensured compatibility with CLI label compilation, supporting indexed array notation (
[v1.3.1] - 2026-10-02
Key Highlights
- Security Log Schema Normalization (
level: "warn"):- Embedded
"level": "warn"directly into structured JSONroutewarden_blocklog outputs. - Ensures seamless compatibility with log forwarders (Promtail, Vector, Fluentbit) and SIEM pipelines that filter and colorize security events based on log severity level.
- Embedded
- HTTP Status Code Telemetry (
status_code):- Added
"status_code"field to security events representing the effective HTTP response status code dispatched to the client (403for forbidden,429for rate limit,302for redirect, or0for silent drop).
- Added
- Dashboard Telemetry Field Parity (
matched_pattern):- Emitted
"matched_pattern"alongside"pattern"in log events to guarantee 100% out-of-the-box compatibility with security overview dashboards and top blocked pattern metrics.
- Emitted
[v1.3.0] - 2026-10-01
Key Highlights
- Trusted Proxies Support (
trustedProxies):- Added
trustedProxiesconfiguration toIPFilterallowing operators to declare upstream load balancers, reverse proxies, and CDN CIDR subnets. - Forwarded client IP headers (
X-Forwarded-ForandX-Real-IP) are now only trusted when the direct socket connection (RemoteAddr) originates from a declared trusted proxy. - Prevents attackers from spoofing allowlisted CIDRs by sending forged
X-Forwarded-Forheaders directly to the Traefik entrypoint. - Automatically falls back to socket
RemoteAddrwhen the direct peer is not intrustedProxies.
- Added
- Redirect Mode Security Hardening (
response.mode: redirect):- Added strict validation for
redirectUrlduring middleware initialization. - Restricts redirect destinations to
http://,https://, or local relative paths beginning with/, preventing open-redirect exploitation andjavascript:pseudo-protocol execution.
- Added strict validation for
- Silent Drop Fallback Resilience (
response.mode: silentDrop):- Added robust fallback when HTTP hijacking (
http.Hijacker) is unavailable in the execution environment (e.g., HTTP/2 connections or specific proxy handlers). - Falls back to returning HTTP 200 OK with an empty body instead of leaking the blocking error status code, ensuring security scanning tools cannot infer rule triggering.
- Added robust fallback when HTTP hijacking (
- Captcha Template Error Handling:
- Implemented safe error recovery for custom and default CAPTCHA templates; logs render errors to stderr and emits a clean HTML challenge document to prevent empty or corrupted client responses.
- Query Parameter Candidate Slice Safety:
- Bounded candidate slice capacities (
keyCandidates[:len:len]andvalCandidates[:len:len]) during query parameter evaluation to prevent slice backing-array mutation or aliasing bugs.
- Bounded candidate slice capacities (
[v1.2.1] - 2026-09-24
Key Highlights
- Query Parameter Attack Surface Hardening (
checkQuery):- Query parameter inspection now validates both parameter keys and values.
- Neutralizes evasion attempts where malicious sensitive file paths are hidden in parameter names (e.g.,
/?foo=bar&.env=1or/?settings.py=). - Added recursive path normalization on candidate query parameters.
- Client IP Extraction & Port/Bracket Normalization (
ip_filter):- Hardened IP address parsing when upstream reverse proxies, load balancers, or CDNs (Cloudflare, AWS ALB, NGINX) include ports or brackets in
X-Forwarded-FororX-Real-IPheaders (e.g.,192.168.1.1:8080or[2001:db8::1]). - Implemented automatic port and bracket stripping (
cleanIP) before passing to CIDR evaluation, preventing false rejections of legitimate whitelisted IPs.
- Hardened IP address parsing when upstream reverse proxies, load balancers, or CDNs (Cloudflare, AWS ALB, NGINX) include ports or brackets in
- Response Modes & Silent Drop Parity (
response.mode: silentDrop):- Standardized
silentDropmode to match the modernresponse.mode: silentDropconfiguration (replacing legacy directsilentDrop: bool).
- Standardized
- Honeypot Evaluation Scope (
fakeSuccess):- Ensured
fakeSuccesshoneypot evaluation inspects both normalized URL paths and raw request URIs to prevent bypasses via URI manipulation.
- Ensured
- Traefik Logging Clean-Up:
- Standardized debug logging to stdout and eliminated duplicate stderr log messages.
[v1.2.0] - 2026-09-24
Key Highlights
- Routewarden CLI (
rwarden) Multi-Target Generation:- Native compilation targets for Traefik:
rwarden generate --target traefik-yaml: Compilesroutewarden.jsondirectly into Traefik Dynamic Configuration YAML format.rwarden generate --target traefik-toml: Compilesroutewarden.jsondirectly into Traefik Dynamic Configuration TOML format.rwarden generate --target traefik-labels: Compilesroutewarden.jsondirectly into Traefik Docker Compose label syntax.
- Native compilation targets for Traefik:
- Interactive CodeViewer & Setup Snippets:
- Implemented interactive
Difftoggle in the 30-Second Setup documentation component.
- Implemented interactive
- Unified Versioning Automation:
- Updated
scripts/update-version.shto automatically synchronizeVERSIONING.mdalongsideversion.json,README.md, and source files upon release.
- Updated
[v1.1.0] - 2026-09-20
Key Highlights
- Expanded Default Block Patterns:
- Added built-in protection for private cryptographic keys and certificates (
*.pem,*.key,*.crt,*.pfx,*.p12,*.jks,*.kdb). - Added container manifest blocking (
Dockerfile*,docker-compose*.yml,docker-compose*.yaml). - Added OS directory structure leak protection (
.DS_Store). - Added CMS and framework configuration file protection (
wp-config.php*,configuration.php*,settings.py,local_settings.py).
- Added built-in protection for private cryptographic keys and certificates (
- Header Injection & Forwarded Path Inspection (
checkHeaders):- Configurable header inspection list to neutralize HTTP reverse-proxy header smuggling (
X-Forwarded-Uri,X-Rewrite-URL,X-Original-URL,X-Custom-Path). - Headers are passed through candidate path extraction and normalization before regex matching.
- Configurable header inspection list to neutralize HTTP reverse-proxy header smuggling (
- Path Normalizer Fuzz Testing:
- Implemented continuous fuzz testing (
FuzzExtractCandidatePaths) targeting percent-decoding, null bytes, backslashes, and matrix parameters.
- Implemented continuous fuzz testing (
[v1.0.0] - 2026-09-20
Key Highlights
- General Availability Release:
- Production-ready plugin for Traefik v2 and Traefik v3.
- Multi-layer anti-evasion path normalization (percent-decoding
%252e%252e, null-byte stripping, backslash conversion, dot-segment traversal protection). - Full suite of 13 response modes (
tarpit,gzipBomb,fakeSuccess,captcha,silentDrop,rateLimitChallenge,proxy,infiniteStream,json,html,text,xml,redirect). - IPv4 and IPv6 CIDR subnet whitelisting (
allowedIps). - Origin client IP resolution through
X-Forwarded-ForandX-Real-IP.
[v0.3.x Series] (Archived)
- HTTP Method Filtering (
methods): Granular verb filtering in path rules (blockPatterns[].methods: ["POST", "PUT"]). - CrowdSec SIEM Audit Logging (
securityLog: true): Single-line JSON block events on stdout for CrowdSec auto-bans. - Diagnostic Debug Logging (
debug: true): Verbose stdout diagnostic traces of candidate path transformations.
[v0.2.x Series] (Archived)
- CIDR/IP Whitelisting (
allowedIps): Network subnet allowlists to bypass security filtering. - Multi-Mode Response Engine: 13 response behaviors including reverse slowloris tarpits and synthetic decoys.
- Normalized Path Matching: Strict pre-regex path canonicalization.