This commit is contained in:
Mateusz Gruszczyński committed 2026-11-19 12:40:17 +01:00
1 parent d4a604970e
commit 38a23e2210
40 files changed
+928 -532

No files matched your search

+10 -2
View File
@@ -2,11 +2,19 @@
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 — Docker agent resource safeguards (0.38.6 source patch)
## 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.
- **Docker backend diagnostic header (formatting fix):** shorten the opt-in `X-Rust-Proxy-Backend` value for Docker publications from `docker-<agent>-<service hash>/docker` to `<agent>/<service hash>` while preserving the agent and 12-character service hash. Internal backend IDs, routing, logs, monitoring, ordinary Vhosts and the header name remain unchanged. No new configuration or version bump.
- **Public static asset caching:** added `cache.static_ignore_vary_cookie` (default `true`, Vhost override/inheritance supported), which removes `Cookie` from a qualifying `Vary` response when ignoring static request cookies. Requires an explicitly public and otherwise cacheable response; retains the other Vary fields and rejects private, no-store, Set-Cookie and invalid responses. Only enable it for assets whose entire representation is independent of cookies; the setting is available under Cache → Static & diagnostics and Vhosts → Cache.
- **RFC 9111 `Vary` variant matching (fix):** normalize insignificant list whitespace and equivalent repeated field lines for known list-valued request headers; canonicalize case-insensitive `Accept-Language`, `Accept-Encoding`, `Accept-Charset` tokens, equivalent quality weights, and `Accept` media types without folding case-sensitive parameters. Preserve ordering, quoted strings, absent-vs-empty fields, opaque/custom headers, `Cookie` boundaries and `Vary: *` rejection. HOT/COLD now use v2 variant keys; existing v1 disk variants safely miss and refill instead of being reused under new semantics. No config/API or version change.
- **Vhost country picker:** Security → Country access uses the same searchable country selector as Settings → Policies, keeping the existing country-code format.
- **Certificate generation:** the terms agreement and production issuance confirmations use switches when switch controls are enabled; neither is auto-accepted.
**Docker agent safeguards carried forward from the 0.38.6 source patch:**
- **Docker-agent memory and connection safety:** reuse pooled Docker API connections (bounded idle and active connections), cap concurrent inventory requests at two (HTTP 503 with `Retry-After: 1`), fetch container details with eight workers and cache them for 15 seconds. Every published port of one container now receives the same CPU, RAM and restart details.
- **Safer enrollment and polling:** global constant-memory rate limit for one-time enrollment (burst of six attempts, one refill per second; HTTP 429 with `Retry-After: 1`), shorter collector locks during Docker API/public IP calls, and bounded HTTP read/write timeouts.
- **Agent diagnostics:** authenticated on-demand `GET /v1/diagnostics` returns RSS, Go heap allocation, goroutine count and Linux open file descriptor count without exposing process details at `/healthz`. Rebuild and restart the Docker agent to activate this source-only patch; these changes are not part of the original 0.38.6 release.
- **Agent diagnostics:** authenticated on-demand `GET /v1/diagnostics` returns RSS, Go heap allocation, goroutine count and Linux open file descriptor count without exposing process details at `/healthz`. Rebuild and restart the Docker agent for these safeguards; the original 0.38.6 binary did not include them.
## 0.38.6 — chart crosshair and editor layout