Page MenuHomeSolus

Update caddy to 2.4.3
ClosedPublic

Authored by YakoYakoYokuYoku on Jun 19 2021, 3:40 PM.
Tags
None
Referenced Files
F10942995: D11308.id27373.diff
Fri, Jul 14, 3:33 PM
F10894808: D11308.diff
Jul 1 2023, 12:57 PM
F10864562: D11308.id27373.diff
Jun 17 2023, 8:24 AM
F10859412: D11308.id27293.diff
Jun 16 2023, 1:44 AM
F10854999: D11308.diff
Jun 14 2023, 1:41 AM
F10839371: D11308.diff
Jun 9 2023, 8:25 PM
F10798933: D11308.id.diff
May 28 2023, 11:55 AM

Details

Summary

Changelog:

  • In reverse_proxy, the max_idle_conns_per_host option has been removed (both Caddyfile and JSON). For Caddyfile, basically the property was renamed to keepalive_idle_conns_per_host. In JSON, the property was simply removed, the keep_alive/max_idle_conns_per_host should be used instead. Previously, the Caddyfile subdirective set both MaxConnsPerHost and MaxIdleConnsPerHost, which was confusing; and the JSON properties overwrote each other, so one was removed.
  • Security patch in the FastCGI transport that now sanitizes paths against directory traversal outside the site root.
  • Fix canonicalization redirects in file_server. v2.4.2 introduced a bugfix for these redirects when used inside handle_path (i.e. rewriting the path by stripping a prefix), but caused a regression for many other use cases. This release includes a proper fix for all known, tested cases. Basically: these redirects are not issued if the filename of a path was rewritten internally.
  • Refactor and export SanitizedPathJoin for use in fastcgi
  • Don't persist parsed template
  • Only redirect if filename not rewritten
  • Fix overwriting of max_idle_conns_per_host.

Signed-off-by: Martin Reboredo <yakoyoku@gmail.com>

Test Plan

Started the caddy service, reloaded it with a custom configuration (including reverse proxy and PHP FastCGI), stopped and restarted to see that it still uses my custom config.

Diff Detail

Repository
R5152 caddy
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 814
Build 814: arc lint + arc unit