v0.39.2
This commit is contained in:
1 parent
d455028de3
commit
5b2eaaff61
36 files changed
+2544
-102
No files matched your search
@@ -2,6 +2,13 @@
|
||||
|
||||
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.39.2 — Central cache decision and public static assets for logged-in users
|
||||
|
||||
- **Static assets for logged-in users:** fixed public CSS/JS/images/fonts getting `BYPASS / cache_rule` as soon as a browser carried a session cookie. Root cause: a request-stage `pass` from a session/Cookie rule disabled the cache in `route_cache.rs` before the static-cookie options (`static_ignore_cookies`, `static_ignore_vary_cookie`) were consulted. Added a central decision (`cache::request_gate`, `static_cookie_guard_relaxation`, `shared_static_response_reason`) with fixed precedence: security, configuration, explicit VCL `pass`, VCL Cookie guard, default request policy, backend response. New request action `cookie_pass` (VCL `return(cookie_pass)`, RustProxy extension) marks Cookie/session guards; it is relaxed only for GET/HEAD static-extension requests without `Authorization` when no other rule would bypass the request with guards removed or without cookies. Explicit `pass` is never relaxed and existing configurations are not rewritten; the rules editor offers **Convert to Cookie guard** for Cookie-only `pass` rules. Session, framework and CDN remaining-cookie templates now insert `cookie_pass` (WordPress/WooCommerce split into a path `pass` and a Cookie guard). A static fill whose Cookie is ignored in the key is stored only if the original backend reply is 200, explicitly public (`public`, `s-maxage`, `max-age>0` or future `Expires`), not HTML/XHTML and has no `Set-Cookie`, `private`, `no-store`, `Vary: *` or `Vary: Authorization` — evaluated before response rules, so `strip_set_cookie`/`ignore_cache_control` cannot share a private reply; such fills are refreshed proactively without the client Cookie. New reason codes `cache_rule_cookie`, `cache_miss_static_cookie`, `response_static_not_public`, `response_static_dynamic`; header names and formats are unchanged. **Test a request** uses the same decision and reports `reason_class`, `static_cookie_relaxed` and `shared_static_check`. Downgrading to 0.39.1 or older requires converting `cookie_pass` rules back to `pass`. Unit and proxy integration tests cover the regression matrix (anonymous/session CSS, Drupal 6 JS with query, fonts, `Vary: Cookie` + `Accept-Encoding` variants, HTML, private routes, Authorization, private/Set-Cookie/HTML/unproven statics, explicit pass, GET/HEAD, options off).
|
||||
- **Configuration compatibility:** configurations without `cookie_pass` are unchanged and load in both directions. A configuration that uses `cookie_pass` is rejected by 0.39.1 and older.
|
||||
- **Edge-case smoke test:** added `tools/dev/cache_edge_smoke.py`, a dependency-free black-box test of the real binary. `local` starts a mock origin and a headless proxy and runs 67 cache/VCL edge cases with cross-user leak detection (split and non-UTF-8 Cookie fields, `%2E`/path-parameter paths, HEAD/Range/304, compression and `Vary` variants, request coalescing with concurrent users); `remote` runs read-only checks against a deployed vhost with diagnostic headers enabled.
|
||||
- **Maintenance:** `cargo fmt --check` and `cargo clippy` are clean again (`cache_plan` formatting, `is_multiple_of` in the VCL importer).
|
||||
|
||||
## 0.39.1 — HEAD cache-fill and public Vhost cookie template (source-only changes)
|
||||
|
||||
- **Selective Drupal 6 parent-session cleanup (0.39.1, no version bump):** the existing `remove_req_cookies(...)` / `remove_named_cookies` action now supports one case-sensitive trailing wildcard (for example `SESS*` or `SSESS*`), while exact-name matching and all separate CDN templates remain intact. Empty, shorter-than-3-character and embedded wildcard patterns are rejected. Added an opt-in VCL example that preserves local `session` cookies and explicit `BYPASS`, Rust regression cases and PL/EN UI hints. Verify cookie ownership before enabling and test logged-in sessions against a real origin.
|
||||
|
||||
Reference in new issue
Block a user