This commit is contained in:
Mateusz Gruszczyński committed 2026-11-19 16:23:30 +01:00
1 parent 38a23e2210
commit 45b1fc04c7
36 files changed
+9594 -7892

No files matched your search

+28
View File
@@ -2,6 +2,34 @@
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.
## 0.38.10 — Cache/VCL guide and targeted rule compatibility fixes (source release)
- **Cache settings help modal:** a single in-app guide opens from Settings → Cache (header and Rules subtab). It provides concrete `Cookie`, `return(hash)`, `Vary`, `beresp`/`resp` header and TTL examples, with buttons that paste safe starting points into the *unsaved* graphical VCL importer; stage order, global/per-vhost precedence, unsupported VCL features and diagnostics. Its status line reads the current form values (including unsaved changes) and warns when storage is off, the TTL is zero or RFC mode is selected.
- **Corrected built-in help:** the compatibility-mode fallback for origin `no-cache` no longer claims to require `public`; strict RFC and the separate static-file `Vary: Cookie` requirements remain explicit. Updated both Polish and English text, the documentation and styles.
- **Targeted VCL interpreter improvements:** support `set/unset req.http.<safe-header>` in the graphical rule engine, with the result visible to subsequent rule conditions, `vcl_hash` and the forwarded origin request; preserve per-vhost precedence on header conflicts. Protected authentication, request cache control and transport headers cannot be rewritten through these actions.
- **Response storage override:** `set beresp.uncacheable = false` now reverses an earlier rule-imposed `no_store`/`uncacheable=true` assignment while leaving the origin privacy/security policy and response cache eligibility intact. Per-vhost decisions take priority over conflicting global rules.
- **Conservative VCL import:** restrict conversion of `regsuball(req.url, ...)` to recognised tracking-query removal syntax; unsupported URL rewrites emit warnings instead of silently changing unrelated parameters. Preserve supported actions next to invalid edits, flush long action blocks at the 16-action rule limit, and save zero-action terminal `return(deliver)` rules through the panel. The rule tester now shows request header edits. API rule actions were extended without changing persisted cache-object formats.
- **VCL consistency audit (same version):** the importer now tokenizes escaped quotes/backslashes and rejects unterminated comments or malformed `return`, `set`, `unset` and `hash_data` statements rather than accepting partial prefixes. Standard `hash_data(req.url)` and `hash_data(req.http.Host)` are recognized as already included in the RustProxy cache key; `hash_data` outside `vcl_hash` is warned about. Added focused regression cases.
- **Safer in-panel import and preview:** VCL conversion warnings are displayed **before** any partial rules are added; the user must explicitly accept them. Export is clearly labeled a readable approximation, not a reproducible VCL backup. Removed the ineffective 404 TTL template (storage currently supports only 200) and explained these boundaries in the Cache & VCL modal, PL/EN translations and the embedded Reader.
- **Import race hardening:** closing the VCL importer or editing its source now invalidates in-flight parse results (including edits reverted to the same text); cancelled imports cannot silently add rules after the HTTP response arrives.
- **Unified tester UI and VCL help (same version):** replaced the oversized seven-field request tester layout with compact, responsive request/backend-response sections in global Cache Rules, ordinary Vhosts and Docker vhosts. A shared guide button in both local editors opens the global Cache & VCL modal but inserts examples **only into the initiating editor**. Local path tests automatically send the draft hostname as `Host` when not given; global and local tests preserve their respective draft-rule scopes, existing global/per-vhost precedence and Ignore global rules. The panel and guides clearly distinguish rule simulation from live HTTP/HIT testing and warn about unsaved cache settings. No changes to proxy routing, API schema or stored configuration.
- **Testing status:** additional source-level Rust regression tests and an optional Playwright/Chromium smoke test for global and per-vhost UI imports were added. Browser UI and source-validation checks pass; compilation and Rust integration tests still require a Rust-enabled toolchain before production deployment.
## 0.38.9 — VCL compatibility documentation (source release)
- **Detailed VCL reference:** documented the importer's supported conditions, stages, returns, header operations, unsupported syntax and limits, including practical global/per-vhost examples and testing guidance. Added the guide to the embedded documentation Reader.
- **`Vary` semantics and header safety:** clarified how `set/unset beresp.http.Vary` changes stored variants versus `set/unset resp.http.Vary` changing only the outgoing response; explained Cookie/Authorization safety dimensions, static-asset exceptions, header protection, `Cache-Control` rewriting and removal of `Set-Cookie`.
- **Documentation-only release:** no runtime/API behavior or cache format changes. Rust compilation/runtime tests were not run in this environment.
## 0.38.8 — Varnish-compatible cache policy and VCL rule fidelity (source release)
- **Backend `no-cache` without `public`:** with `varnish_compatible=true`, positive configured fallback TTL now explicitly overrides `no-cache` for otherwise shareable responses, also without a validator. Strict mode (`false`) retains RFC revalidation semantics. With fallback TTL zero, existing ETag/Last-Modified validation remains in place. The override is a RustProxy configuration choice, **not** built-in Varnish behavior.
- **VCL Cookie `return(hash)`:** explicit lookup can override default Cookie bypass in compatible mode; earlier session-cookie `return(pass)` is terminal. Preserved request cookies partition the cache key and are added to downstream `Vary`, with unsafe proactive refresh disabled for credential-partitioned entries. Authorization, request `no-store`, backend `private`/`no-store`/`Set-Cookie` retain their guards.
- **VCL importer and engine:** request `return(hash)`/`return(lookup)` and `return(pass)`, separate `vcl_hash`, terminal returns, nested `if`/`elsif`/`else`, compound boolean guards and in-order request rewrites are handled consistently, including on cache-disabled routes without enabling storage. Unsupported VCL still produces explicit import warnings; this is not a complete Varnish VCL runtime.
- **Backend-response override semantics:** `set/unset beresp.http.<header>` for validated non-protected headers, such as `Cache-Control`, is applied before policy and to delivered responses, including cache-bypassed traffic. Header writes within one stage are ordered; local vhost edits override conflicting global rules. Cached delivery header rules now retain operation order and allow subsequent rules to inspect changed headers.
- **Panel/API:** added backend header actions to the cache-rule editor and OpenAPI; preserve imported `hash_stage` on save/export and document terminal zero-action rules. New regression tests cover cache-policy compatibility, cookie hash behavior, branch precedence, response and deliver header rewriting.
- **Verification:** source-only release; Rust compilation and runtime/protocol tests must be completed in a Rust-enabled CI/build environment before deploying.
## 0.38.7 — static Vary cookie option and panel consistency
- **Static `Vary: Cookie` safety (fix):** preserve the origin's `Vary: Cookie` when a public response has zero remaining freshness or requires revalidation. An otherwise storable zero-TTL response must not trigger the static-cookie override; a positive configured fallback TTL still permits it. No configuration or API change.