3.0.0-rc.11预发布2026-11-08
Added
Reverse proxy
- Custom CA trust anchors: added support for custom CA bundle paths (ca) in reverse proxy configurations for verifying TLS certificates not trusted by standard CA stores (which are often used in internal or private networks). (GitHub issue)
TLS
- Support for unauthenticated requests for mTLS: added clientauthrequired subdirective for tls block, which can allow unauthenticated connections even if mTLS is enabled.
Automatic TLS
- Control over TLS certificate key algorithms: added support for keyalgo and keysize configuration options in ACME automatic TLS configurations. They can be used to configure TLS certificate key (for example, it could be set to RSA with 2048-bit keys or ECDSA). (GitHub issue)
Configuration
- Strict host definitions: added the global strict_hosts directive. When it's turned on, a host defined by host blocks in more than one configuration file fails validation instead of being merged. This is useful when each site lives in its own included file. (thank you, @SridharRG)
Changed
Reverse proxy
- Improved keep-alive handling for intercepted responses: when HTTP response status code interception is enabled, the backend server connection is now reused.
Automatic TLS
- Certificate orders survive reloads: a configuration reload no longer cancels an ACME order in progress. The order finishes (for up to 5 minutes), and with a file-based cache the reloaded configuration uses its certificate, so frequent reloads no longer stall certificate issuance. (thank you, @neurekadev)
- Concurrent certificate provisioning: the ACME background task now obtains and renews up to 4 certificates at once instead of one after another, so servers with many hosts get their certificates much sooner. (thank you, @neurekadev)
- Faster DNS-01 challenges: instead of always waiting 60 seconds after creating each DNS-01 record, Ferron now asks the CA to validate as soon as the zone's authoritative nameservers serve the record when queried from Ferron, still waiting at most 60 seconds. With providers that publish records quickly, each challenge now takes a few seconds. (thank you, @neurekadev)
Fixed
HTTP server core
- Many HTTP correctness improvements: improved HTTP/3 correctness, as well as fixed HTTP/2 graceful shutdown stall bug, and more (see zincio-http changelog).
Automatic TLS
- Fixed TLS parameter support for ACME: the server now accepts TLS cryptographic parameters and client certificate authentication settings for ACME TLS provider. (GitHub issue)
- Orphaned provisioning locks after reloads: when a configuration reload cancelled an ACME order in progress, its lockcertificate lockfile stayed in the cache, and the domain got no certificate until the 5-minute lock lease expired. The lockfile is now removed when the order is cancelled. (thank you, @neurekadev)
OCSP stapling
- Android and old Firefox compatibility: for improved compatibility with Android and old Firefox versions, OCSP stapling functionality now uses SHA-1 issuer name and key hashes instead of SHA-256 by default, if possible.
Forward proxy
- IP blocklist hardening: IP addresses are now canonicalized before checking against the deny list, ensuring consistent matching across IPv4 and IPv6. Also, "current network" server addresses are now blocked by default.
3.0.0-rc.10预发布2026-10-23
Breaking changes
Observability
- EventTraceContext API change: the EventTraceContext struct for ferron_observability has been updated to include tracestate. If your custom Ferron modules rely on the EventTraceContext struct, you may need to update it to include tracestate (you can use tracestate: None).
Added
Runtime
- Support for pinning into specific CPU cores: Ferron now supports pinning worker threads to specific CPU cores (for asymmetric CPU cores and NUMA). This can be configured via the cpu_affinity directive in the global configuration block.
Changed
HTTP server core
- HTTP body buffering: added support for disabling request and response body buffering using Incremental: ?1 or X-Accel-Buffering: no headers.
Observability
- http.route is now a route template: previously, the ferron.request span reported http.route as the requested hostname (or "*"). It now reports the matched route template built from the configured location block names, for example /api/users/:id, and is omitted when no location block matched.
- ferron.host added to request spans: the requested virtual host is now reported as ferron.host on the ferron.request span. It uses the same attribute name as the TLS metrics, so traces and metrics join on the same key. server.address is unchanged and still reports the bound socket address.
- Sampling probability reported in tracestate: when Ferron starts a trace itself and tracesampling uses a ratio, the request's trace context now carries the OpenTelemetry ot tracestate entry (for example ot=0.1), on the propagated headers and on the exported span. Backends that extrapolate sampled traces can scale counts back up; previously a ratio sampler silently reported only the sampled fraction of traffic. No ot entry is written for alwayson, alwaysoff, parentbasedalwayson, a ratio of 1.0 or 0.0, or attributebased sampling. An incoming tracestate is passed through unchanged.
- Active health checking metric attributes: the metrics related to active health checking now have resolved IP address attributes when metricsresolvedip is enabled (similarly to circuit breaker metrics).
- Aggregate active health checking partial success metrics: added a ferron.proxy.health.partial_success metric that reports health check probe results that succeeded only for some backend servers (percentage of successes in 0.0-1.0 scale).
- Circuit breaker and active health check status metrics for multi-address upstreams: improved overall metric clarity and reduced ambiguity when metricsresolvedip is disabled.
- TLS and HTTP protocol error log improvement: when server is logging to text-format application logs (not JSON structured ones), it now logs client IP address and port for TLS and HTTP protocol error logs.
HTTP server core
- request.uri.path improvement: the request.uri.path variable is now resolving to URL-decoded value for more consistent matching. request.uri and request.uri.query are documented as not necessarily URL-decoded.
Fixed
HTTP server core
- trace.id and span.id resolution fix: previously, trace.id and span.id variable interpolations resolve to a doubly hex-encoded IDs, not proper single hex-encoded values.
- HEAD request response body discard: When sending a response for an HTTP HEAD request, the response body is now discarded instead of being sent to the client, improving HTTP spec compliance (see zincio-http changelog).
- Conditional configuration validation: the server is now reporting (via ferron validate) invalid forms of if, ifnot, location and handleerror directives.
- HTTP/3 protocol hardening: hardened the HTTP/3 implementation against potential QPACK decoding vulnerabilities (see zincio-http changelog).
Observability
- tracestate is now exported on spans: the OTLP exporter wrote an empty trace_state on every span, discarding the W3C tracestate that Ferron parses and propagates to upstreams. The span now reports it.
- Span trace flags follow the sampling decision: the OTLP exporter hardcoded the "sampled" flag on every span. The flag sent to the OTLP backend or collector now reflects the recorded decision.
- Prometheus scrape error metric: previously, ferronprometheusscrapeerrorstotal metric didn't increase at all. This has been fix to increase when an internal error with Prometheus endpoint occured.
- Connection pool metric fix: previously, outstanding connection count measured from exported metrics (like Prometheus or OTLP) was bogus, it didn't decrease properly due to a logic bug.
Reverse proxying
- Strict-DNS URL resolution fix: previously, strict-DNS URL resolution dropped the upstream path prefix (like /api in http://backend.example/api). This has been fixed to preserve the upstream path prefix.
3.0.0-rc.9预发布2026-10-04
Breaking changes
Static file serving
- ferron.static.bytessent and ferron.static.filesserved metrics: these metrics are no longer emitted by the static file serving stage. This is to reduce noise in the metrics output. Check your observability workflows.
Added
Observability
- Response header fields in access logs: HTTP access logs now include response header fields, allowing visibility into HTTP response headers, for example for HTTP redirects.
HTTP server core
- Support for interpolated string sources in map: added support for interpolated string sources (in addition to variable name sources) in map directive, allowing mapping multiple values at once into one value.
Changed
HTTP server core
- http block inheritance: a host block now inherits each global http directive that it does not set itself. Configurations that relied on a host block replacing the global http block see the global values apply again for directives the host omits.
Gateway interfaces
- REMOTEADDR and SERVERADDR environment variables: REMOTEADDR and SERVERADDR environment variables are now set to the canonical IPv4/IPv6 representation of the client and server IP addresses, respectively, so that they can be used for access control and logging consistently.
Reverse proxying
- Forwarded header client IP canonicalization: the client IP in X-Forwarded-For and Forwarded headers is now canonicalized to the standard IPv4/IPv6 representation, so that it can be used for access control and logging consistently.
Automatic TLS
- Reduced span attribute noise: request spans related to HTTP-01 challenge no longer include attributes that are not useful for observability, reducing noise in observability pipelines.
Fixed
HTTP server core
- Early hints header fix: previously, when early_hints block was configured with multiple Link header values, only the last one would be sent in the response. This has been fixed to send all header values.
- Variable resolution fix: previously, if Ferron cannot resolve a variable, it kept the placeholder as name (instead of documented {{name}}).
- Per-host trace and tracesampling fix: previously, http { trace { generate, trustrequest } } and http { trace_sampling ... } were silently ignored in host blocks and were only read from the global block, so per-host trace-header trust and per-host sampling did not work. Ferron now resolves both from the matched host block, falling back to the global block.
- protocolproxy fix: previously, http { protocolproxy true } in the global configuration block had no effect unless the configuration also had a host block without a hostname, and the ferron doctor check for it never ran. Ferron now reads the setting from the global http block or from the host block without a hostname, and reports the best-practice violation.
- protocols validation fix: ferron validate did not check http { protocols } values because it looked for the directive in the enclosing block instead of the http block. Invalid values such as h4 are now reported as a configuration error.
- optionsallowedmethods fix: the directive never reached the response.
- optionsallowedmethods response header fix: previously, a resolved value that could not be sent as an Allow header, such as an interpolated value carrying a line break, panicked the worker task and dropped the connection for every OPTIONS * request. Ferron now falls back to the default method list and reports an unusable configured value with ferron validate.
- controlplane.spanlinks.sampled boolean flag fix: previously, the bare directive form read as false instead of true, and ferron validate rejected it. Ferron now reads the flag like every other boolean directive.
- basicauth realm response header fix**: previously, a realm value containing a control byte or a line break panicked the worker task on every 401 or 407 response, because the value is embedded in the authentication challenge header. Ferron now answers without a challenge header and reports an unusable realm with ferron validate.
- Conditional response header fix: previously, a filecachecontrol value that could not be sent as a Cache-Control header panicked the worker task on the 304 and 412 precondition paths. Ferron now omits the header and reports an unusable value with ferron validate. It lives inside the http block, but Ferron read it as a top-level directive of the resolved configuration, so every OPTIONS * response used the built-in default Allow list. ferron validate and ferron doctor accepted the directive, which made the failure silent.
- http block inheritance fix: a host block that set any http directive replaced the whole global http block, so every global setting the host did not repeat was dropped. For example, a host that only set timeout lost the global protocols, h1enableearly_hints, and HTTP/2 and HTTP/3 settings. Ferron now layers the two blocks per directive, matching how directives in every other block inherit.
- HTTP/2 setting range validation: h2maxframesize and h2initialwindowsize accepted values outside the ranges that HTTP/2 requires, so Ferron could advertise a SETTINGS frame that conforming clients reject. ferron validate now reports these values.
- h3qpackblockedstreams usage fix**: the directive takes a stream count, but ferron directives reported it as a boolean flag.
Observability
- Baggage with trustrequest false fix: previously, when trustrequest false was set, the server would still propagate baggage from incoming requests to outgoing requests. Now, baggage is not propagated when trust_request false is set.
- Host observability block fix: previously, when specifying multiple observability blocks inside a host block with IP address or hostname, only the last one was effective. This has been fixed to use all observability blocks, just like with wildcard host blocks.
- Prometheus scrape metrics fix: the ferronprometheusscrapetotal and ferronprometheusscrapeerrorstotal metrics have been renamed to ferronprometheusscrape and ferronprometheusscrapeerrors, respectively (previous behavior would involve totaltotal suffix).
- Circuit breaker metric types fix: ferron.proxy.circuit.opentotal and ferron.proxy.circuit.halfopentimeouts were reported with a signed value on a counter metric. No observability backend supports that combination, so both metrics were silently dropped and never reached Prometheus or OTLP. opentotal now reports as a gauge that rises when a circuit opens and falls when it closes or moves to HalfOpen, and halfopentimeouts reports as an unsigned counter.
- Active health check state per resolved address fix: previously, health check state was keyed by the configured upstream URL, so every address behind one hostname shared a single state entry. One unreachable address marked all of them unhealthy, which returned 503 for every request while healthy capacity was still available. Ferron now tracks health state per resolved address, the same way it already tracks circuit breaker state, and probes each address on its own connection.
- ferron.proxy.dnsstatus attribute consistency fix: previously, backend scoped proxy metrics were emitted with different attribute sets depending on the code path. ferron.proxy.circuit.state and ferron.proxy.circuit.flapping were exported as two separate Prometheus series for the same backend, one with ferron.proxy.dnsstatus and one without, so any aggregation over the metric counted a backend twice and the two series could disagree. Ferron now always reports ferron.proxy.dnsstatus on backend scoped proxy metrics and only gates ferron.proxy.backendresolved_ip behind `metric
3.0.0-rc.8预发布2026-09-28
Breaking changes
Configuration
- Host-isolated handler directives: backend/handler selectors (proxy, fcgi, fcgiphp, cgi, scgi, forwardproxy, root, index, basicauth, ratelimitbackend, static-file tunables, clientipfromheader, traceidheader, httpsredirect, trailingslashredirect, disablesymlinks, directorylisting) no longer inherit from the wildcard ` host into named hosts, while global-scope defaults and location-from-host inheritance keep working. Previously, { proxy ... } would unexpectedly reverse-proxy a named host that only set root. Note: a named host no longer inherits root from , so give each host its own root (or set it globally).
Added
Access control
- Basic auth bcrypt hashes: bcrypt hash formats $2a$, $2b$, $2x$, $2y$ are now supported for Basic Auth. This allows using Ferron with control planes and services that expect bcrypt password hashes.
Changed
HTTP cache
- Zero-result cache purge metric: purges with zero results are now visible via a ferron.cache.zero_purge` metric, which can help debug or monitor cache purge requests that did not match any entries.
Fixed
Configuration
- Spurious configuration file hot-reload fix: previously, the server would sometimes hot-reload the configuration even when no changes were made to the configuration file (something would just read the file). This has been fixed.
Admin API
- Admin API listen fail fix: previously, when configuration is reloaded very frequently, the admin API listener would sometimes fail to bind to the configured address due to a race condition.
Observability
- Prometheus reload listen fail fix: previously, when configuration is reloaded very frequently, the Prometheus listener would sometimes fail to bind to the configured address due to a race condition.
3.0.0-rc.7预发布2026-09-24
Breaking changes
Reverse proxy
- Shorter breaker and timeout defaults: circuitbreaker.openduration default is now 5s (was 30s) and upstream connection_timeout default is now 2s (was 5s), so brief Docker Compose recreates and Apache graceful reloads recover quickly. Increase them explicitly if you need the old behavior.
Forwarded authentication
- Forwarded auth URI behavior change: Ferron no longer appends the original URI path to the redirect URL by default, instead relying on X-Forwarded-Uri header. Use the append_uri subdirective to restore the previous behavior.
HTTP response control
- ferron.ruleid no longer duplicates the status code: the ferron.response.statusrulematched metric now labels each match with the rule's name when set, or status-<code>-rule-<n> (1-based rule position) otherwise. Update dashboards that filter ferron.ruleid by bare status code to use http.response.status_code or the new identifiers instead.
URL rewriting
- rewritelog logs DEBUG instead of INFO: the rewritelog directive now logs each rewrite operation to the error log at DEBUG level instead of INFO, so that it does not pollute normal logs. Update log-level filters to include DEBUG for rewrite logs, or use the new structured log attributes instead.
Added
Reverse proxy
- retryinterval directive**: delay between same-upstream retry attempts plus up to 25% jitter (default 200ms, "0s" disables waiting). Masks brief backend restarts such as Docker Compose recreates or Apache graceful reloads.
Forwarded authentication
- appenduri subdirective**: when enabled, the original URI path is appended to the redirect URL. This can be used to restore the previous default behavior before this version.
Observability
- HTTP/2 and HTTP/3 stream error logging: stream failures (for example malformed requests, flow-control violations, or resets) are now logged to the configured observability sinks with client and server addresses, similarly to connection errors. HTTP/2 stream errors use error.type tcpstreamerror or unixstreamerror, and HTTP/3 stream errors use quicstreamerror.
- Clearer HTTP/2 and HTTP/3 connection errors: connection-level protocol violations are now returned as errors (instead of closing silently), so they are logged as connection errors with a descriptive message.
HTTP cache
- LSCache staleness suffix support: ~s staleness suffix is now parsed in LSCache compatibility, allowing stale cache entries to be purged by single tag or URL.
- X-LiteSpeed-Vary: value= support via request variables: responses declaring value=<name> are now stored instead of bypassed, partitioned per request by the set_var variable <name> (empty when unset). Only one value dimension is supported (last wins); values are normalized and truncated past 256 characters.
HTTP response control
- name subdirective for status rules: status blocks accept an optional plain-string name, surfaced as the ferron.rule_id metric label so same-code rules can be told apart in dashboards.
URL rewriting
- name option for rewrite rules: rewrite blocks accept an optional plain-string name, surfaced as ferron.rewrite.rule_name across rewrite metrics, spans, logs, and access-log fields.
- Per-rule rewrite attribution: ferron.rewrite.rewritesapplied and ferron.rewrite.invalid now carry ferron.rewrite.ruleindex (1-based rule position); spans, access logs, and rewrite_log output additionally report matched-rule counts and per-step from/to URLs for chained rewrites.
Abuse protection and rate limiting
- logrejections option: abuseprotection and ratelimit blocks accept an optional logrejections flag that re-enables per-request rejection debug logs for forensics (default off).
Changed
Reverse proxy
- localhost exception from strict DNS resolution: localhost URLs are no longer resolved via strict DNS; they are treated as local addresses and bypassed to avoid unnecessary DNS lookups.
- Stale pooled-connection forgiveness: a first failure on a reused keepalive connection (SendRequestError) is no longer counted toward the circuit breaker when a same-upstream retry will be attempted. This prevents one dead socket closed during reloads from tripping the breaker when the retry succeeds.
URL rewriting
- ferron.rewrite.rewritesapplied counts rule firings**: the counter now increments once per matched rule (instead of once per rewritten request), so chained rewrites contribute one increment per step. Single-rule rewrites are unaffected.
Abuse protection and rate limiting
- Transition-only rejection logging: ban rejections and rate-limit rejections no longer emit a debug log per request, which could exhaust the observability pipeline under abuse waves. Bans now log Ban triggered / Ban expired transitions plus a ferron.abuseban.activebans gauge; rate limiting logs the first rejection per key (then at most once per minute) without the raw key value. Set the new logrejections option to restore per-request debug logs for forensics.
Fixed
Abuse protection and rate limiting
- Ban eviction race fix: observing an expired ban and evicting it is now atomic, so concurrent requests can no longer delete a freshly re-triggered ban, and each ban expiry is reported exactly once.
HTTP cache
- LSCache stale purge now serves stale: purge operations carrying the stale marker expire matching entries in place instead of deleting them, so they keep serving stale while revalidating (or on error) when a stale window applies, and miss otherwise.
HTTP server core
- Jammed unquoted IP address fix: previously, unquoted IP addresses in ferron.conf files could be jammed together leading to unexpected behavior.
- HTTP/2 flow control fixes: fixed a flow-control bug that caused stream resets when downloading large response bodies with hyper (see zincio-http changelog).
- HTTP/2 and HTTP/3 hardening: improved robustness of HTTP/2 and HTTP/3 server implementation (see zincio-http changelog).
- Active request metric decrement fix: previously, canceled HTTP/2 connections caused active request metric to not be decremented properly, leading to incorrect active request counts.
Admin API
- Admin API listen fail fix: previously, when configuration is reloaded, the admin API listener would sometimes fail to bind to the configured address due to a race condition.
Observability
- Prometheus reload listen fail fix: previously, when configuration is reloaded, the Prometheus listener would sometimes fail to bind to the configured address due to a race condition.
- Global span links fix: the server now fallback back into global span links (control plane metadata) properly.
Reverse proxying
- Reverse proxy stall fix: fixed stalls on some connections caused by aborted connections when the reverse proxy was waiting for a response from an HTTP/1.x upstream server.
- Circuit breaker metric fix: fixed missing circuit breaker metrics when circuit breaker is enabled but not yet opened, so that the ferron.proxy.circuit_breaker.state metric is always emitted.
- Reverse proxy canceled span fix: the server now emits span attributes even when the reverse proxy request is canceled (due to timeout or explicit cancellation), so that the span is not empty and can be correlated with the request.
3.0.0-rc.6预发布2026-09-13
Changed
HTTP server core
- HTTP/2 and overall memory usage optimizations: optimized both reverse proxying and HTTP/2 for lower memory usage, and fine-tuned default jemalloc memory allocator settings.
Fixed
Observability
- Lazy observability event channels: the console, file, OTLP, Prometheus, and StatsD backends now allocate their event channels only when selected by the configuration, instead of pre-allocating ~4 MB each at startup. Idle servers without observability configured use ~20 MB less memory.
Admin API
- Access control bugfix: fixed access control bug that allowed unauthorized access to the admin API (/reload was gated by reload_get instead of reload before the bugfix).
HTTP server core
- Routing bypass fix: previously, a specially-crafted request (with URL-routing) could bypass routing and access files on unintended paths.
Reverse proxying
- Connection pool memory leak fix: fixed connection pool memory leak that occurred when connection is returned to the pool (after proxy received the initial response from an upstream).
Gateway interfaces
- PATHINFO fix: a bug introduced in 3.0.0-rc.4 caused PATHINFO to not be sent at all by default due to an incorrect check.
Forward proxy
- httpversion subdirective fix: the httpversion subdirective now correctly sets the HTTP version for forwarded requests.
- DNS rebinding protection fix: the forward proxy now rejects with 403 (instead of passing the request through to the normal pipeline) when a destination hostname resolves to a denied IP or DNS resolution fails, on both the CONNECT tunnel and absolute-URI forwarding paths. The stage also fails closed with an error status if any other proxy error leaves no response set.
- Hop-by-hop header stripping fix: hop-by-hop headers are now stripped from forwarded requests per RFC 7230 section 6.1, so to not forward them to the upstream server.
3.0.0-rc.5预发布2026-09-10
Added
TLS
- Distributed ACME via shared cache: when cache points at a shared filesystem, Ferron now syncs HTTP-01 / TLS-ALPN-01 challenge data (challengehttp, challengetls) so any node can answer CA validation, and serializes orders with lockcertificate lockfiles (heartbeat + 5-minute stale-break, thundering-herd damping).
Changed
TLS
- Automatic STEK rotation improvements: automatic STEK rotation feature now checks if the key file has been changed on the disk, allowing for distributed STEK rotation without race conditions.
Fixed
Forwarded auth
- Forwarded auth bugfix: improved handling and checking the authentication status when using forwarded authentication, to improve security (thank you, @impietic).
3.0.0-rc.4预发布2026-09-08
Added
Rate limiting
- Distributed rate limiting with Redis/Valkey: the ratelimit module now supports a ratelimit_backend block with type redis for shared token-bucket limits across Ferron instances. The block is inherited from global scope when not set per host/location.
Fixed
HTTP server core
- HTTP/1.x multiple request parsing fix: fixed HTTP/1.x requests being rejected with 400 Bad Request after multiple requests in one connection. (see zincio-http changelog)
- HTTPS redirect fix: https_redirect directive is now effective for block levels above host block (like location or conditional blocks) if specified in the host block.
Gateway interfaces
- CGI and FastCGI PATHINFO fix: previously, PATHINFO was not set correctly in CGI requests (stray leading slash, if PATHINFO is about to be set). Now, PATHINFO is set correctly in both CGI and FastCGI (often PHP-FPM) requests.
3.0.0-rc.3预发布2026-09-06
Added
FastCGI
- Support for multiple FastCGI backends: multiple FastCGI backends can now be configured using multiple fcgi or fcgi_php directives.
Changed
HTTP cache
- Automatic lscachevary vary cookies: request cookies with names starting with lscachevary (or the litespeedvary alias) are now part of the cache key without explicit configuration, matching LiteSpeed behavior. X-LiteSpeed-Cache-Control: no-vary disables all cookie-based vary dimensions for the response.
FastCGI
- fcgiphp subdirectives: the fcgiphp directive now supports same subdirectives as fcgi (except extension and pass). This allows for more fine-grained control over PHP FastCGI requests.
Fixed
HTTP cache
- HTTP cache coalesce timeout fix: coalesce timeout in HTTP cache no longer causes server crashes.
- Default HTTP cache TTL fix: default HTTP cache TTL is now 10% of the time since the resource was last modified (RFC 9111) or disabled (LSCache compatibility). This improves cache consistency.
HTTP compression
- HTTP upgrade fix: HTTP dynamic content compression is no longer applicable for 101 (Switching Protocols) responses for HTTP upgrades to work correctly.
3.0.0-rc.2预发布2026-09-04
Not yet released
Fixed
HTTP cache
- HTTP cache coalesce timeout fix: coalesce timeout in HTTP cache no longer causes server crashes.