Routewarden CLI Changelog
All notable changes to the Routewarden CLI (rwarden) are documented here. The format is based on Keep a Changelog, and the CLI adheres to Semantic Versioning.
[v5.5.0] - 2026-10-30 (Latest)
Added
- Security & Anti-Evasion Hardening & Parity:
- Implemented lenient multi-layer percent-unescaping in core engine, query inspector, and body parser, preventing denial-of-decoding bypasses caused by malformed percent-encoding (
%zz, trailing%). - Standardized multi-layer decoding pass limit to 5 across all gateways to defeat quadruple and quintuple percent-encoded traversals (
/%2525252e%2525252e/...). - Candidate path extraction emits trailing slash variants (
p + "/") for directory paths, ensuring end-anchored patterns (e.g.(?i)^/admin/$) match. - Added whitespace trimming and single/double quote unquoting for
checkHeadersvalues. - Strips encoded query (
%3f) and fragment (%23) delimiters in candidate extraction. - Added recursive root envelope unwrapping (
unwrapConfigMapinParseConfig) supporting Helm values (routewarden/routeWarden), Traefik middlewares root, and plugin objects in both JSON and YAML policies. - Added policy audit rules
RW-A025(RFC 9110 HTTP method validation),RW-A026(body inspection without mutating verbs),RW-A027(malformed header tokens incheckHeaders),RW-A028(negative or excessivecheckBodyMaxBytesbuffer limits), andRW-A029(empty or root/honeypot trap path misconfiguration). - Implemented case-insensitive honeypot spider trap matching (
EqualFoldand prefix matching) preventing casing-based trap evasion, with root path safeguard (/ignored to prevent catastrophic lockouts). - Extended policy diffing engine (
rwarden diff) to evaluate posture impact forcheckHeadersandmethods.
- Implemented lenient multi-layer percent-unescaping in core engine, query inspector, and body parser, preventing denial-of-decoding bypasses caused by malformed percent-encoding (
- AI Bot & Web Crawler Defense Integration:
- Added native support for
blockAIBots,aiBotProfile,blockUserAgents, andallowUserAgentsinroutewarden.schema.json,cli/config.schema.json, and core CLI engine. - Expanded AI Bot Registry with 2026 crawlers and scrapers: MistralBot, DeepSeekBot, Cohere-AI, Exabot, MetaphorBot, Cotalker, PetalBot.
- Introduced granular bot profiles:
search_only(blocks citation search bots like PerplexityBot, GrokBot, Twitterbot, DuckAssistBot) andagents_only(blocks agentic AI scrapers like Firecrawl, Apify, Zyte, BrightData, Crawlbase, ScrapingBee, AutoGPT, LangChain, LlamaIndex), alongsidetrain_only,all,aggressive, andcustom. - Policy evaluation engine (
rwarden test) verifies AI bots against profiles (train_only,search_only,agents_only,all,aggressive,custom) and enforcesuser_agent_blockedandai_bot_blockedverdicts. - Added CLI test flags to
rwarden test:--block-ai-bots,--ai-bot-profile,--detect-browser-impersonation,--block-script-clients, and--verify-search-engine-botsfor ad-hoc policy debugging without creating a JSON config file. - Added configuration audit rules
RW-A015(regex syntax auditing inblockUserAgentsandallowUserAgents),RW-A016(aiBotProfilevalidity check includingsearch_onlyandagents_only), andRW-A030(missing FCrDNS search engine verification advisory when AI bot defense is active).
- Added native support for
- Edge robots.txt Dynamic Honeypot Injection & Enforcement:
- Implemented dynamic
robots.txthoneypot trap injection with deterministic daily rotating HMAC-SHA256 tokens (/_rw_trap_<token>/). - Added UTC day rollover tolerance accepting both current and previous day trap prefixes.
- Intercepts
/robots.txtin reverse proxies and middleware, appending dynamicDisallowdirectives or synthesizing 200 OK responses when origin returns 404. - Added configuration directives
enableRobotsTxtHoneypot/enable_robots_txt_honeypotandrobotsTxtHoneypotSecret/robots_txt_honeypot_secret. - Added audit rule
RW-A031(warning whenallowPatternsshadows dynamic honeypot traps). - Extended gateway generators and policy diffing across Traefik YAML/TOML/Labels, Caddyfile, and NGINX Lua.
- Implemented dynamic
- Negative ASN Filtering (
blockedASNs/blocked_asns):- Added negative ASN filtering to
rwarden testand evaluation engine via offline snapshot (asnDB), blocking client IPs from hostile Autonomous Systems. - Added
blockedASNsgeneration across all target gateways (traefik-yaml,traefik-toml,traefik-labels,caddy,nginx,tcp-warden).
- Added negative ASN filtering to
- Active Deception Response Modes (
aiPoison&markovTarpit):- Registered
aiPoisonandmarkovTarpitmodes in policy audit engine (rwarden audit) and CLI validation routines.
- Registered
- Honeypot Spider Traps & In-Memory IP Ban Table:
- Added
honeypotTrapPathsandtrapBanDurationto schema and generators. - Implemented thread-safe bounded in-memory sliding-window IP ban table in CLI engine, simulating spider trap triggering and persistent IP banning.
- Added
- Search Engine Impersonator Verification via FCrDNS (
verifySearchEngineBots):- Added
verifySearchEngineBots/verify_search_engine_botstoroutewarden.schema.jsonandcli/config.schema.json. - Added Forward-Confirmed Reverse DNS verifier to CLI evaluation engine (
rwarden test) with TTL cache. - Expanded verified search engine support across 10 global search engines: Google, Bing, Apple, Yandex, Baidu, DuckDuckGo, Yahoo, Naver, Sogou, and Mojeek.
- Added
verifySearchEngineBotsconfiguration generation across all target gateways (traefik-yaml,traefik-toml,traefik-labels,caddy,nginx).
- Added
- Browser Impersonation Detection (
detectBrowserImpersonation):- Added
detectBrowserImpersonation/detect_browser_impersonationto schemas and CLI policy evaluation engine. - Implemented Client Hints (
Sec-CH-UA-Platform,Sec-CH-UA-Mobile,Sec-CH-UAbrand integrity) and Chromium Fetch Metadata cross-checking against claimed browser User-Agents inrwarden test. - Added Chromium GREASE brand validation (
missing_grease_brand) ensuring modern Chrome v89+ requests include randomized GREASE brands (Not?A_Brand,Not_A Brand). - Added HTTP header order anomaly detection (
DetectBrowserHeaderOrder/header_order_anomaly), detecting script scrapers that serializeUser-AgentorAcceptbeforeSec-CH-UA. - Added generator support for Traefik YAML/TOML/Labels, Caddyfile, and NGINX Lua.
- Added
- Datacenter & Cloud Hosting IP Classification (
blockCloudHosts):- Added
blockCloudHosts/block_cloud_hoststo schemas, CLI evaluation engine, and all reverse proxy gateways. - Classifies client IPs against major cloud hosting providers and datacenter ASNs (AWS, GCP, Azure, Hetzner, DigitalOcean, OVH, Linode, ByteDance, Oracle Cloud, Tencent Cloud, Alibaba Cloud).
- Emits specific verdicts:
datacenter_browser_impersonationfor claimed browsers from cloud infrastructure andcloud_host_blockedfor non-browser cloud scrapers. - Exempts genuine search engine crawlers verified via FCrDNS (e.g. Googlebot on GCP AS15169), route allow patterns (e.g. non-interactive
/api/webhookroutes), and explicitallowedIps. - Added configuration audit rule
RW-A032(SeverityInfo advisory whenblockCloudHostsis enabled withoutverifySearchEngineBots) and updatedRW-A018to enforceasnDBavailability. - Added multi-gateway code generators and policy diffing support.
- Added
- Script Client & Headless Automation Blocking (
blockScriptClients):- Added
blockScriptClients/block_script_clientsto schemas and CLI evaluation engine. - Added automated HTTP library (requests, Guzzle, reqwest, axios, curl-cffi, mechanize) and headless framework header signature verification (
X-Playwright,X-Puppeteer,X-Selenium,X-Cypress,X-Headless-Chrome,X-Automation,Sec-WebDriver). - Added generator support across all supported gateway outputs.
- Added
- Cryptographic Proof-of-Work Challenge Response Mode (
powChallenge):- Implemented client-side Hashcash proof-of-work challenge solver (<2KB inline HTML/JS using Web Crypto API
crypto.subtle) returning HTTP 429 Too Many Requests. - Server-side challenge generation with HMAC-SHA256 signatures, sliding window timestamps, and normalized client IP address binding.
- $O(1)$ stateless solution token verification (
rw_powcookie orX-RouteWarden-PoWheader) unlocking protected routes and bot defenses while strictly preserving dynamic honeypot traps and administrative IP bans. - Added response parameters:
powDifficulty(default: 16),powSecret, andpowTimeoutSeconds(default: 300). - Added configuration audit rule
RW-A033(Warning whenpowDifficultyis set outside recommended range 8–24). - Extended multi-gateway generators (
traefik-yaml,traefik-toml,traefik-labels,caddy,nginx) and policy diffing (diff).
- Implemented client-side Hashcash proof-of-work challenge solver (<2KB inline HTML/JS using Web Crypto API
[v5.4.0] - 2026-10-27
Added
- Offline ASN-Based Allowlisting (
allowedASNs/asnDB):- Added support for Autonomous System Number (ASN) based allowlisting using an offline JSON routing snapshot (
asnDB/asn_db), eliminating runtime DNS and external HTTP queries. - Added
allowedASNs(allowed_asns) andasnDB(asn_db) toroutewarden.jsonschema (config.schema.json) and core CLI configuration parsers. - Supports string-formatted ASN identifiers such as
"64500"or"AS64500"(case-insensitive) with dual-stack IPv4 and IPv6 support. - Implemented longest-prefix routing table matching in Go: more specific routes allocated to other ASNs do not inherit parent ASN bypasses. Conflicting prefix origins are rejected at startup.
- Local rule simulation and evaluation engine (
rwarden test/ evaluation) reports verdict reasonasn_whitelistedfor requests matching allowed ASNs. - Code generation (
rwarden generate): generates Traefik dynamic YAML/TOML/Docker labels, Caddyfile directives, NGINX Lua configurations, and TCP Warden YAML preserving ASN database paths and allowlists.
- Added support for Autonomous System Number (ASN) based allowlisting using an offline JSON routing snapshot (
- Layer 4 Admission Gating in
tcp-warden& Daemon Proxy:- Added
global.asn_db,global.allowed_asns, and per-serviceservices.<name>.allowed_asnsto TCP Warden (tcp-warden.yaml). - Distinct admission semantics for Layer 4: an effective ASN allowlist acts as an admission gate. Unknown origins (including private RFC1918 IPs absent from the routing snapshot) and non-matching origins are rejected immediately and recorded as
asn_deniedsecurity events. - Matching an ASN grants admission to the pipeline and does NOT bypass downstream security defenses (bans, CrowdSec, IP filters, geo-blocking, rate limits, or protocol filters).
- Works uniformly across TCP and UDP reverse proxy services.
- Empty per-service
allowed_asnsinherits the global list; a non-empty service list replaces the global list matching IP filter inheritance.
- Added
- Offline ASN Database Compiler (
scripts/build-asn-db.py):- Included Python compilation tool to convert MaxMind GeoLite2/GeoIP2 ASN Blocks CSV files into optimized JSON routing snapshots.
- Resilient CLI Flag Parsing & Combined Argument Expansion:
- Enhanced lenient flag parsing in
cli/main.goandcli/shipper/utils.goto automatically expand space-separated flag arguments (e.g."-docker --all-traffic"or"--batch-size 100"passed as a single quoted string in Docker Compose or shell scripts) into discrete tokens, preventingflag provided but not defined: -docker --all-trafficerrors. - Added direct command flag routing in
main.goso passing shipper flags directly (e.g.rwarden --docker,rwarden --all-traffic) automatically dispatches to thepushlog shipper daemon without requiringpushas an explicit subcommand. - Added full environment variable support across all shipper flags (
RW_CONFIG,RW_DOCKER,RW_LABEL,RW_TAIL,RW_BATCH_SIZE,RW_FLUSH_INTERVAL,RW_QUEUE_SIZE,RW_DISCONNECT_TIMEOUT,RW_PING_INTERVAL,RW_VERBOSE,RW_ALL_LOGS,RW_DETACH). - Added
--all-logsflag andall_logspersistence torwarden register(cli/register.goandcli/shipper/register.go). - Expanded documentation in
cli/remote/shipper.md,cli/commands.md, andcli/remote/registration.mdwith comprehensive flag and environment variable reference tables and Docker Compose syntax guidance.
- Enhanced lenient flag parsing in
Fixed & Enhanced
- IPv6 Scope & Zone Index Stripping:
- Sanitized zone identifiers (
%interface, e.g.%eth0) from client IPv6 addresses during ASN radix-tree lookup across both the policy evaluation engine (rwarden test) and Layer 4 proxy daemon (rwarden tcp).
- Sanitized zone identifiers (
- Proxy Pipeline & UDP Session Resilience:
- Improved UDP session handling, buffer recycling, and connection teardown in
proxy/core/udp_session.goandudp_engine.go. - Hardened TCP/UDP reverse proxy connection error handling and socket shutdown cleanup.
- Improved UDP session handling, buffer recycling, and connection teardown in
- CrowdSec LAPI Client Error Recovery:
- Enhanced CrowdSec LAPI client resilience with improved timeout handling, reconnect logging, and non-blocking decision cache updates during transient CrowdSec daemon reloads.
- Layer 4 & Layer 7 Protocol Plugins Hardening:
- Added comprehensive test suites and hardened protocol inspectors across 19 plugins (IMAP, POP3, Redis, SMTP, SSH, TLS SNI, VNC, HTTP, LDAP, Memcached, MongoDB, Minecraft, FTP, Generic).
- AI Bot & Crawler Defense Architecture:
- Published comprehensive AI bot mitigation guide and threat categorization across the ecosystem.
[v5.3.3] - 2026-10-23
Added
- Explicit HTTP Status Codes & Ranges Forwarding (
--status/-s):- Added
--status(-s,--status-codes,--include-status) CLI flag andRW_STATUS/RW_STATUS_CODESenvironment variables torwarden pushandrwarden-shipper. - Enables capturing and forwarding HTTP requests matching specific status codes, ranges, or wildcard families (e.g.
400-599, 301,4xx, 5xx,404, 500-504) across Caddy (logger: "http.log.access"), Traefik (JSON / Combined), and NGINX (JSON / Combined access logs). - Maintained
--include-failed(-F) andRW_INCLUDE_FAILEDas backwards-compatible legacy aliases that automatically map to--status 400-599.
- Added
- Full HTTP Access Traffic Shipping (
--all-traffic):- Added
--all-trafficCLI flag andRW_ALL_TRAFFICenvironment variable to forward all reverse proxy access logs including clean200 OKresponses for complete centralized access auditing.
- Added
- Enrollment Telemetry Preference Persistence:
- Added
--status(-s) and--all-trafficflags torwarden register(cli/register.goandcli/shipper/register.go), saving telemetry filtering settings directly to~/.routewarden/agent.json("status_codes": "400-599, 301","all_traffic": true) so subsequentrwarden pushinvocations inherit configured status ranges automatically.
- Added
- Failed HTTP Status Categorization in Central Dashboard:
- Enhanced dashboard ingestion engine in
cli/observability/custom_dashboard.goandcli/observability/manager.goto categorize unblocked status $\ge 400$ requests from Caddy, Traefik, and NGINX asVerdict: "FAILED"with ruleHTTP <status>, providing SOC teams immediate visibility into client probing and upstream outages without polluting security incident counts asALLOW.
- Enhanced dashboard ingestion engine in
- Independent Telemetry Flags & Precedence Hierarchy:
- Documented full independence and precedence resolution across
--status,--include-failed, and--all-traffic:--all-trafficsupersedes status filters, while explicit--statusoverrides--include-failed.
- Documented full independence and precedence resolution across
- Layer 4 (UDP & TCP) Traffic Log Streaming:
- Documented log forwarding for Layer 4 traffic from
tcp-warden(/var/log/routewarden/tcp-warden.jsonl). Security events (blocks, bans, rate limits, CrowdSec actions) are shipped automatically by default, and allowed datagram sessions can be forwarded via--all-traffic.
- Documented log forwarding for Layer 4 traffic from
- Flexible JSON Decoding for Custom Log Formats:
- Added
flexibleIntandflexibleFloatJSON decoders incli/push.goandcli/shipper/push.gosupporting quoted status codes ("status": "404") and string latencies from custom reverse proxy logging formats without throwing unmarshal errors.
- Added
Changed
- Bandwidth-Optimized Default Telemetry Filtering:
- Defaulted log streaming to security-only events (plugin mitigation actions
BLOCK,TARPIT,HONEYPOT, and security status codes403 Forbiddenand429 Too Many Requests), automatically dropping benign200 OKaccess logs to minimize network bandwidth and database size.
- Defaulted log streaming to security-only events (plugin mitigation actions
- Multi-Proxy Test Suite Coverage:
- Expanded test suites in
cli/push_test.go,cli/shipper/push_test.go, andcli/observability/custom_dashboard_test.gowith a comprehensive 36-case status matrix (101through504), security tag overrides, corrupted log rejection, string status codes, and agent config persistence.
- Expanded test suites in
[v5.3.2] - 2026-10-22
Fixed
- Homebrew Cask Multi-Archive Mapping in GoReleaser:
- Resolved GoReleaser CI/CD release failure (
one tap can handle only one archive of an OS/Arch combination) by explicitly specifying archiveidsfor Homebrew casks (ids: [rwarden]forrwardencask, andids: [tcp-warden]fortcp-wardencask). - Split standalone
tcp-wardenbinary from therwardencask into its own dedicated Homebrew Cask (brew install routewarden/tap/tcp-warden), preventing missing binary errors during cask installation from single-binary archives.
- Resolved GoReleaser CI/CD release failure (
- Standalone TCP Warden Container Package Deployment:
- Re-scoped and aligned GitHub Container Registry (GHCR) package ownership and repository links for
ghcr.io/routewarden/tcp-warden, enabling automated multi-architecture Docker container publication directly fromroutewarden/cliCI/CD workflows.
- Re-scoped and aligned GitHub Container Registry (GHCR) package ownership and repository links for
[v5.3.1] - 2026-10-22
Added
- Dedicated Standalone TCP Warden Binary Distribution (
tcp-warden):- Configured GoReleaser to produce dedicated standalone binary releases for
tcp-warden(./cmd/tcp-warden) across Linux (amd64,arm64), macOS (amd64,arm64), and Windows (amd64,arm64). - Added standalone archive distribution (
tcp-warden_<version>_<os>_<arch>.tar.gzand.zip) bundled withREADME.md,LICENSE, and defaulttcp-warden.yaml. - Added native Linux NFPM packages (
.deb,.rpm,.apk) fortcp-wardenwith pre-installed/etc/routewarden/tcp-warden.yamldefault configuration. - Added standalone
tcp-wardenbinary packaging into the Routewarden Homebrew Cask (routewarden/tap/rwarden) with macOS quarantine clearing and automated daemon teardown.
- Configured GoReleaser to produce dedicated standalone binary releases for
- Dedicated Multi-Arch Docker Container (
ghcr.io/routewarden/tcp-warden):- Added automated multi-architecture Docker image builds (
linux/amd64,linux/arm64) based on an ultra-lean Alpine runtime (Dockerfile.tcp-warden, <15MB) published toghcr.io/routewarden/tcp-warden:latestand tagged release versions. - Added CI build validation dry-runs for
Dockerfile.tcp-wardenacross all pull requests and branch builds.
- Added automated multi-architecture Docker image builds (
rwarden tcp versionSubcommand:- Added
versioncommand and flags (--version,-v) torwarden tcp, outputting formatted Routewarden TCP Proxy version metadata.
- Added
- Package Teardown Lifecycle Hooks (
scripts/preremove.sh):- Updated RPM, Debian, and APK package pre-removal scripts to automatically detect and stop active standalone
tcp-wardendaemons during package uninstallation or upgrade.
- Updated RPM, Debian, and APK package pre-removal scripts to automatically detect and stop active standalone
Changed
- Zero-Dependency Refactoring for Module and Rate Limiting Subsystems:
- Removed external dependencies
golang.org/x/mod/semver,golang.org/x/mod/modfile, andgolang.org/x/time/ratefrom the core CLI and proxy packages. - Replaced with custom, highly optimized, zero-dependency implementations (
sdk.ParseSemVer, standard library module parser, and internal token-bucket rate limiter) to eliminate external supply chain risks and minimize binary footprint.
- Removed external dependencies
- Ecosystem Plugin Compatibility Alignment:
- Aligned all 21 official protocol plugins in
github.com/routewarden/pluginsto importgithub.com/routewarden/cli/proxy/...directly, verifying compatibility against the unified CLI and proxy codebase.
- Aligned all 21 official protocol plugins in
[v5.3.0] - 2026-10-21
Added
- Active Connection Health Supervisor & Ping Heartbeat (
/api/v1/ping):- Implemented
/api/v1/pingon the Routewarden dashboard server returning node status, server public key, version, and server timestamp while validating agent tokens and refreshing agent last-seen state and hostname metadata. - Added an active client connection supervisor loop in
rwarden pushand standalonerwarden-shipper(--ping-interval, default:10s), continuously tracking dashboard reachability. - Implemented fast-probing reconnection mode: whenever the dashboard is unreachable, the client accelerates health checks to 2-second intervals, immediately detecting dashboard recovery.
- Implemented
- Offline Event Queueing & Backlog Drain (
--queue-size&--disconnect-timeout):- Added
--queue-size(default:10,000events) to buffer log events in memory while the central dashboard is down, restarting, or temporarily disconnected, eliminating event loss. - Added
--disconnect-timeout(default:5m) to safeguard edge node memory by safely pruning stale events with throttled warnings if the dashboard remains unreachable long-term. - Implemented instant backlog draining upon reconnection: flushes all queued offline events in batches to the dashboard without dropping telemetry.
- Added
- Zero-Drop Encryption Key Rotation Auto-Recovery:
- Enhanced
/api/v1/eventsdecryption error handling (HTTP 400) to return the dashboard's current public key when server keys rotate or reload on restart. - Upgraded client
sendBatchWithRetry/SendBatchWithRetryto automatically intercept decryption errors, update the cached public key, re-encrypt the payload, and retry the batch immediately with zero event loss.
- Enhanced
- Global World Map Coordinate Coverage:
- Expanded geographic coordinates mapping to all 249 officially assigned ISO 3166-1 alpha-2 country codes, plus regional identifiers
EUandAP. - Added a comprehensive country-name-to-code fallback dictionary (
CountryNameToCodeandcountryNameToCoords) to resolve full country names returned by certain MaxMind GeoIP city databases. - Removed the top-10 country truncation in custom dashboard maps, allowing full global origin visualization.
- Expanded geographic coordinates mapping to all 249 officially assigned ISO 3166-1 alpha-2 country codes, plus regional identifiers
- Automated Data Retention & Pruning Policies (
--retention,--max-events,--prune-interval,--max-log-size):- Added configurable telemetry retention period (
--retention, default:30d, supports7d,48h, or0for unlimited). - Added maximum event capacity cap (
--max-events, default:100,000,0= unlimited) to protect disk footprint against event flooding. - Added automated background pruning supervisor (
--prune-interval, default:1h) to continuously purge expired and overflow events. - Added automated access log rotation (
--max-log-size, default:50MB) atomically archivingaccess.logtoaccess.log.1. - Implemented automatic database
VACUUMpage reclamation whenever significant batches (> 500) of events are pruned, physically shrinking the.dbfile footprint. - Added
rebuildSeenHashes()to evict stale entries from deduplication memory upon pruning, keeping RAM consumption strictly proportional to active rows. - Added dedicated REST endpoints
GET /api/v1/storage(metrics & policy) andPOST /api/v1/prune(on-demand prune & compact). - Added 💾 Storage modal in the dashboard UI with live footprint indicators and a one-click 🧹 Prune & Compact Now action.
- Added configurable telemetry retention period (
- Merged High-Performance L4 TCP/UDP Reverse Proxy (
rwarden tcp):- Integrated
tcp-wardeninto the Routewarden CLI repository under modular packagecli/proxy/, keeping core networking, protocols, geoip, crowdsec, and plugins reusable across the suite. - Added unified
rwarden tcpcommand tree supporting foreground execution and background detached daemon mode (up,down,status,validate,plugins). - Added Layer 4 protocol-aware inspection (HTTP, TLS SNI, SSH, Redis, PostgreSQL, MySQL), connection rate limiting, CIDR geo-blocking, dynamic IP banlist persistence, and CrowdSec LAPI remediation.
- Implemented modular protocol inspection plugin SDK (
rwarden tcp plugins list,rwarden tcp plugins test,rwarden tcp plugins install). - Embedded SQLite banlist storage using pure
database/sqlandmodernc.org/sqlite, fully resolving driver registration collisions while maintaining WAL persistence. - Added dedicated standalone binary
cli/cmd/tcp-wardenand ultra-lean multi-stage Alpine container (cli/Dockerfile.tcp-warden, <15MB) for dedicated L4 edge deployments.
- Integrated
- Zero-Downtime Daemon Reload (
rwarden tcp reload):- Added
rwarden tcp reloadsubcommand utilizingsyscall.SIGHUPand cross-platform process signaling to reload proxy configuration on running daemons without dropping active client connections.
- Added
- Static Audit Regex Syntax Linter Rule (
RW-A015):routewarden auditvalidates regular expression syntax acrossblockPatterns,allowPatterns, andcheckBodyPatterns, catching uncompilable patterns (e.g. unclosed brackets[a-z) prior to runtime deployment.- Extended ReDoS catastrophic backtracking analysis (Rule
RW-A006) and duplicate checking (RuleRW-A008) to includecheckBodyPatterns.
- Policy Diff Completeness & Request Body Security Impact:
DiffConfigsandrwarden diffnow evaluatecheckBodyPatterns,checkBodyMaxBytes,customResponseText, and resolved response settings (mode,statusCode,body).- Added security posture impact evaluation (
DiffImpactRelaxedvsDiffImpactHardened) for body inspection toggles and pattern modifications.
- Shell Autocompletion & Manual Integration:
- Expanded Bash, Zsh, Fish, and PowerShell completion scripts to provide rich command completion for
tcpand its subcommands (up,down,status,reload,plugins). - Updated the system roff manual (
rwarden.1) viarwarden mandocumenting L4 proxy usage and daemon supervisor commands.
- Expanded Bash, Zsh, Fish, and PowerShell completion scripts to provide rich command completion for
Fixed
- Interactive Simulator Response Resolution Parity (
tui.go):- Fixed
rwarden tuievaluating candidate paths using rawcfg.StatusCodeinstead ofcfg.ResolveResponse(). - Added support for custom response modes (
json,html,redirect),⏭️ BYPASSEDindicator for HTTP method overrides, and client IP allowlist explanations.
- Fixed
- Crypto Nil Key & Base64 Whitespace Robustness (
crypto/crypto.go):- Fixed nil-pointer dereference panics when calling
EncodePrivateKey(nil)orEncodePublicKey(nil). - Added automatic whitespace and newline trimming in
DecodePrivateKeyandDecodePublicKeyto support keys copied from shells or text files with trailing newlines.
- Fixed nil-pointer dereference panics when calling
- Log Stream Ingestion Leading Whitespace (
monitor.go):- Fixed
parseLogLineusingTrimRight, which caused log lines with leading whitespace (common in Docker, syslog, and indented container outputs) to fail prefix and regex matching.
- Fixed
- Daemon Shutdown Safety & Typo Protection (
daemon.go):- Fixed an issue where typing an invalid service name in
rwarden stop <service>fell through to stopping all background daemons. Unknown service names are now rejected with an explicit error and exit code 1. - Added
tcpproxy daemon torwarden statusandrwarden stopglobal command handlers, and supported"all"explicitly.
- Fixed an issue where typing an invalid service name in
- Subcommand Help Handling:
- Fixed
rwarden tcp help,rwarden dashboard help, andrwarden push helptreating"help"as an argument or throwing errors.
- Fixed
- Version Synchronization Coverage (
update-version.sh):- Added
cmd/tcp-warden/main.go,proxy/plugins/sdk/sdk.go, andDockerfile.tcp-wardento automated version synchronization scripts with comprehensive test coverage.
- Added
- Dual-Stack IPv4-Mapped IPv6 CrowdSec Ban Bypass (
proxy/crowdsec/client.go):- Canonicalized IP strings via
net.ParseIPandparsed.To4()acrossc.Check()and decision streams, preventing dual-stack IPv4-mapped IPv6 connections (::ffff:x.x.x.x) from bypassing single-IP CrowdSec bans.
- Canonicalized IP strings via
- SSE Stream Reliability & CPU Spin Prevention (
observability/custom_dashboard.go):- Replaced unvalidated channel receive in
ServeSSEwithev, ok := <-chto prevent infinite CPU loops when channels close, and added write error checks to immediately terminate handlers upon client disconnect.
- Replaced unvalidated channel receive in
- Standalone Shipper Configuration Diagnostics (
shipper/push.go):- Fixed an issue where corrupt
agent.jsonfiles failed silently or emitted inaccurate error messages when--urlor--keyflags were passed.
- Fixed an issue where corrupt
- Cross-Platform Windows Daemon Linters (
daemon_windows.go):- Replaced named unused parameters with blank identifiers (
_ int, _ syscall.Signal) in Windows process signal stubs, satisfying strict Go linters.
- Replaced named unused parameters with blank identifiers (
- Event Drops During Dashboard Restarts (
push.go,shipper/push.go):- Fixed an issue where HTTP 400 errors returned during server restart or key mismatch were treated as non-retryable authentication errors, causing the entire in-flight batch to be discarded.
- Unstable Connected Nodes Ribbon Sorting (
manager.go,custom_dashboard.go):- Enforced deterministic lexicographical sorting by
AgentName/AgentIDfor connected agents, preventing UI node cards from randomly shuffling on auto-refresh intervals.
- Enforced deterministic lexicographical sorting by
[v5.2.2] - 2026-10-21
Fixed
- SQLite Database Concurrency & Busy Locks (
sqlite_store.go):- Configured WAL mode (
_journal_mode=WAL) and a busy timeout (_busy_timeout=5000) on SQLite connections. - Implemented serialized write locking and batch transaction retries to resolve database locked errors under high event ingestion rates.
- Configured WAL mode (
- Custom Dashboard Concurrency & Rendering (
custom_dashboard.go):- Secured widget data access with proper read/write mutexes, preventing concurrent map read/write race conditions during dashboard refreshes.
- Hardened metric calculations against division-by-zero on empty datasets.
- Observability Manager Lifecycle & Goroutine Cleanups (
manager.go):- Fixed goroutine leaks during monitoring and log streaming by ensuring context cancellation propagates through all worker loops.
- Handled channel closure sequencing to eliminate race conditions during manager shutdown.
- Shipper Reconnection Backoff & Error Recovery (
push.go,shipper/push.go):- Added exponential backoff and jitter for failed shipper push connections.
- Hardened line reading against truncated buffer allocations on unusually long log lines.
[v5.2.1] - 2026-10-20
Added
- Docker Container Log Filtering (
isRoutewardenLog&--all-logs):- Implemented automatic log filtering for Docker container streaming (
tailContainerToChanandTailContainerFilteredToChan), ensuring the shipper only pushes valid Routewarden security events (structured JSON withverdict,rule,action,client_ip,path) or standard Combined access logs. - Automatically drops arbitrary container stdout/stderr output (e.g. application banners, database connection strings, startup debug statements, stack traces) before batching and network transmission.
- Added automatic Docker RFC3339 timestamp prefix stripping (
dockerTimestampPrefixRegex) to normalize container output lines before JSON evaluation and ingestion. - Added
--all-logsflag torwarden pushandrwarden-shipperto allow operators to bypass filtering and stream unparsed raw container output when explicitly requested.
- Implemented automatic log filtering for Docker container streaming (
Fixed
- Unfiltered Docker Container Output Transmission (
push.go):- Resolved an issue where
rwarden pushandrwarden-shipperunconditionally forwarded all container stdout and stderr lines, resulting in non-security container diagnostics flooding the ingest buffer.
- Resolved an issue where
[v5.2.0] - 2026-10-20
Added
- Continuous Log File Streaming with Live Follow Mode (
rwarden monitor --follow/-F):- Added
-F/--followflag torwarden monitorfor continuously following log files in real time. - Implemented automatic in-place file truncation detection (
fi.Size() < offset), automatically rewinding the read offset to beginning. - Implemented automatic log rotation detection (
!os.SameFile(fi, curFi)), draining any final writes from the rotated file descriptor before re-attaching to the newly created file. - Preserved one-shot reading behavior when
--followis omitted, allowing automated test suites and batch analysis to run to EOF without hanging.
- Added
- Pure-Go Native File Streaming Fallback:
- Implemented Go-native file tailing (
streamFileToChan/StreamFileToChan) as an automatic fallback when the systemtailexecutable is not installed (e.g. scratch, distroless, or minimal Alpine Docker containers).
- Implemented Go-native file tailing (
- Dynamic Log File Discovery:
- Added an active background observer in
rwarden pushand standalonerwarden-shipperthat periodically scans glob patterns (e.g.*.log) and directories, dynamically attaching collectors to newly created log files (📄 [File] Attached to new log file: <path>). - Added directory path expansion in
resolveFileList, expanding directory arguments to contained.log,.json, and.txtfiles rather than erroring on directory descriptors.
- Added an active background observer in
- Real-Time Docker Container Lifecycle Observers:
- Upgraded
rwarden monitorwith a real-time 2-second lifecycle observer that dynamically attaches to newly started or restarted containers (🐳 [Docker] Attached to container: <name>) and cleanly detaches on stop (🛑 [Docker] Container stopped: <name>) without exiting the monitor session. - Added immediate zero-delay startup scan for Docker container discovery in
rwarden pushandrwarden-shipper.
- Upgraded
- Docker Container Log Filtering (
isRoutewardenLog&--all-logs):- Implemented automatic log filtering for Docker container streaming (
tailContainerToChanandTailContainerFilteredToChan), ensuring the shipper only pushes valid Routewarden security events (structured JSON withverdict,rule,action,client_ip,path) or standard Combined access logs. - Automatically drops arbitrary container stdout/stderr output (e.g. application banners, database connection strings, startup debug statements, stack traces) before batching and network transmission.
- Added automatic Docker RFC3339 timestamp prefix stripping (
dockerTimestampPrefixRegex) to normalize container output lines before JSON evaluation and ingestion. - Added
--all-logsflag torwarden pushandrwarden-shipperto allow operators to bypass filtering and stream unparsed raw container output when explicitly requested.
- Implemented automatic log filtering for Docker container streaming (
Fixed
- Stream Termination Race Condition on Channel Close (
monitor.go):- Replaced an arbitrary 100ms sleep on shutdown with a
sync.WaitGrouptracking all active file stream routines, eliminating the race condition that triggered fatalpanic: send on closed channelerrors.
- Replaced an arbitrary 100ms sleep on shutdown with a
- Container Pipe Truncation on Stderr EOF (
manager.go):- Added
sync.WaitGroupsynchronization across stdout and stderr reader pipes inwatchAndStreamContainersbefore callingcmd.Wait(), preventing premature stream closure when containers produce no stderr output.
- Added
- File Descriptor Leak on Log Rotation (
manager.go):- Fixed descriptor leak in
watchAndStreamFilewhere deferredf.Close()closed the old file pointer by value rather than closing the dynamically updated active file descriptor.
- Fixed descriptor leak in
- Unchecked Scanner Errors in Tail Reading:
- Added explicit terminal
scanner.Err()checks across allbufio.Scannerloops inpush.go,shipper/push.go, andmonitor.go, preventing silent error swallowing on I/O failures or buffer overflows (bufio.ErrTooLong).
- Added explicit terminal
- Data Race on
TargetsSlice ingetSourceInfo()(manager.go):- Implemented deep slice copy for
TargetsundersourceMu.RLock(), eliminating concurrent slice access between the HTTP API handler and background container discovery.
- Implemented deep slice copy for
- Unbounded HTTP Request Body & Contention in
/api/v1/events(manager.go):- Enforced a 10MB limit on incoming event payloads via
io.LimitReader(r.Body, 10*1024*1024)preventing OOM denial-of-service. - Decoupled
dashboardLogMufile logging lock fromglobalStore.ParseAndIngestSQLite processing to eliminate ingest pipeline contention.
- Enforced a 10MB limit on incoming event payloads via
- Cryptographic Timing Attack in Agent Token Validation (
keys.go):- Switched token hash comparison to
crypto/subtle.ConstantTimeCompare, preventing side-channel timing leaks.
- Switched token hash comparison to
[v5.1.0] - 2026-10-20
Added
- Manual Event Push via CLI (
rwarden push -e/--event):- Added native one-shot manual direct event push support. Operators can immediately dispatch synthetic test events or external log lines directly to Routewarden dashboard without spawning a background log shipping daemon.
- Supports repeatable
-eflags (rwarden push -e '{"path":"/.env","verdict":"BLOCK"}' -e '...') to push multiple events simultaneously.
- Piped STDIN Event Streaming (
rwarden push --stdin/-f -/rwarden push -):- Added line-by-line streaming from standard input via
--stdin,-f -, or positional-(cat access.log | rwarden push --stdin). - Implemented automatic batch chunking with configurable
--batch-size(default: 50) and--flush-interval(default: 1s), flushing on buffer capacity or EOF.
- Added line-by-line streaming from standard input via
- Automatic Uninstall Service Stop & Cleanup Hook:
- Integrated an automatic uninstall cleanup hook into
rwarden uninstalland the standaloneuninstall.shscript. - Automatically identifies and stops active Routewarden background services (
rwarden stop), tears down dashboard Docker containers (docker rm -f routewarden-dashboard), unlinks binary symlinks (/usr/local/bin/rwardenand~/.local/bin/rwarden), and safely purges runtime state directories (~/.routewarden).
- Integrated an automatic uninstall cleanup hook into
- Unified Standalone Shipper (
rwarden-shipper) Parity:- Extended standalone shipper binary with identical
-e/--eventone-shot pushing and--stdinpiping capabilities.
- Extended standalone shipper binary with identical
[v5.0.3] - 2026-10-19
Fixed
- Full Parity for Snake_case and CamelCase JSON Configurations:
- Implemented
UnmarshalJSONforConfig,ResponseConfig, andCaptchaConfig, enabling seamless parsing of bothsnake_case(e.g.block_patterns,allowed_ips,status_code,redirect_url) andcamelCasekeys across all CLI subcommands (audit,diff,test,validate,generate). - Ensured proper specification defaults (
enabled: true,enableDefaultPatterns: true,enableDefaultAllowPatterns: true, etc.) are assigned when boolean keys are omitted in minimal policies.
- Implemented
- Base
configFilePreservation in Engine:- Resolved an issue in
NewEnginewhereCreateConfig()defaults overwrote base policy settings when merging an inline configuration with aconfigFile.
- Resolved an issue in
- Enhanced Linter Response Mode Recognition (RW-A012):
- Added full support in
rwarden auditfor all 13 Routewarden response modes (captcha,gzipBomb,fakeSuccess,rateLimitChallenge,redirect,proxy,infiniteStream,xml, etc.), preventing false positive warnings in strict CI audits.
- Added full support in
- CLI Standard Input (
-) Support inauditanddiff:- Fixed argument parser behavior when receiving
"-", enabling direct piped inspection (cat policy.json | rwarden audit -) and diffing (rwarden diff - candidate.json).
- Fixed argument parser behavior when receiving
- Response Mode Status Code Defaulting in Configuration Generator:
- Updated
ResolveResponse()inengineto apply mode-specific status code defaults when omitted (gzipBomb→200,fakeSuccess→200,rateLimitChallenge→429,redirect→302). - Ensures CLI generator commands (
rwarden generate --target traefik-yaml|traefik-toml|traefik-labels|caddy|nginx) emit valid, active-defense status codes rather than falling back to default403.
- Updated
- Automated Version Synchronization:
- Synchronized release version constants across CLI micro-binaries (
rwarden,rwarden-shipper,rwarden-dashboard), Dockerfiles, terminal authentication screen, custom SOC dashboard badges, SARIF report generators, docs registry, and installer scripts.
- Synchronized release version constants across CLI micro-binaries (
[v5.0.2] - 2026-10-19
Changed
- Homebrew Cask Migration & GoReleaser Deprecation Fix:
- Migrated GoReleaser release specification from deprecated
brews:to modernhomebrew_casks:with explicit binary linkage (binaries: [rwarden]) and Casks directory target (directory: Casks), fully resolving the GoReleaser v2 deprecation warning (brews should not be used anymore).
- Migrated GoReleaser release specification from deprecated
Fixed
- macOS Gatekeeper Quarantine Extended Attribute Stripping:
- Added an automated post-install hook in Homebrew Cask specification running
/usr/bin/xattr -dr com.apple.quarantineon macOS installations. This removes thecom.apple.quarantineextended attribute from staged binaries, eliminating macOS Gatekeeper "rwarden is damaged and cannot be opened" alerts for unsigned releases.
- Added an automated post-install hook in Homebrew Cask specification running
- Seamless Homebrew Tap Migration (
tap_migrations.json):- Configured
tap_migrations.json("rwarden": "rwarden") in theroutewarden/homebrew-taprepository to seamlessly redirect existing formula installations to the cask distribution duringbrew upgradewithout requiring manual uninstallation.
- Configured
[v5.0.1] - 2026-10-19
Added
- Top-Level
rwarden upCommand:- Added
rwarden upandrwarden startas direct top-level shortcuts for launching the real-time SOC security dashboard without needingrwarden dashboard up. - Added full shell autocompletions for
upacross Bash, Zsh, Fish, and PowerShell (rwarden completion). - Updated manual page generator (
rwarden man) with documentation forup.
- Added
- Zero-Touch Environment Variable Auto-Configuration:
- Added support for
RW_DASHBOARD_URL(orRW_URL) andRW_AGENT_KEY(orRW_KEY) in bothrwarden pushandrwarden register(as well asrwarden-shipper). Nodes can now stream logs or register directly without command-line flags or pre-existing config files, ideal for containerized deployments. - Added
PORTandRW_DASHBOARD_HOSTenvironment variable support forrwarden up/rwarden dashboardandrwarden-dashboard.
- Added support for
- Dynamic Public Key Auto-Discovery:
rwarden pushandrwarden-shippernow automatically query/api/v1/pubkeyfrom the central dashboard on startup whenserver_pubkeyis not present in local configuration, enabling full end-to-end asymmetric encryption (X25519 ECDH + AES-256-GCM) without requiring a prior manualregistercommand.
- Continuous Monitored File Streaming Daemon (
watchAndStreamFile):- Added dedicated continuous log streaming for
rwarden dashboard --file <path>with automatic log rotation detection (inode change tracking) and file truncation handling.
- Added dedicated continuous log streaming for
Fixed
- 10MB Buffer Support for High-Volume Log Streaming:
- Increased
bufio.NewScannerbuffer limits from Go's default 64KB up to 10MB across all streaming and tailing pipelines (tailFileToChan,tailContainerToChan,streamContainerLogs,watchAndStreamContainers, andwatchAndStreamFile), eliminatingbufio.Scanner: token too longcrashes on high-volume access logs or wide JSON payloads.
- Increased
- Windows Detached Process Liveness & Console Isolation:
- Fixed Windows daemon alive checks in
daemon_windows.goanddaemon/daemon_windows.goby verifying process exit codes (STILL_ACTIVE259) viaGetExitCodeProcessand testing non-blocking synchronization withWaitForSingleObject, eliminating phantom running statuses for killed background processes. - Isolated background processes from the parent console using
CREATE_NEW_PROCESS_GROUP | 0x08000008(DETACHED_PROCESS).
- Fixed Windows daemon alive checks in
- Flexible Log Timestamp Parsing:
- Added
parseFlexibleTimestampsupportingRFC3339Nano, space-separated timestamps (2006-01-02 15:04:05), and Apache/NGINX common log formats (02/Jan/2006:15:04:05 -0700).
- Added
- Memory Capping for High-Volume Ingestion:
- Added automated cache pruning when tracking unique IPs (>5,000) and unique paths (>5,000) in
EventStore, capping memory consumption for long-lived production dashboard instances.
- Added automated cache pruning when tracking unique IPs (>5,000) and unique paths (>5,000) in
- Flag Binding Aliases:
- Bound short flag aliases directly to identical pointers using
fs.StringVar/fs.BoolVaracrosshandleGenerate,handleSandbox, andhandleTest, preventing flag override bugs.
- Bound short flag aliases directly to identical pointers using
- Automated Version Synchronization & Test Assertion Stability:
- Overhauled
scripts/update-version.shwith robust GNU/BSDseddetection, multi-target synchronization across micro-binaries, Dockerfiles, test assertions, VitePress docs registry, and installer scripts. - Exported
observability.Versionpackage variable preventing version-mismatch test breakages on version bumps.
- Overhauled
[v5.0.0] - 2026-10-18
Added
- Distributed Remote Log Shipping & Enrollment (
rwarden push,keys,register):- Introduced a CrowdSec-style distributed log shipping model allowing multiple remote edge servers, cloud VMs, and Kubernetes clusters to stream live telemetry to a central Routewarden dashboard.
rwarden keys: Generate (keys create <name>), list (keys list), and revoke (keys revoke <id>) 24-byte cryptographically secure agent authentication tokens (rw_sec_...).rwarden register: One-time registration handshake connecting remote nodes to the central dashboard, automatically fetching the server's public key, and persisting configuration in~/.routewarden/agent.jsonwith strict0600permissions.rwarden push: Zero-flag background log shipper reading saved credentials, auto-discovering labeled Docker containers (routewarden=true) or tailing local log files (--file), and streaming encrypted batches.- In-Memory Ring Buffer: Implemented a 2,000-event in-memory ring buffer (~2MB max RAM) ensuring zero disk wear on edge SSDs.
- Resilience & Backoff: Added automated 30-second heartbeat pings and 3-stage exponential backoff retry on network drops.
- End-to-End Asymmetric Cryptography (X25519 ECDH + AES-256-GCM):
- Central server maintains a master X25519 keypair (
server.key/server.pub). - Remote agents derive ephemeral shared secrets via X25519 ECDH with SHA-256 HKDF and encrypt log batches with AES-256-GCM.
- Intermediate proxies or network observers cannot inspect or tamper with log payloads in transit.
- Central server maintains a master X25519 keypair (
- Native Detached Background Daemon Execution (
--detach/-d,status,stop):- Added native background process detachment for both
rwarden dashboardandrwarden pushvia--detach(or-d). - Implemented cross-platform PID tracking (
~/.routewarden/*.pid) and persistent background log redirection (~/.routewarden/*.log). - Added global and subsystem-scoped management commands:
rwarden status [dashboard|push]andrwarden stop [dashboard|push].
- Added native background process detachment for both
- Standalone Micro-Binaries (
cmd/shipper&cmd/dashboard):rwarden-shipper(cmd/shipper): Ultra-lean micro-binary (~6.2 MB) stripped of SQLite, embedded Web UI assets, HTML/JS/CSS, and GeoIP code. Dedicated for edge nodes and low-RAM VPS instances.rwarden-dashboard(cmd/dashboard): Standalone SOC dashboard server binary (~11 MB) dedicated to web serving, SQLite persistence, and SSE event streaming.- Monolithic Host CLI (
rwarden): Unified full toolkit maintained at ~12 MB with zero external runtime dependencies.
- Dedicated Container Distribution Images (
cli,shipper,dashboard):- Published three targeted images to GitHub Container Registry (
ghcr.io/routewarden):ghcr.io/routewarden/cli:latest: Unified full toolkit (~12 MB binary) with Docker CLI for container tailing.ghcr.io/routewarden/shipper:latest: Ultra-lean micro-image (~6.2 MB binary) with zero SQLite and zero UI assets, supporting Docker socket tailing, multiple access log files, and hybrid ingestion.ghcr.io/routewarden/dashboard:latest: Standalone SOC security dashboard image (~11 MB binary) serving port7890.
- Published three targeted images to GitHub Container Registry (
- Concurrent Multi-Source & Multiple File Ingestion:
- Added support for concurrent multiple log file tailing via repeatable
-f, comma-separated paths, glob patterns (*.log), and positional arguments alongside Docker container discovery.
- Added support for concurrent multiple log file tailing via repeatable
- Real-Time Central Dashboard Status Ribbon & Sources API:
- Injected real-time status ribbon into SOC dashboard interface displaying both local containers and remote nodes with dynamic online/idle/offline health pulses.
- Extended
/api/sourcesto return live telemetry and event counters for all connected remote agents. - Added automated log translation from Traefik JSON, Nginx text, Caddy JSON, and Routewarden security verdicts into unified NCSA/Combined log format.
- Ultra-Lightweight Real-Time Security Dashboard (
rwarden dashboard):- Replaced the multi-container monitoring stack with an ultra-lightweight real-time security dashboard powered by Routewarden's embedded SOC engine and SQLite persistence.
- Drastically reduced memory footprint from ~350MB+ down to ~8MB RAM.
- Single-port embedded HTTP web server and SSE stream serving live interactive analytics at
http://localhost:7890. - Automatic Docker container discovery for
routewarden=true/routewarden.logs=truevia/var/run/docker.sock. - Native execution engine: serves self-contained SOC dashboard and real-time SSE stream with zero external dependencies.
- Added flexible flags:
--port(default 7890),--file(monitor specific log file),--container(tail target container),--label(custom Docker discovery label),--no-open, and--export.
- Built-in Roff Man Page Generator (
rwarden man):- Expanded
man.gogenerator to coverkeys,register,push,status, andstopsubcommands and flags.
- Expanded
- Shell Autocompletion Scripts (
rwarden completion):- Added completion for
-d/--detach,status,stop,dashboard_cmds, andpush_cmdsacross Bash, Zsh, Fish, and PowerShell.
- Added completion for
- Comprehensive Unit & Integration Test Suites:
- Added zero-socket integration and unit tests covering cryptographic edge cases (
crypto_test.go), keystore management (keys_test.go), ingestion endpoints (ingest_test.go), registration & flusher retries (register_test.go,push_flusher_test.go), and concurrent multi-agent streaming (integration_test.go).
- Added zero-socket integration and unit tests covering cryptographic edge cases (
- Native Linux Package Management via NFPM (
.deb,.rpm,.apk):- Configured GoReleaser NFPM packager to build and publish native packages across major Linux distributions:
- Debian / Ubuntu (
.deb): Direct installation via APT (curl -fsSLO ... && sudo apt install ./rwarden_linux_amd64.deb) with automated dependency resolution. - Red Hat / Fedora / CentOS / Rocky Linux (
.rpm): Direct package installation via RPM (sudo rpm -ivh ...). - Alpine Linux (
.apk): Standalone APK package installation (apk add --allow-untrusted ...).
- Debian / Ubuntu (
- Standardized package metadata, license file mapping to
/usr/share/doc/rwarden/copyright, and binary placement in/usr/local/bin/rwarden.
- Configured GoReleaser NFPM packager to build and publish native packages across major Linux distributions:
- Official Homebrew Tap Integration (
routewarden/homebrew-tap):- Published official Homebrew formula
Formula/rwarden.rbsupporting native compilation and bottled releases viabrew install routewarden/tap/rwarden. - Added automated GoReleaser v2
brewsformula publishing pipeline triggered on release tags with fine-grained GitHub token authentication.
- Published official Homebrew formula
- Dedicated macOS and Linux Installation Documentation:
- Redesigned the CLI Installation Guide and CLI Overview with tabbed, platform-specific installation workflows for macOS (Homebrew, automated curl installer, manual binary, Gatekeeper quarantine mitigation) and Linux (APT, Homebrew, RPM, APK, curl, manual binary).
- Added comprehensive uninstallation commands covering Homebrew, APT, RPM, APK, and standalone binaries.
Changed
- Multi-Image CI/CD Workflows:
- Updated GitHub Actions workflows (
ci.ymlandrelease.yml) to build, test, and publishcli,shipper, anddashboardcontainer images.
- Updated GitHub Actions workflows (
- Synchronized Versioning Script (
scripts/update-version.sh):- Synchronizes versions across root
main.go,cmd/shipper/main.go, andcmd/dashboard/main.go.
- Synchronizes versions across root
- Version Alignment & Installer Script Synchronization:
- Upgraded universal installer script (
install.sh) fallback and default tag tov5.0.0. - Synced documentation version registry (
version.json) and release download artifacts tov5.0.0.
- Upgraded universal installer script (
[v4.5.3] - 2026-10-17
Added
- Official Homebrew Tap Integration (
routewarden/homebrew-tap):- Published official Homebrew formula
Formula/rwarden.rbsupporting installation viabrew install routewarden/tap/rwarden. - Added GoReleaser v2
brewsautomated formula publishing configuration in.goreleaser.yamland release workflow.
- Published official Homebrew formula
[v4.5.2] - 2026-10-17
Fixed
- Duplicate Time Column in Incident Triage Table (
routewarden-overview.json):- Excluded raw JSON timestamp attributes (
timestamp,time,ts) in theorganizetransformation of Panel 50 (🚨 Interactive Threat Incident Triage Table), eliminating the duplicate time column. - Excluded auxiliary and middleware fields (
request_uri,geoip_country_code,geoip_country_name,is_private,duration) to prevent unindexed columns from cluttering the incident triage grid.
- Excluded raw JSON timestamp attributes (
- Observability Dashboard Metric & Legend Standardization:
- Added clean
legendFormattemplating across Top Target Paths (), Top Triggered Rules / Signatures (), Security Events by Verdict Over Time (), and Verdict Breakdown (), eliminating raw Loki label syntax. - Standardized verdict color mappings (
BLOCK= red,ALLOW= green,THROTTLED= yellow,BYPASS= blue) across trend graphs and donut charts.
- Added clean
[v4.5.1] - 2026-10-17
Fixed
- Pure Non-Root GeoIP Init Container Execution (
docker-compose.yml):- Reconfigured
geoip-initvolume mount target to/home/curl_user(the native home directory ofcurl_user), eliminating root permission write errors (curl: (23) client returned ERROR on write). - Removed requirement for elevated container privileges (
user: "0:0"), ensuring the entire Routewarden observability stack runs strictly under unprivileged user contexts.
- Reconfigured
[v4.5.0] - 2026-10-17
Added
- Automated Ingestion-Time GeoIP Resolution (
config.alloy&docker-compose.yml):- Integrated
stage.geoipinto the log processing pipeline to resolve rawclient_ipagainst MaxMindGeoLite2-Country.mmdb. - Added template stages normalizing
country_code(injecting MaxMind ISO 3166-1 alpha-2 code and classifying RFC 1918 / loopback ranges asLAN) and human-readablecountry_name(or"Local Network"). - Added automated
geoip-initservice in bundled Docker Compose stack with configurableGEOIP_DB_URLmirror for zero-friction database acquisition. - Exposed
geoip-datapersistent volume mounted read-only to Alloy (/etc/alloy/geoip:ro).
- Integrated
- Enhanced Threat Profiling & Observability Panels (
routewarden-overview.json):- Renamed "Top Attacked Endpoints" to "Top Target Paths" and upgraded LogQL query with dynamic template filtering (
verdict=~"$verdict"). - Added
🛡️ Defense Action Breakdowndonut chart panel visualizing enforcement mode distributions (silentDrop,text,json,custom,default). - Added
🌐 Top Protected Virtual Hosts & Servicesbar gauge panel displaying the top backend services and virtual hosts under threat. - Added
⏱️ Threat Inspection Latency & Tarpit Timingdual-series timeseries panel tracking p95 and average execution latency (duration_ms/latency_ms). - Rebalanced Threat Analysis grid layout into a structured 3-column row and adjusted downstream incident triage table and log stream rows.
- Renamed "Top Attacked Endpoints" to "Top Target Paths" and upgraded LogQL query with dynamic template filtering (
[v4.4.0] - 2026-10-16
Added
- File-Based Configuration (
configFile/config_file):- Added support for loading a base
routewarden.jsonpolicy file and merging inline options on top across the evaluation engine (engine.NewEngine) and all gateway generators. - Added
configFileandconfig_fileproperties to the official Routewarden JSON Schema (config.schema.json) andrwarden schemaoutput. - Added Docker labels parsing support for
traefik.http.middlewares.<name>.plugin.routewarden.configFile(and snake_case alias). - Added generator support for emitting
configFileacross Traefik Dynamic YAML, Traefik TOML, Traefik Docker labels, Caddyfile (config_file), and OpenResty NGINX Lua (config_file). - Added base config file path diagnostics in
rwarden validate.
- Added support for loading a base
- Observability Dashboard Map Layer Update:
- Migrated the GeoIP threat map layer in the bundled dashboards from Carto to OpenStreetMap.
- Comprehensive Test Coverage & Anti-Evasion Matrix:
- Added extensive unit and integration tests across Docker labels parsing, candidate path evasions (multi-consecutive slashes, mixed backslashes, matrix parameters, and multi-layer percent encoding), response mode generators, and CLI commands.
Security
- CRLF Injection Prevention in Gateway Config Generators (
engine/engine.go):- Sanitized carriage-return (
\r) and newline (\n) characters from user-supplied pattern strings before emitting gateway-specific configuration snippets (Traefik TOML, Traefik Docker labels, NGINX Lua). - Characters
\rand\nare replaced with their literal\rand\nescape sequences in all generated outputs, preserving pattern intent while eliminating injection risk.
- Sanitized carriage-return (
Changed
- Canonical Directive Standardization & Gateway Generator Alignment (
engine/engine.go):- Emitted strictly canonical
status_code,retry_after_seconds, andtarpit_max_duration_secondsdirectives in Caddyfile generation (rwarden generate --target caddy), aligning with Caddy Warden v1.5.0+. - Standardized CLI configuration samples and generator templates on canonical
blockPatterns/block_patternsandallowPatterns/allow_patterns.
- Emitted strictly canonical
- JSON Schema Parity & Alias Cleanup (
config.schema.json):- Removed deprecated legacy alias properties (
pathPatterns,action) from official embedded schema (rwarden schema) in favor of canonicalblockPatterns,allowPatterns, andmode. - Added
trustedProxiesdefinitions across official schemas and evaluation engines.
- Removed deprecated legacy alias properties (
[v4.3.0] - 2026-10-05
Added
- Request Body Security Inspection (
checkBody&checkBodyPatterns):- Integrated request body payload inspection into the CLI evaluation engine (
engine/config.go&engine/engine.go), allowing offline simulation of body pattern matching across Traefik, Caddy, and NGINX. - Added
-b,--bodyand--check-bodyCLI flags torwarden testfor auditing HTTPPOST,PUT, andPATCHpayloads. - Supported configurable body truncation (
checkBodyMaxBytes, default: 65536 bytes) across simulation engines.
- Integrated request body payload inspection into the CLI evaluation engine (
- Default Pattern Configuration Toggles & Gateway Generator Alignment:
- Added support for
disableDefaultPatternsanddisableDefaultAllowPatternsconfiguration aliases alongsideenableDefaultPatternsandenableDefaultAllowPatterns. - Updated Caddy (
enable_default_patterns), NGINX (enable_default_patterns), and Traefik generator templates to seamlessly output native pattern toggles.
- Added support for
- Comprehensive CLI Automation Test Suite:
- Added automated test cases covering stdin config piping (
cat config.json | rwarden test -c - /path), schema validation (rwarden schema), query testing flags (-q), and client IP allowlist verification (--ip).
- Added automated test cases covering stdin config piping (
Fixed
- IPv6 Scope Zone Identifier Normalization (
engine/ip.go):- Stripped RFC 4007 interface zone identifiers (
%eth0) and normalized bracketed IPv6 remote addresses during IP allowlist evaluation, preventing valid link-local and scoped addresses from being rejected.
- Stripped RFC 4007 interface zone identifiers (
- Docker Compose Indexed Array Label Conversion:
- Added support for array index notation in Docker labels (e.g.
blockPatterns[0],blockPatterns[1],allowedIps[0]), ensuring ordered conversion into YAML list sequences for Traefik.
- Added support for array index notation in Docker labels (e.g.
- Flag Canonicalization & Alias Cleanup:
- Canonicalized CLI flag definitions across
test,validate,generate, andsandbox, removing redundant aliases in favor of POSIX standard flags.
- Canonicalized CLI flag definitions across
[v4.2.0] - 2026-10-04
Added
- Threat Geography & GeoIP Intelligence Suite:
- Global Attack Origins Map (
geomappanel) rendering real-time geospatial attack concentrations and clusters across the globe mapped to ISO 3166-1 alpha-2 country codes. - Top Attacking Countries (
bargaugepanel) ranking top nation-state sources of blocked probes and malicious traffic. - Country Threat Share (
piechartpanel) showing percentage distribution of hostile requests by origin nation. - Interactive
$country_codetemplate variable with multi-select support to filter events and metrics across the dashboard by origin country.
- Global Attack Origins Map (
- Malicious User-Agent & Scanner Profiling:
- Automated scanner detection (
bargaugepanel) identifying and profiling offensive security toolkits (Nuclei, Nikto, sqlmap, Gobuster, Nmap, Masscan, curl, python-requests, and Go-http-client). - Attacked HTTP Methods & Verbs distribution (
piechartpanel) revealing threat actor request methods (GET,POST,HEAD,CONNECT,OPTIONS).
- Automated scanner detection (
- Layer 4 & Layer 7 Multi-Protocol Convergence:
- L4 vs L7 Threat Convergence Over Time (
timeseriespanel) correlating HTTP reverse proxy blocks (Traefik, Caddy, NGINX) with Layer 4 TCP connection bans and UDP packet drops. - Protocol Breakdown (
piechartpanel) tracking traffic proportions across protected protocols (http,ssh,dns,dht,tcp,udp). - Transport Split (
bargaugepanel) comparing connection-oriented TCP vs datagram UDP flows. - Interactive
$protocoland$transporttemplate filter variables for fine-grained multi-protocol drilldowns.
- L4 vs L7 Threat Convergence Over Time (
- Optional Threat Alerting & Automated Incident Notification Channels:
- Pre-configured alerting rules, optional and disabled by default (enabled via
rwarden dashboard up --enable-alerting):rw-ddos-attack-spike: Hostile attack rate spike alert triggering when block rate exceeds 10 req/s over 5m.rw-sensitive-path-probe: Immediate critical alert on hostile access attempts to.env,.git, or cloud credential files.rw-l4-brute-force: Layer 4 brute-force surge alert when >15 connection drops or bans occur within 3m.rw-scanner-nuclei-sqlmap: High-urgency alert when active exploitation tool signatures are detected.
- Multi-channel notification receivers pre-configured for Slack (
${SLACK_WEBHOOK_URL}), Discord (${DISCORD_WEBHOOK_URL}), PagerDuty (${PAGERDUTY_KEY}), and Generic Webhooks (${ALERT_WEBHOOK_URL}).
- Pre-configured alerting rules, optional and disabled by default (enabled via
- Public & Shared Dashboards with Iframe Embedding:
- Enabled
publicDashboardsfeature toggle for zero-login public links to live threat telemetry. - Enabled frame embedding for embedding threat widgets directly into SecOps intranets or customer portals.
- Enabled
- Interactive SOC Incident Triage Table & Threat Intelligence Drilldowns:
- Dedicated SOC triage grid (
tablepanel) displaying real-time forensic event records. - Interactive one-click investigative drilldowns on attacker client IPs:
- AbuseIPDB: Instant IP reputation check, report counts, and abuse confidence score (
https://www.abuseipdb.com/check/${__data.fields.client_ip}). - VirusTotal: Cross-engine malware, scanner, and infrastructure scoring (
https://www.virustotal.com/gui/ip-address/${__data.fields.client_ip}). - Shodan: Open ports, running daemons, and banner reconnaissance (
https://www.shodan.io/host/${__data.fields.client_ip}). - Forensic Threat Hunter: Instant pivot into explore view pre-filtered to the attacker's client IP.
- AbuseIPDB: Instant IP reputation check, report counts, and abuse confidence score (
- Direct top-bar navigation shortcuts for rapid threat hunting.
- Dedicated SOC triage grid (
Fixed
- Docker Label Conversion for Indexed Array Notation (
labels.go):- Added support for array index syntax in Traefik Docker labels (e.g.
blockPatterns[0],blockPatterns[1],allowedIps[0]), properly preserving order and converting indexed entries into formatted YAML list sequences.
- Added support for array index syntax in Traefik Docker labels (e.g.
- Dashboard Offender IP Data Links (Panel 8): Replaced
${__series.name}with${__field.labels.client_ip}in "Top Offender IP Addresses & GeoIP", preventing country code suffixes (e.g.[US]) from leaking into external threat intelligence URLs (AbuseIPDB, VirusTotal, Shodan, and Loki Explore). - Dashboard Template Variable Filter Wiring: Enabled multi-select and dynamic regex filtering (
allValue: ".*",multi: true,refresh: 1) on$gatewayand$verdict, and wired stream selector filters across dashboard panels so that toolbar dropdowns properly filter panels. - Block Ratio Division by Zero Protection (Panel 4): Added
"noValue": "0%"to the Block Ratio stat panel to gracefully display0%during fresh installations with zero logs instead ofNaN%. - Secret-Safe Alerting Configuration: Replaced placeholder Slack/Discord/PagerDuty dummy keys with clean environment variable references, fully preventing GitHub Push Protection and Secret Scanner false-positive blocks.
[v4.1.1] - 2026-10-02
Fixed
- Alloy Multi-Label Relabel Matching (
config.alloy):- Fixed an issue in
discovery.relabelwhere multi-source label evaluation with semicolon separators failed when evaluatingroutewarden.logs=truealongside legacyroutewarden=truelabels (regex = ".*(true|1|yes).*").
- Fixed an issue in
- Premature Security Log Drop in Pipeline (
config.alloy):- Eliminated a duplicate
stage.droprule running before the verdict template normalization. Gateways emittingtype="routewarden_block"(Traefik) andaction="blocked"(TCP Warden) now properly normalize toverdict="BLOCK"before unparseable noise is dropped.
- Eliminated a duplicate
- HTTP Gateway Log Normalization (
config.alloy):- Mapped
type="routewarden_block"toverdict="BLOCK"andtype="routewarden_allow"toverdict="ALLOW"across Traefik, Caddy, and NGINX logs.
- Mapped
- TCP Warden Metadata Extraction (
config.alloy):- Extracted full Layer 4 metadata (
service,protocol,transport,client_ip,country_code,flag_emoji,level, andreason) for unified dashboard correlation.
- Extracted full Layer 4 metadata (
- Runtime Environment Overrides (
rwarden dashboard up):- Added repeatable
--env/-eflags torwarden dashboard up. - Added
${ENV_VAR:-default}parameter fallbacks acrossdocker-compose.ymlso custom environment variables, SMTP credentials, and OAuth SSO settings are respected at runtime.
- Added repeatable
- TCP Warden Sample Configuration & Obsolete Flags:
- Fixed
samples/tcp-warden/docker-compose.yaml,README.md, andtcp-warden.yamlby removing non-existent flags (--tcp-warden,--host,--no-docker) and adding the properroutewarden.logs=truelabel for the Routewarden Observability Stack.
- Fixed
- UDP Port Exposure in Docker Image:
- Added
1514/udpto theEXPOSEdirective inDockerfilefor network UDP syslog ingestion.
- Added
Changed
- Pure Opt-In Container Discovery & Self-Logging Protection:
- Replaced broad container name regex matching (
.*(routewarden|traefik|caddy|nginx|tcp-warden).*) with a strict, label-based Pure Opt-In model (routewarden.logs=trueorroutewarden=true). - Completely prevents the observability stack from capturing its own internal logs or scraping unrelated host containers (databases, web applications, or unmanaged proxies).
- Added stream-level log noise filtering to automatically discard plain-text container startup banners, health check probes, and ordinary proxy access lines lacking structured Routewarden security fields (
verdictoraction). - Simplified
docker-compose.ymlby eliminating negative exclusion labels across all observability services.
- Replaced broad container name regex matching (
[v4.1.0] - 2026-10-01
Added
- Security Observability Stack (
rwarden dashboard):- Replaced the embedded monolithic web dashboard with a cloud-native telemetry stack.
- Added
rwarden dashboard up(default) to orchestrate and launch the full stack via Docker Compose with pre-provisioned data sources and security dashboards. - Added
rwarden dashboard downto cleanly stop and remove running stack containers. - Added
rwarden dashboard statusto inspect container health, active port bindings, and endpoint URLs. - Added
rwarden dashboard export [dir](and--dir <path>) to extractdocker-compose.ymland dashboard assets to disk for standalone customization and GitOps workflows.
- Trusted Proxies Support Across All Generators (
trustedProxies):- Full code generator support for
trustedProxiesacross all supported targets:- Traefik Dynamic File Provider YAML (
http.middlewares.routewarden.plugin.routewarden.ipFilter.trustedProxies) - Traefik Dynamic File Provider TOML (
[http.middlewares.routewarden.plugin.routewarden.ipFilter] trustedProxies = [...]) - Traefik Docker Compose Labels (
traefik.http.middlewares.<name>.plugin.routewarden.ipfilter.trustedproxies=...) - Caddyfile (
trusted_proxies <ips/cidrs...>) - NGINX OpenResty Lua (
trusted_proxies = { ... })
- Traefik Dynamic File Provider YAML (
- Full code generator support for
- Redirect Mode Security Hardening (
redirectUrl):- Strict URL scheme validation in
rwarden validateandengine.NewEngine, restrictingredirectUrltohttp://,https://, or root-relative paths (/...) to eliminate open-redirect andjavascript:attack vectors.
- Strict URL scheme validation in
- Centralized Documentation & Universal Installer Integration:
- Centralized CLI documentation and guide hosted at Routewarden Documentation.
- Integrated with the unified ecosystem installation script served directly at
https://routewarden.github.io/install.sh.
- Multi-Architecture Docker Container Build Optimization:
- Upgraded Dockerfile with BuildKit cache mounting (
--mount=type=cache) for Go package modules and build caches, substantially speeding up container build times. - Added native cross-compilation support utilizing
BUILDPLATFORM,TARGETOS, andTARGETARCHwith automatic fallback tolinux.
- Upgraded Dockerfile with BuildKit cache mounting (
Fixed
- Dashboard Export
--dirFlag Parsing:- Fixed an issue where passing
rwarden dashboard export --dir <dir>treated the literal flag"--dir"as the destination folder. The export command now seamlessly accepts both flag and positional arguments.
- Fixed an issue where passing
- Dashboard Subcommand Routing:
- Disallowed implicit fallback on unknown dashboard subcommands; invalid subcommands now report a helpful error with valid choices rather than silently launching containers.
- TCP Warden YAML Detection in
validate:- Tightened heuristics in
rwarden validateto require a.yaml/.ymlextension or a top-levelversion:key, preventing false-positive skips for JSON configs containing nested version fields.
- Tightened heuristics in
[v4.0.1] - 2026-09-26
Added
- Multi-App Version Sync:
- Unified version synchronizer and multi-target documentation linking in Routewarden ecosystem docs.
- Enhanced Error Diagnostics:
- Clearer syntax error messages when validating malformed
tcp-warden.yamlconfigurations.
- Clearer syntax error messages when validating malformed
[v4.0.0] - 2026-09-25
Added
- Routewarden TCP Warden Integration (
rwarden generate tcp-warden&rwarden validate):- Declarative generation of
tcp-warden.yamlconfigurations directly from centralized Routewarden JSON policies. - Strict syntax, schema, and CIDR validation for
tcp-warden.yamlvia CLI arguments or stdin pipelines.
- Declarative generation of
- Real-Time TCP Monitoring in Routewarden Dashboard:
- Direct ingestion and real-time visualization of structured
tcp-warden.jsonlevent streams. - GeoIP mapping, protocol breakdowns, connection velocity metrics, and dynamic ban tracking.
- Direct ingestion and real-time visualization of structured
- Routewarden TCP Warden Standalone Application (TCP Warden Docs):
- Dedicated, zero-allocation Layer 4 TCP security proxy daemon for SSH, SMTP, POP3, IMAP, and generic TCP tunnels.
- Bidirectional CrowdSec integration (LAPI bouncer decision ingestion and scenario log export).
- Built-in management REST and SSE API (
:9091) with hot-reload support (SIGHUP). - Official JSON Schema
tcp-warden.schema.jsonand Docker Compose recipes.
[v3.0.0] - 2026-09-25
Added
- Self-Hosted Security Dashboard (
rwarden dashboard):- Real-time, zero-dependency web UI embedded in the
rwardenbinary — no Node.js, no external database, no cloud services required. - Zero-Config Docker Discovery: Auto-detects and streams logs from running Traefik, Caddy, and NGINX containers via the local Docker socket.
- Log File Tailing: Tail local log files or wildcard glob patterns with automatic log rotation support.
- Real-Time Live Event Feed: WebSocket / SSE stream of blocked requests with full-text search, container filtering, pause/resume, and clear controls.
- Attack Analytics: Interactive timelines (24h, 6h, 1h), blocks-per-minute chart, top attacked endpoints, top offender IPs, and response mode distribution.
- Sources & Container Management: View all active log sources with live status badges and one-click filtering.
- Real-time, zero-dependency web UI embedded in the
- v1.2 — GeoIP & IP Intelligence:
- Country resolution with flag emojis via embedded GeoLite2 MMDB or
ip-api.comlive fallback. - Deep IP Intelligence (
/api/ip/:ip): Threat risk score, ISP / ASN resolution, geographic location, behavioral patterns, top targeted endpoints, and paginated event history. - Config Viewer (
/api/config/:id): Inspect and render the liveroutewarden.jsonfrom any discovered container.
- Country resolution with flag emojis via embedded GeoLite2 MMDB or
- Tailscale & NetBird Mesh VPN Auto-Detection:
- Native identification of Tailscale CGNAT peers (
100.64.0.0/10) and NetBird ULA overlay peers (fd00::/8) with dedicated metadata and flag emoji (🔒). - RFC 5737 documentation ranges correctly classified as
LAN / Reserved Test Network.
- Native identification of Tailscale CGNAT peers (
[v2.1.0] - 2026-09-24
Added
- Flexible Positional Arguments & Lenient Flag Parsing:
- Direct positional inputs for all commands:
rwarden test /.env,rwarden validate [config],rwarden generate <target> [config], andrwarden sandbox <target> [config]. - Flags can now be placed interchangeably before or after positional arguments.
- Automatic fallback to
routewarden.jsonin current working directory when--configis omitted invalidateandgenerate.
- Direct positional inputs for all commands:
- Shorthand Flag Aliases:
- Added
-cfor--config,-tfor--target,-qfor--query,-Xand-mfor--method,-H(repeatable) for--header,-nfor--dry-run,-dfor--detach,-pfor--print-config, and-vforversion.
- Added
- Target & Format Aliases:
- Target generator and sandbox accept standard aliases:
yaml,yml,toml,compose,labels,docker-compose,caddyfile,openresty.
- Target generator and sandbox accept standard aliases:
- Production Gateway Config Adaptation in Sandbox:
- Support for passing complete, production Traefik (
traefik.yaml,traefik.toml), Docker Compose (docker-compose.yaml), Caddy (Caddyfile), and NGINX (nginx.conf) files directly torwarden sandbox. - In-memory auto-adaptation: rewrites external upstream backend URLs, proxies, and certificates for isolated local testing without modifying original configuration files.
- Live probe testing (
--test) accommodates upstream reachability (HTTP 200, 502, 504) as allowlist pass-through.
- Support for passing complete, production Traefik (
- Dedicated Sandbox Teardown Command:
rwarden cleanup(andrwarden sandbox cleanup) to stop and prune dangling or detached sandbox containers in one command.
Fixed
- Fixed RE2 regex backreference in Traefik label parsing to ensure 100% Go regexp standard library compliance.
- Prevented multiline upstream regex greediness in NGINX config adaptation from corrupting
server {blocks. - Injected missing
middlewares:parent block in synthetic Traefik sandbox YAML generation. - Enhanced label normalization to recognize root-level response parameters (
status,statusCode,mode,action,customResponseText). - Removed legacy direct boolean
silentDropproperty fromConfigschema, structs, and Docker label converters.
[v2.0.0] - 2026-09-21
Added
- Ephemeral Gateway Sandbox (
rwarden sandbox):- Spin up live, ephemeral container environments for Traefik, Caddy, and NGINX (OpenResty) pre-configured with Routewarden security rules.
- Automatically translates and mounts native dynamic configurations into isolated test containers.
- Interactive foreground mode with instant graceful teardown on
Ctrl+C. - Detached background mode (
--detach/-d) for local dev workflows and integration testing. - Automated probe testing (
--test) to execute live HTTP test suites asserting blocking and bypass behavior. - Dry-run mode (
--dry-run) to inspect generated gateway configurations and exact Docker run commands without launching containers.
- Custom Routewarden Plugin Support:
--plugin-version: Specify custom plugin version/tag/branch for testing specific releases.--plugin-path: Mount local plugin repository directories for real-time plugin development.
- Pre-flight Environment Validation:
- Added early Docker installation and daemon accessibility checks to fail fast with actionable guidance.
- Enhanced Container Tooling:
- Included
docker-cliinside the Routewarden container image (ghcr.io/routewarden/cli).
- Included
[v1.1.0] - 2026-09-21
Added
- Multi-Gateway Config Generator (
generate):- Convert
routewarden.jsoninto native configuration for Traefik Dynamic YAML, Traefik Docker Labels, Caddy Caddyfile, and NGINX / OpenResty Lua. - Added support for
--config -to stream configuration via standard input.
- Convert
- Client IP Whitelist Simulation (
test --ip):- Test client IP evaluation against CIDR blocks and single IP allowlists offline.
- HTTP Header Smuggling Inspection (
test --header):- Test custom headers in
Key:Valueformat to evaluate reverse proxy path normalization anti-evasion.
- Test custom headers in
- Config & Query Precedence in Offline Testing:
- Added
--config <path>flag torwarden test. - Added
--check-queryboolean flag.
- Added
- Comprehensive Configuration Validation (
validate):- Added HTTP status code range checks (100–599).
- Added response mode validation and required target URL validation.
- Added CAPTCHA provider validation.
[v1.0.0] - 2026-09-20
Initial Release
- Path Anti-Evasion Inspection Engine (
test):- Offline candidate path extraction simulating Traefik and Caddy middleware pipelines.
- Recursive multi-layer URL percent-decoding (
%252e%252e). - Semicolon matrix parameter stripping (
/;param/.env). - Windows/IIS backslash normalization (
\..\). - Null-byte injection scrubbing (
%00). - Dot-segment path traversal resolving (
/static/../.env). - Default block pattern matching across sensitive files.
- Default allow pattern overrides.
- Configuration Validator (
validate):- Offline schema validation of
routewarden.json. - Detection of invalid regular expressions and malformed CIDR blocks.
- Offline schema validation of
- Official JSON Schema Export (
schema):- CLI command emitting
config.schema.jsondirectly for IDE integration.
- CLI command emitting
- Distribution:
- Single-binary zero-dependency Go distribution for macOS, Linux, and Windows.
- Automated installation script (
curl -fsSL https://routewarden.github.io/install.sh | bash). - Official multi-architecture Docker container image on GitHub Container Registry (
ghcr.io/routewarden/cli:latest).