This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 11:02:46 +01:00
1 parent aa0a271a1c
commit f38a2b9e5e
38 files changed
+1098 -160

No files matched your search

+8
View File
@@ -2,6 +2,14 @@
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.42.2 — Generic FastCGI/CGI hosting and Apache compatibility
- **Legacy Apache access rules:** compile and enforce `Order`, `Allow from` and `Deny from` for `all`, IP addresses and CIDR networks (IPv4/IPv6), including `Deny from all`, rather than rejecting them independent of Strict mode. This preserves access restrictions. Unsupported security and handler constructs still fail closed; non-security unsupported directives remain warnings when Strict is off.
- **Panel:** clarify that turning Strict mode off does not disable security rules. Show per-Web-Service skipped .htaccess directives with file and line from the compiled configuration; diagnostics are also logged as warnings.
- **Universal FastCGI handlers:** Web Services support `php.handler=php_fpm` (default for existing configurations), `fcgiwrap` (external CGI runner), or `fastcgi` (generic responder). Socket/loopback TCP endpoint, executable extensions, `SCRIPT_NAME` public mount prefix, PATH_INFO, streaming bodies and bounded headers/timeouts are configurable independently per Web Service or shared profile. Verified Vhost Basic Auth identity can populate `REMOTE_USER` and `AUTH_USER`; reserved CGI identity and script parameters are never accepted as untrusted custom overrides. A CGI-only Web Service refuses raw static file delivery. No application-specific filesystem or URL paths are hard-coded.
- **Popular `.htaccess` migration rules:** add `Redirect`, `RedirectMatch`, and bounded `<Files>` / `<FilesMatch>` access-control blocks. Access control is enforced on direct script paths and index files rather than skipped. Unsafe/unknown authentication or execution rules remain fail-closed.
- **Docs and compatibility:** add a generic [FastCGI / CGI guide](docs/FASTCGI.md) with PHP + CGI + static routing examples and an Angie/Nginx-to-RustProxy mapping; update the panel, EN/PL labels, Reader, OpenAPI and regression tests. Existing `php` JSON and profile IDs remain valid. These source changes still require Cargo compilation and real PHP-FPM/fcgiwrap integration tests before production deployment.
## 0.42.1 — HTTP policy scenarios and editor improvements
- **Scenario presets:** the shared HTTP policy editor replaces the two standalone Vary preset buttons with a searchable, grouped catalog of 40 practical scenarios built from 54 rules. Recipes cover header cleanup, CORS, browser security, private/signed/preview requests, cache TTL/grace and revalidation, event streams, access filters, redirects, path rewrites, maintenance, backend selection and transaction diagnostics. Descriptions, setup notes and rule previews show each recipe's effect; configurable or sensitive additions start disabled. Location scope offers 39 scenarios because `pre_route` rewriting precedes location selection. Adding a scenario appends uniquely identified draft rules; saving the containing form activates enabled rules.