This commit is contained in:
Mateusz Gruszczyński committed 2026-11-14 17:24:12 +01:00
1 parent 78dbb31487
commit f48843e934
83 files changed
+7304 -1203

No files matched your search

+38 -17
View File
@@ -2,7 +2,28 @@
Release history focused on **features, settings, default behavior, compatibility and fixes**. Changes to internal code structure and preliminary performance experiments are intentionally omitted. Historical descriptions reflect their respective releases; consult the current documentation for the settings available in the latest release.
## Unreleased
## 0.37.1 — Precise SNI certificate selection, OPNsense deploy script, Docker panel polish
- **Cache rules (VCL-style):** new **Settings → Cache → Rules** tab and **Cache rules for this vhost** in the vhost editor. Rules are built graphically (*If … Then …*) for three stages: request (bypass, remove cookies, remove query parameters such as `utm_*`, add a header or cookie to the cache key), backend response (TTL, grace, do not store, ignore backend Cache-Control, remove Set-Cookie) and deliver (set or remove response headers), with conditions on host, URL, path, extension, method, query parameter, header, cookie, client IP, status, Content-Type and response header. Vhost rules run before global rules; the editors show when a vhost rule overrides a global one, and a vhost can ignore global rules. Includes templates (WordPress, static files, tracking parameters, API, language variants, 404, X-Powered-By), drag-and-drop ordering, a request tester (`POST /api/cache/rules/test`, also for unsaved edits), VCL import of a common subset with warnings for the rest (`POST /api/cache/rules/import-vcl`), a read-only VCL preview, in-memory match counters (`GET /api/cache/rules/stats`) and Prometheus `rust_proxy_cache_rule_matches_total`. Configuration: `cache.rules`, vhost `cache.rules` and `cache.ignore_global_rules`. Existing safeguards (Authorization, Basic Auth, login providers, sticky sessions, Set-Cookie) stay in force. See [docs](docs/CACHE.md#cache-rules-vcl-style).
- **TLS certificate selection (fix):** a name such as `app.apps.example.com` no longer gets a `*.example.com` certificate. Wildcards now match exactly one label, and when no SNI name of a stored certificate matches, RustProxy checks the DNS SAN names each certificate really covers (the certificate with the fewest names wins) before falling back to the default certificate. This affects vhosts and Docker vhosts in *Automatic* / *Global SNI* certificate mode. See [docs](docs/CERTIFICATES.md#one-vhost-several-certificates-sni-selection).
- **Docker certificate hint:** in *Automatic* mode the service editor shows which stored certificate SNI will pick, or warns which names no stored certificate covers. See [docs](docs/DOCKER_DISCOVERY.md#certificates).
- **OPNsense ACME deploy script:** `integrations/opnsense-acme/opnsense-rustproxy-cert-deploy.sh` rewritten for the current certificate API and the os-acme-client automation (*System or Plugin Command* → **Deploy certificates to RustProxy**, runs after every issue/renewal). Certificates are found by name (`--list` shows them; os-acme-client stores them under an internal id the GUI does not show) and mapped to RustProxy ids with `RUSTPROXY_CERTIFICATES='*.apps.example.com=apps-wildcard …'`; explicit `CERT_FILE`/`KEY_FILE` still work. Supports `https://` and loopback `http://` panels, `RUSTPROXY_TLS_VERIFY=no` for a self-signed or not yet valid panel certificate, `RUSTPROXY_PINNED_PUBKEY`, `RUSTPROXY_CACERT`, `RUSTPROXY_RESOLVE`, `--check` and `--config`. On failure it logs the RustProxy error code with a hint (for example `certificate_api.deploy_forbidden`: the key is reload-only, enable *Also allow deploy*). See [docs](integrations/opnsense-acme/README.md).
- **Docker agent addresses:** agent 0.37.1 also reports container bridge addresses (`docker0`, `br-*`, `podman*`, `cni-*`, `virbr*`, source `bridge`). **Default backend IP** groups the detected addresses into *Recommended*, *Other host interfaces* and *Container bridges* and marks the primary address with ★. See [docs](docs/DOCKER_DISCOVERY.md#default-backend-ip).
- **Docker Overview cards:** the layout editors and the dashboard settings list show each Docker card type once instead of four times; the agent is chosen in the list when adding the card, and further copies of the same type can be added until four are visible. Visible copies show the selected agent name instead of *#2–#4*. See [docs](docs/DOCKER_DISCOVERY.md#overview-cards).
- **Docker vhosts:** container state, health, uptime, CPU, RAM (with a fill bar against the memory limit) and restarts are shown as separate coloured chips; the page description under the title was removed; the alias domain list no longer repeats the master domain. See [docs](docs/DOCKER_DISCOVERY.md#container-state-and-history).
- **Settings → Docker agents:** *Test connection* sits next to *Remove* and shows its result in a bubble; *Publish from container labels* has a **?** button with the label reference and a `docker compose` example. See [docs](docs/DOCKER_DISCOVERY.md#test-connection-and-one-time-codes).
- **Settings → Certificate API redesigned:** keys are listed first (permission badge, certificate chips, created / last used) with *Edit*, *Regenerate token* and *Revoke token*; **New key** and *Edit* open an editor (inline under the edited key) with *Reload only* / *Deploy and reload* as two clear choices and the certificates chosen in the same searchable picker as elsewhere in the panel, showing each certificate's host names; a new ID can be typed for a certificate that the first deploy will create, and RustProxy ACME certificates are marked reload-only. The custom token is an optional advanced field, the one-time token appears in a highlighted box with a copy button, and the curl example is collapsible. Keys migrated from older versions with access to all certificates (`*`) are marked and the editor explains that certificates must now be chosen; previously saving such a key failed with *Certificate API tokens require 1-32 valid certificate IDs*. See [docs](docs/CERTIFICATES.md#restricted-certificate-api).
- **Settings, clearer layout:** See [docs](docs/CONFIGURATION.md#settings-pages).
- **API tokens (Security)** now work like Certificate API keys: list first (RO/RW badge, address chips, created / last used), **New token** opens an editor with *Read only* / *Read and write* as two choices and source addresses as chips (a single IP becomes /32 or /128, invalid entries are rejected before saving); the one-time token appears in a highlighted box with a copy button. The leftover "API tokens moved to Security" card in *Administration* was removed. See [docs](docs/API.md#api-tokens-in-the-panel).
- **Restart markers per field:** *Administration* and *Prometheus* mark exactly the fields that need a restart with a RESTART badge (the card shows LIVE + RESTART); everything else applies immediately.
- **Prometheus** is split into *Endpoint*, *Bearer token* (status badge, copy button) and *Metric groups*; allowed scraper addresses are chips and the scrape config is collapsible. See [docs](docs/MONITORING.md#prometheus-exporter).
- **Global block / allow:** a status bar at the top shows every rule (country, User-Agent, IP/CIDR, methods, Content-Type, rate limit) with its state and jumps to it; each section shows an on/off badge and hides its fields while off. Countries are chosen from a searchable list (ISO code and name) instead of typing codes. See [docs](docs/ACCESS.md#global-block--allow-policy).
- **Listeners** are compact cards (name, ID, addresses, Internal/Public, TLS, H1/H2/H3, disabled) that expand for editing; *Currently active* is shown at the top. A listener with an invalid field opens automatically when saving. See [docs](docs/TRANSPORT.md#frontend-listeners).
- **Long help texts** in Settings are shortened to two lines and expand on click; the save button of each settings form stays visible at the bottom of the screen and shows *Unsaved changes* when the form was edited.
- **System information** is rebuilt from the same blocks as Overview: a host card (OS, environment, kernel, CPUs, RAM, swap, host and RustProxy uptime, LIVE/MANUAL, *Copy diagnostics* for bug reports), tiles for system and RustProxy CPU with short history lines, load average, RAM and file descriptors, a *RustProxy process* card (RSS split into HOT/transient cache, anonymous and file-backed memory, cache/transform budgets, start time, swap, disk I/O, cgroup limit), a *Network* card (active interfaces, idle ones folded, RX/TX history), the certificate toolchain (Python → pip → Certbot) and data paths with *Copy*. The history lines live only in the browser tab. See [docs](docs/MONITORING.md#system-information).
- **Interface scale (fix):** at a smaller interface scale (Settings → Appearance) dialogs such as logs, configuration history, vhost editors and About shrank together with their content and left the rest of the screen empty. Dialogs now keep their on-screen size at every scale (the content inside gets smaller, so more of it fits), and layout sizes based on the window width/height are corrected for the scale as well. See [docs](docs/DASHBOARD.md#interface-scale-and-dialogs).
- **Corner style:** new and updated controls (keys, tokens, chips, status badges, container meters, listener cards, rule status bar) follow the *Corner style* appearance setting instead of fixed rounding. See [docs](docs/DASHBOARD.md#corner-style).
- **Panel icons:** the ★ *make master domain* button in domain pickers is no longer replaced by a shield icon.
## 0.37.0 — Docker domains, certificate lists, agent provisioning and host diagnostics
@@ -238,7 +259,6 @@ Release history focused on **features, settings, default behavior, compatibility
- **Tinyauth compatibility patch:** the Nginx verifier now receives one consistent auth-request header set. RustProxy removes ForwardAuth module markers (`X-Forwarded-Host`, `X-Forwarded-URI`) while preserving the verified client IP and original request URL. This resolves the `conflicting auth module headers` rejection introduced in Tinyauth 5.2.0 without disabling anti-spoofing checks. Added regression tests for conflicting module headers and forged client identity. Use the internal `/api/auth/nginx` endpoint.
- **Tinyauth timeout:** a verifier request that exceeds the configured deadline returns a distinct **504 Tinyauth timeout** page. Invalid verifier responses, unexpected HTTP statuses and oversized identity/response data return **502 Tinyauth verification error**. All retain no-store and the authenticated-request isolation marker, so Vhost/global error-page overrides do not mask Tinyauth's diagnostic category.
## 0.34.13 — Global security, section-based configuration API and panel UX
- **GeoIP:** on-demand data refresh moved from the isolated `POST /api/geoip/update` to `POST /api/config/geoip/update`, colocated with the revisioned GeoIP settings. This action does not change the config revision; the UI and RO/RW token allowlist use the new URL. Section paths now consistently use kebab-case, including `not-found-hosts` (the JSON property remains `not_found_hosts`). Old action/section paths are removed.
@@ -355,7 +375,6 @@ Release history focused on **features, settings, default behavior, compatibility
- Web Server-generated errors now reuse the bundled application-style HTML pages (400/403/404/500 and other available templates), with the same styled fallback for statuses such as 405. Proxy-generated non-template errors continue to use ordinary HTTP status text; no implementation diagnostics are exposed publicly. Preserved HTTP statuses, `HEAD` behavior, `Allow`/`Retry-After`, existing custom pages, backend-origin responses and authentication behavior.
- Removed an unused forwarding accessor (`peer_header`) to avoid a Rust `dead_code` warning without changing forwarded header behavior.
## 0.34.1 — explicit configuration, hot reload and API tokens
- `--config /absolute/file.json` / `RUST_PROXY_CONFIG`: an existing JSON file becomes the authoritative configuration source. Panel edits and restored revisions are written atomically to that file, with revision history in SQLite. Manual edits are imported by an explicit reload. Fingerprints reject unexpected external changes.
@@ -365,10 +384,10 @@ Release history focused on **features, settings, default behavior, compatibility
- Settings supports generate/rotate/revoke for a standalone Prometheus scrape Bearer token. Only its hash is stored. An explicit revocation record overrides legacy environment credentials.
- Moved RO/RW API token management from **Settings → Administration** to **Settings → Security**; Administration now links directly to the token card.
## 0.34.0 — cache consistency, static delivery and proxy optimization
### Cache
- Improved HOT/COLD cache retention when saving operational Vhost settings such as backend keepalive, connection recycling and load-balancer diagnostics. Unrelated changes should no longer unnecessarily clear compatible cached content.
- Changes affecting served content invalidate the relevant Vhost cache scope and pending fills. Global changes to response representation may still invalidate content more broadly.
- Added protection against restoring obsolete persistent COLD responses after an interrupted scoped purge or restart. Previously stored objects may need to be populated again during compatibility checks.
@@ -376,12 +395,14 @@ Release history focused on **features, settings, default behavior, compatibility
- Improved cache HIT/LRU accounting, `Vary` handling and response-header isolation. Existing `private`/`no-store` rules, conditional requests, PURGE/BAN controls and authenticated-request protections remain in effect.
### Static content and backend traffic
- Added **`sendfile: off | auto`** in **Web Server → Delivery**, disabled by default. `auto` supports eligible full static GET responses of **64 KiB or more** on Linux over unencrypted HTTP/1.1; TLS, HTTP/2, HTTP/3, ranges, compression, transformations and other excluded requests use standard delivery.
- Increased the default HTTP/1.1 idle backend connection pool size for **new** Vhost/origin configurations from **4 to 64**. Existing explicitly saved values remain unchanged; a larger pool can use more file descriptors and connections.
- Reduced overhead in common reverse-proxy routing, upstream connection reuse, backend selection, request forwarding and streamed responses. Existing ACLs, trusted-proxy checks, request limits, load-balancer choices and retry rules are preserved.
- Optimized request forwarding for common HTTP/1.1 paths and forwarding headers without changing public path validation, IPv6 handling or the HTTP/2 and HTTP/3 security model.
### Metrics, logging and compatibility
- Improved traffic analytics, per-Vhost cache statistics, latency reporting and log handling under load. Analytics collection remains bounded and non-blocking; dropped samples are still counted when limits are reached.
- Reduced monitoring overhead without removing existing Prometheus, dashboard, cache or protocol metrics. Dashboard labels and reported cumulative latency values remain compatible.
- Preserved protected `X-Request-ID` formatting as **64 lowercase hexadecimal characters**; request IDs now use cryptographically secure 256-bit randomness combined with the process sequence.
@@ -645,7 +666,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.28.x — external certificates and GeoIP
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.28.2** | Safer external PEM/key access, including POSIX ACLs and Certbot symlinks; certificate API keys now default to limited reload-only permissions and explicit certificate grants. |
| **0.28.1** | Support externally managed absolute certificate/key paths and hot reload after Certbot renewal; keep external key files outside RustProxy backups. |
| **0.28.0** | Add manual GeoIP downloads, flexible CSV/MMDB source URLs and checksum validation; improve active listener/protocol display and cache Via controls. |
@@ -653,7 +674,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.27.x — compression and managed deployment
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.27.3** | Protect ownership during backup restore; enable scheduled GeoIP updates; fix listener overrides and valid WebSocket upgrade framing. |
| **0.27.2** | Fix managed Certbot issue/renew invocation without requiring operators to delete existing private Python environments. |
| **0.27.1** | Add application-managed Python/Certbot installation with system fallback and clearer runtime errors; extend sortable host lists and first-admin help. |
@@ -662,7 +683,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.26.x — cache, logs and interface operations
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.26.7** | Show HOT/COLD cache capacity and progress; improve HTTP `Age` diagnostics and safe compression behavior for eligible cached/static responses. |
| **0.26.6** | Store backend table preferences per administrator; correct combined IP/country ACL logic and clarify the ACL editor's allow/deny modes. |
| **0.26.5** | Align compact filters and streamline navigation from Streams into listener configuration; no configuration migration. |
@@ -675,7 +696,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.25.x — Web Server and recovery
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.25.7** | Add quick Vhost enable/disable and clearer active-state controls. |
| **0.25.6** | Show upstream connection age, reuse and recycle diagnostics in the backend panel. |
| **0.25.5** | Add configurable HTTP/1.1 upstream connection recycling by age/request count and expand connection telemetry. |
@@ -688,7 +709,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.24.x — monitoring, security and transport
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.24.10** | Persist separate error-file logging settings and keep compatibility with existing logs. |
| **0.24.9** | Introduce encrypted Secret Store for managed credentials, including migration of ACME DNS secrets. |
| **0.24.8** | Expand Cache diagnostics with memory breakdowns and HOT/COLD occupancy. |
@@ -704,7 +725,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.23.x — certificates and dashboard diagnostics
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.23.3** | Make external certificate deploy idempotent and self-reconciling; add opt-in legacy WebSocket compatibility. |
| **0.23.2** | Add configurable Cache/Transform chart history windows and fix live-log CLI connections to HTTPS administration. |
| **0.23.1** | Add live Cache and Transform activity charts with per-scope request and outcome rates. |
@@ -713,7 +734,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.22.x — cache controls and protocol handling
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.22.3** | Support guarded cleartext H2 upgrade; add hot reload and external deploy for manual certificate IDs from CLI/API. |
| **0.22.2** | Add bounded safe-method failover retry, per-backend concurrency/capacity limits and detailed upstream failure diagnostics. |
| **0.22.1** | Simplify WebSocket transport selection and add focused active-tunnel, protocol and selective cache-invalidation controls. |
@@ -722,7 +743,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.21.x–0.19.x — transformations and certificate workflows
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.21.0** | Add a dedicated Transform workspace, savings/error counters and cache diagnostics for transformed representations. |
| **0.20.0** | Reorganize Certificates into Installed, Renewal and Generate; expose managed ACME job and Certbot diagnostics. |
| **0.19.4** | Improve presentation of idle and very small backend traffic rates. |
@@ -734,7 +755,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.18.x — Docker discovery and UI
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.18.8** | Correct the explicitly disabled backend TLS verification path while retaining separate destination protection. |
| **0.18.7** | Make Response Time History collapsible by default. |
| **0.18.6** | Add live network-interface throughput and process diagnostics. |
@@ -748,7 +769,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.17.x–0.13.x — platform and routing improvements
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.17.0** | Add Debian package/service assets, a Grafana dashboard, broader Prometheus metrics and local-response/404 hostname support. |
| **0.16.1** | Hide internal configuration revision numbers from normal save feedback while retaining conflict protection. |
| **0.16.0** | Keep unmatched paths on the main backend when custom locations exist; improve guarded self-admin routing, WebSocket/H3 and resource diagnostics. |
@@ -762,7 +783,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.12.x–0.10.x — API, Streams and disk cache
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.12.1** | Add revisioned per-section configuration API, cache retention across unrelated settings saves and configurable COLD demotion behavior. |
| **0.12.0** | Move TCP/UDP Streams into a dedicated editor with session, traffic and active/pending listener views. |
| **0.11.5** | Add guarded TCP/UDP forwarding, Debian 13 source bootstrap and stricter-but-compatible URL path handling. |
@@ -776,7 +797,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.9.x–0.7.x — administration and access
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.9.0** | Add structured JSONL/Logstash/Loki access-log sinks, expanded Vhost cards, cache inspection and administration HTTPS. |
| **0.8.1** | Enable the shared RAM cache by default and improve conditional/cached static behavior; Vhost and privacy rules still apply. |
| **0.8.0** | Add static-cache extension defaults, per-Vhost rate limits and GeoIP country policies. |
@@ -788,7 +809,7 @@ Release history focused on **features, settings, default behavior, compatibility
## 0.6.x–0.0.x — initial proxy platform
| Version | Technical changes |
|---|---|
| --- | --- |
| **0.6.0** | Unify Vhost configuration, add HTTP-01 and Cloudflare/OVH DNS-01 ACME, and introduce protected Prometheus export. |
| **0.5.0** | Add cache inspection/purge dashboard and first HTTP/3/frontend controls. |
| **0.4.0** | Add validated forwarding identity, Tinyauth protection, named multi-address listeners and HTTP/3 (QUIC). |