v0.39.1
This commit is contained in:
1 parent
08d1608ef5
commit
d455028de3
16 files changed
+191
-48
No files matched your search
@@ -57,7 +57,7 @@ A framework template recognizes only the listed paths or cookie names. Where a s
|
||||
| Template (internal key) | Rules / default | Exact effect | Deployment notes |
|
||||
|---|---|---|---|
|
||||
| **CDN technical cookies** (`cdn`) | 5 request rules, all **On** | `pass` non-GET/HEAD; `pass` `/admin`, `/api`, `/auth`, `/login`, `/logout`, `/panel`, `/konto`, `/dashboard`; `pass` `Authorization`; strip **the entire Cookie header only if every cookie name** belongs to the fixed Cloudflare/Akamai technical list; then `pass` if any Cookie remains. | Do not replace the anchored allowlist with a contains/substring match. Cookie names: `__cf_bm`, `cf_clearance`, `_cfuvid`, `__cfruid`, `__cfseq`, `_abck`, `ak_bmsc`, `bm_sz`, `bm_sv`. Use only if those values are irrelevant to the origin's representation. |
|
||||
| **Selected parent-domain cookies** (`publiccookies`) | 1 request rule, **Off**; **Vhost-only** | Only on GET/HEAD with Cookie, without Authorization and outside specified private prefixes: remove **only exact cookie names** entered by the operator; no forced cache lookup and no `stop`. | Replace `REPLACE_WITH_VERIFIED_PARENT_COOKIE_NAME` with verified, nonsession names. Other cookies remain and can trigger the CDN remaining-cookie `pass` guard. |
|
||||
| **Selected parent-domain cookies** (`publiccookies`) | 1 request rule, **Off**; **Vhost-only** | Only on GET/HEAD with Cookie, without Authorization and outside specified private prefixes: remove **only selected exact cookie names or trailing-`*` prefixes** entered by the operator; no forced cache lookup and no `stop`. | Replace `REPLACE_WITH_VERIFIED_PARENT_COOKIE_NAME` with verified names or prefixes (e.g. `SESS*` for an unrelated Drupal 6 parent, never if this Vhost uses Drupal sessions). Other cookies remain and can trigger the CDN remaining-cookie `pass` guard. |
|
||||
|
||||
**Safe order for a Vhost using both:**
|
||||
|
||||
@@ -70,7 +70,7 @@ A separate **Any Cookie** guard should also follow the cookie cleanup if used. T
|
||||
|
||||
**Why names must be verified:** request `Cookie` carries *names and values*, not the `Domain` attribute that originally set the cookie. RustProxy cannot automatically tell whether it came from a parent host. If the parent site and application use the **same** cookie name for different purposes, name-based deletion is unsafe. Prefer host-only cookies at the issuer or an explicit per-route design instead. Removing a Cookie changes both the cache decision **and** what the backend receives.
|
||||
|
||||
For copyable VCL syntax, see [parent-domain cookie removal](VCL_TRAFFIC_COOKBOOK.md#12-parent-domain-cookies-remove-selected-names-opt-in), [`public-vhost-remove-parent-cookies.vcl`](../examples/vcl/public-vhost-remove-parent-cookies.vcl) and [`cdn-technical-cookies.vcl`](../examples/vcl/cdn-technical-cookies.vcl). The selective `remove_req_cookies(...)` instruction is a **RustProxy extension**, not standard Varnish VCL.
|
||||
For copyable VCL syntax, see [parent-domain cookie removal](VCL_TRAFFIC_COOKBOOK.md#12-parent-domain-cookies-remove-selected-names-opt-in), [`public-vhost-remove-parent-cookies.vcl`](../examples/vcl/public-vhost-remove-parent-cookies.vcl) and [`cdn-technical-cookies.vcl`](../examples/vcl/cdn-technical-cookies.vcl). The selective `remove_req_cookies(...)` instruction accepts exact names and a single trailing wildcard (`prefix*`) and is a **RustProxy extension**, not standard Varnish VCL. For Drupal 6 parent cookies see [`drupal6-parent-session-cookies.vcl`](../examples/vcl/drupal6-parent-session-cookies.vcl).
|
||||
|
||||
## 4. Public content and cache TTL (10 scenarios)
|
||||
|
||||
|
||||
Reference in new issue
Block a user