Hi,

HAProxy 3.5.0 was released on 2026/12/02. It added 84 new commits
after version 3.5-dev14.

This time again we had a bunch of last-minute reports and regressions,
convincing us to postpone the release by one week. It already happened
for 3.4 and I suspect that it's a new trend we'll have to live with.

As usual I'll try to group changes since 3.4 in main topics, and as
expected a detailed overview alredy appeared on the HAProxyTech blog
here:

  https://www.haproxy.com/blog/announcing-haproxy-3-5

Let me state that this version is huge and difficult to summarize without
leaving too something out, so some will be lost, please do not feel
offended if I forgot to mention your work (and feel free to respond).

1) Core
-------

- Performance & scalability:
  - Scheduler: the global wait queue is gone (tasks always belong to a
    thread and are redispatched to a less loaded one when woken up), and
    a new real-time task class brings the jitter of critical tasks down
    from ~300 ms to less than 2 us under extreme load. A new mechanism to
    submit some work to a foreign thread or thread-group was implemented.
    The default "tune.runqueue-depth" is no longer scaled down with the
    number of threads (it's now fixed at 280 per thread). Large machines
    may see a lower CPU usage.

  - Proxies and servers lists are now doubly-linked, making additions and
    deletions O(1) with 10-20k backends, and finding a free server ID went
    from ~3 ms to ~8 us with 50000 servers. This matters for dynamic
    backends, see below.

  - Idle connection cleanup is now per-thread and lock-free.

  - (experimental) different file descriptor tables can be assigned to
    different thread groups in order to significantly reduce in-kernel
    FD-table lock contention when dealing with high connection rates. This
    almost doubles the connection rate on 64-80 core machines (best with
    4-8 threads per group), which is interesting for massive health checks
    or connection floods. It's still incompatible with a few things
    (reverse HTTP, ssl-mode-async, "lua-load" (use "lua-load-per-thread"),
    "tune.idle-pool.shared full", and the 51d/wurfl/deviceatlas add-ons),
    which is why it stays experimental for now.

  - Log dates now use a time conversion cache (since it doesn't change
    more often than the precision of the output), removing a libc
    localtime mutex from the fast path, and the CBOR log encoding was
    reworked, showing +12% request rate when logging in CBOR.

  - IPv6 addresses in ACL/map files are now parsed before attempting a DNS
    resolution, resulting in huge boot time savings for large IPv6 lists.

- Load balancing:
  - "balance random()" (power-of-N choices) now always picks distinct
    servers on multiple draws, giving better fairness and better respect
    of weights in uneven farms or when servers have more connections than
    others.

  - Consistent hashing lookups' worst case is faster. This mainly concerns
    farms with maxconn-saturated servers, or uneven farms with a server
    having a high weight in the middle of others with low weights (e.g.
    what can happen during a slow start). What's to remember is that corner
    cases will cause less visible effects.

- Filters: a new configuration and sequencing model was adopted,
  completing the work started in 3.4: filter classes and instances are
  declared with "filter-config", activated with "filter-enable" /
  "filter-disable", and ordered per direction with "filter-sequence".
  They're inheritable from named defaults sections, which matters for
  dynamic backends. Implicit core filters (compression, decompression,
  cache, fcgi) are automatically ordered correctly. Note that legacy
  "filter" lines still work (just not mixed with filter-* in the same
  proxy), and "filter-api downgrade-to-legacy" keeps old out-of-tree
  filters working. The CLI gained a new "show filter" command to help
  better see how filters are arranged.

- HTX (internal HTTP representation): the EOM (end-of-message) block
  became a flag that required a block, and a new NOP block was added
  to permit to convey it when no data is queued (e.g. late FIN). This
  is invisible (unless we messed up of course) but should kill an entire
  class of issues that had been floating around lately, oscillating
  between truncated messages, CPU loops and timeouts. Fortunatly they
  were rare but fixing one of them usually meant risking to see the
  other one pop up. Now we should have what we need: mark an end of
  message on an empty or full buffer without using tricks.

- SPOE: a new "on-switching-rules" event lets an agent influence the
  backend selection right when "use_backend" rules are evaluated.

- Resolvers: a DNS response only walks the servers waiting for that same
  record, removing another O(N) response processing time factor.


2) HTTP
-------

- Cache: HTTP 103 Early Hints can now be produced from the cache
  ("early-hints" in the cache section). On eviction, objects with Link
  preload/preconnect headers can be stripped down to their hints, so that
  a later miss can immediately send a 103 before forwarding to the server.
  It is even possible to cache only early hints (no body stored).

- Decompression: requests and/or responses can now be decompressed, in
  HTTP and TCP, via "decompression algo-req/algo-res" and "decompression
  mode-req/mode-res {none|auto|always}" (gzip, deflate, raw-deflate). This
  requires USE_SLZ (whch is the default). The main use case is to compress
  traffic between two haproxy nodes in different AZs/regions to cut
  bandwidth costs, then decompress (and possibly recompress with the
  client's algorithm) on the other side. It can also make sense to deploy
  some haproxy side cars next to application components just for the
  purpose of transparently compressing/decompressing between distant
  nodes. In tests it can even reduce latency for 10 kB objects over GigE.

- Compression: the embedded libslz was updated to 1.4 (in order to benefit
  from decompression), with 1.4x-20x faster compression, better ratios (a
  new text-aware mode brings +15-20% on text/*). On haproxy.org the ratio
  went from 2.5-3 to 4.5-5. SSE (server-sent events) like LLM APIs can
  also very efficiently be compressed now (~20-25x measured).

- SSE: in addition to being compressible, when detected in a response, we
  now automatically switch to no-delay mode. Previously it was required
  to configure "option http-nodelay" for this. The automatic setting
  permits to maintain high performance on regular HTTP traffic and very
  low latency (microseconds) on SSE at the same time.

- Stricter parsing (always on):
  - non-conforming HTTP/1.1 chunk extensions are now rejected (they were
    already dropped, but other proxies could be fooled by malformed ones).
    As a side effect chunk-size parsing is ~20% faster;

  - '%' is rejected in the authority and Host header (H1/H2/H3);

  - a Host header carrying the scheme's default port is normalized like
    the authority, so that ACLs, routing and cache keys always see the
    same value;

  - trailers on H1 and FCGI now get the same checks as on H2/H3, via a
    common trailers parser; this showed us what was missing to continue
    to converge all of them, and the work is going on.

  - the Expect header is always dropped from HTTP/1.0 requests since an
    HTTP/1.1 gateway seeing it could be fooled and emit a 100 interim
    response that would desynchronize the components between it and the
    client.

- HTTP violations: the new global "acceptable-http-request-violations" and
  "acceptable-http-response-violations" keywords enumerate exactly which
  exceptions the "accept-unsafe-violations-in-http-request/response"
  options relax, instead of all at once. This saves users from having to
  wide-open everything just to let one application bug pass through. New
  violations are now rejected by default: HTTP/1 version strings other
  than "1.0"/"1.1", status codes shorter than 3 digits, TRACE with a body,
  and 1xx responses to HTTP/1.0 requests, though they can selectively be
  enabled if absolutely needed (you mustn't).

- HTTP hardening profiles: a new "http-hardening" section defines how to
  react to border-line constructs. These ones are legal but normally not
  used by legitimate clients over the real internet except to construct
  attacks. A profile is assigned per "bind" and per "server" line with the
  "http-hardening" keyword. By default, "bind" lines use "untrusted" for
  clients coming with a public IP address and "trusted" for local/private
  ones, and servers default to "trusted". Three built-in profiles exist:
    - "trusted": everything off: allows legacy internal applications to
      continue to run as usual with their specificities.

    - "untrusted": more protective, rejects things that are known for not
      being uniformly implemented and that risk to cause desynchronisation
      and be used for smugling attacks, such as lowercase methods,
      content-length (CL) + transfer-encoding (TE), CL with leading zeroes
      (octal confusion), duplicate CL, header folding, CTL chars in headers,
      out-of-range status codes or a body on 1xx/204, and deletes header/
      trailer fields whose name contains '_' (generally fused with '-' in
      CGI/FCGI backends). All of these were already handled without risks
      on haproxy but since 3.3 we've seen reports like "if I combine X
      with HAProxy then Y can happen", and the goal here is not to let
      others be fooled before us either.

    - "basic-web": aggressive, for sites only serving browsers with pretty
      common applications: on top of the above, deletes unregistered (X-*)
      header fields (not needed and often used to fake IP addresses in logs
      or even to inject framework-specific attacks), and all trailers (same),
      rejects advanced methods, request bodies on GET/HEAD/DELETE/..., and
      upgrades other than websocket / webtransport. Haproxy.org has been
      running with these settings over the last few weeks and the results
      are interesting, clearly showing attacks:

        $ socat $CLI - <<< "debug counters " | grep -i HRD_REJ.*enf
        2          CNT h2.c:293 h2_prepare_htx_reqline(): "hardening 
HTTP_HRD_REJ_ADV_METH enforced"
        378        CNT h2.c:302 h2_prepare_htx_reqline(): "hardening 
HTTP_HRD_REJ_UNEXP_REQ_PLD enforced"
        14         CNT h3.c:1082 h3_req_headers_to_htx(): "hardening 
HTTP_HRD_REJ_UNEXP_REQ_PLD enforced"
        3          CNT h1.c:326 h1_parse_upgrade_header(): "hardening 
HTTP_HRD_REJ_UNEXP_REQ_UPG enforced"
        25         CNT h1.c:522 h1_headers_to_hdr_list(): "hardening 
HTTP_HRD_REJ_LCASE_METHOD enforced"
        1          CNT h1.c:926 h1_headers_to_hdr_list(): "hardening 
HTTP_HRD_REJ_HDR_FOLD enforced"
        3          CNT h1.c:1019 h1_headers_to_hdr_list(): "hardening 
HTTP_HRD_REJ_HDR_FOLD enforced"
        90         CNT h1_htx.c:224 h1_postparse_req_hdrs(): "hardening 
HTTP_HRD_REJ_ADV_METH enforced"
        221        CNT h1_htx.c:237 h1_postparse_req_hdrs(): "hardening 
HTTP_HRD_REJ_UNEXP_REQ_PLD enforced"

      And noise (probably search engines or dirty browser plugins leaking
      personal data):

        $ socat $CLI - <<< "debug counters" | grep -i HRD_DEL.*enf
        15457      CNT h2.c:431 h2_make_htx_request(): "hardening 
HTTP_HRD_DEL_UNREG_HDR enforced"
        60         CNT h3.c:1124 h3_req_headers_to_htx(): "hardening 
HTTP_HRD_DEL_UNREG_HDR enforced"
        73         CNT h1.c:1080 h1_headers_to_hdr_list(): "hardening 
HTTP_HRD_DEL_USCORE_HDR_NAM enforced"
        249313     CNT h1.c:1093 h1_headers_to_hdr_list(): "hardening 
HTTP_HRD_DEL_UNREG_HDR enforced"

  Profiles can be redefined or derived from another one with "from", and
  defining only what changes from the default or inherited entry. This
  applies to H1, H2 and H3. FCGI only covered for parts that are common
  with H1, and outgoing filtering not there yet (required tricky changes
  for which it was too late). It's also possible to change the settings
  at run time, including enabling/disabling all at once, e.g. when an
  outage is being reported, or when under attack, to see if that helps.
  New sample fetches indicate what was observed and enforced.

- "wait-for-body" would previously abort processing if the entire
  body wasn't received in the configured delay, but not everyone has
  the same expectations on this. A new "no-fail" directive allows to
  continue processing with the body received so far on timeout instead
  of returning an error.

- HTTP status 411 (Length Required) is supported in return/deny/
  errorfiles.

- "tune.h2.fe.enabled off" is an emergency kill switch removing H2 from
  all frontends (ALPN, h2c upgrade, proto h2). The goal is that it is
  never needed, but in case a zero-day would be published about H2 with
  no other workaround, one config-line could be enough to stop it. With it,
  a new "h2_enabled" sample fetch permits to adapt anything that relies on
  it accordingly (alt-svc, redirects etc).

- Safer access-control rules: "deny", "tarpit", "silent-drop", "reject"
  and "auth" rules whose condition positively matches an aliasable sample
  (path, url, query...) now trigger a notice at boot explaining that
  "/%61dmin", "//admin" or "/x/../admin" would bypass them. The doc now
  also has a new section (7.5 "Secure filtering of HTTP requests")
  describing the recommended allow-list + default deny patterns that avoid
  these issues. Rules that are intentional (e.g. blocking noisy bots) can
  be marked with "no-warn", and a new global "on-unreliable-rules" setting
  allows to adjust the severity or behavior when detecting such rules.


3) SSL
------

- OCSP: new action "do-ocsp-request" performs a live OCSP check of the
  client certificate from tcp-request content or http-request rules. The
  result is good/revoked/unknown/inapplicable, set in the designated
  variable, and the action never denies by itself. A new global setting
  "ocsp-update.timeout" configures the automatic updater's timeout, which
  defaults to 10 seconds, so that auto-update requests no longer hang
  forever on a dead responder. Initial OCSP loading failures (e.g. missing
  issuer) are now warnings instead of fatal errors.

- JWT: jwt_verify() could be misused (e.g. a guessed cert name treated as
  an HMAC secret when the documented alg checks were omitted from the
  configuration). It is now deprecated in favor of jwt_verify_secret()
  (HMAC only) and jwt_verify_cert() (public key only), and the "none"
  algorithm is rejected unless "jwt.allow_none_alg" is set.

- FIPS: AWS-LC FIPS builds automatically restrict ciphers, ciphersuites,
  curves and sigalgs to FIPS-approved ones. A new config predicate
  "fips_mode" can be used to enclose config blocks in ".if"/".endif".
  The FIPS mode appears in "haproxy -vv" and "show info".

- ECH (Encrypted Client Hello) is now supported with AWS-LC (without
  runtime updates of the keys for now).

- TLS 1.3 post-handshake authentication with servers (see "pha" server
  keyword)

- kTLS is automatically refused on OpenSSL versions with a known stream
  corruption bug ("tune.ssl.ktls-unsafe" forces it).

- "tune.ssl.keyupdate-rate-limit" (default 100/s per connection) protects
  against TLS 1.3 KeyUpdate floods.

- The HTTP client (used by Lua, ACME, OCSP updates...) now uses the
  ssl-default-server-* settings.

- Certificate verification no longer falls back to the Subject CN when the
  certificate has a SAN dNSName (RFC6125).

- ACME: Lua events ACME_NEWCERT / ACME_DEPLOY and ACME.challenge_ready(),
  with an example dns-01 handler for Gandi LiveDNS in examples/lua/.

- New converters/fetches for fingerprinting and inspection: curve2name()
  (prime256v1 <-> P-256 <-> secp256r1...), be_sort() (to compare cipher
  or curve lists regardless of order), ssl_c_policies. The req.ssl_*
  fetches now share a unified ClientHello parser.


4) QUIC / HTTP/3
----------------

- QUIC AEAD confidentiality and integrity limits are now implemented (keys
  are changed after N packets, as required by the spec).

- "tune.quic.sec.stateless-reset-rate" (default 1000/s) limits stateless
  resets sent in response to spoofed packets.

- Native HKDF APIs are used, giving +11% handshakes with OpenSSL 3.5 and
  +4% with AWS-LC.

- "hq-interop" (HTTP/0.9 over QUIC, only meant for the interop test
  platform) now requires the experimental "tune.quic.interop fe".

- H3 traces gained "simple"/"advanced" verbosity (status lines /
  headers)


5) Dynamic backends
-------------------

The work started in 3.4 continued, with a focus on making scripts and
orchestrators simpler and more reliable.

- Named default-server profiles: "default-server name <name> ..." and
  "server ... from <origin>" permit to apply a named profile, or to
  duplicate an existing server's settings, both in the config and with
  "add server" on the CLI. This means that servers are no longer limited
  to their backend's default-server settings, they can be duplicated from
  any other one, including a default-server from any backend or from a
  defaults section. Defaults sections having default-server instances are
  now kept after parsing for this and can be consulted at run time via the
  CLI via "show defaults" and "show default-server".

- a backend can now start in the unpublished state via "be-unpublished".
  This permits to create them with their config, likely without servers,
  and to be invisible to use_backend rules until manually published.

- background server and backend purge: previously, server and backend
  deletion were synchronous, hence the "wait srv-removable" directive.
  Now the deletion can complete in the background, and refcounting will
  ensure that even a deleted backend will be automatically purged after
  its last server finally disappears. During this time, they will no
  longer prevent creation of new ones with the same name. CLI commands
  "purge server", "purge all servers" and "purge backend" are used for
  this. When the script wants to make sure that the server or backend is
  no longer indexed, it can use "wait srv-unknown" or "wait be-unknown".
  Thanks to this, there should no longer be polling loops in scripts, and
  they can become dumb again (i.e. no need to consume responses).

- it is possible to rename a server at runtime via "set server ... name",
  which can be convenient for those using server-templates. The new
  "clear counters server" resets a single server's counters (i.e. after
  repurposing it).

- server/backend additions are now fast in O(1). They will no longer slow
  down with increasing numbers of servers/backends.

- with all these additions, "add backend" is no longer experimental.


6) Sample fetch functions / converters / actions
------------------------------------------------

- New action "set-vars-from-map" sets many variables at once from a
  2-column map, allowing to remove many lines from certain configs, to
  perform atomic variable updates, and to update their preset values at
  runtime via the CLI (or set-map). This can be particularly helpfull to
  set thresholds to use in expressions for example.

- the "has_ctl()" converter detects the presence of selected control
  characters in a sample. Initially made to detect them in specific header
  field values, it can be used for other purposes (body etc). Note that a
  new HTTP violation blocks these in header values by default now.

- a "tr" converter that works like the similarly named UNIX command, with
  similar options. It permits to replace a character set by another one,
  delete characters belonging to a set, or complement that set. I've used
  it to count the number of opening brackets in a query string during some
  of the recent PHP attacks.

- "be_max_retries" and "cur_max_retries" report the configured / current
  max retries.

- "master_id" and "worker_id" report the process identity. By default,
  new IDs are assigned to workers on every reload, and to masters on
  every restart, though they can be forced. The goal is to help sort out
  which log comes from what process during reloads in a more reliable
  way than just the PID.

- the "param" converter now supports control characters as delimiters.

- Hardening/SSL related ones were mentioned above (fs/bs.hdng.*,
  hdng_rej_name, h2_enabled, curve2name, be_sort, ssl_c_policies,
  ocsp_check_err_str).


7) Lua
------

- New PROXY event family (Proxy.event_sub(): backend add/del/publish/
  unpublish), to follow dynamic backends' maintenance operations.

- ACME events and ACME.challenge_ready() indicate when a challenge
  completes.

- HTTPMessage.closed() reports whether the input is closed.

- Lua filters now use the "lua" class of the new filters model.


8) Management / Integration
---------------------------

- Automatic chroot, as announced for 3.4: when no "chroot" nor
  "set-dumpable" directive is present, haproxy will systematically try to
  chroot into an anonymous, empty, read-only directory. This is done even
  for unprivileged users by attempting again via a user-namespace if the
  first attempt fails. Configs relying on filesystem paths after startup
  (UNIX sockets on "server" lines, external checks, Lua files opened at
  runtime...) must add "chroot /". It's skipped with "set-dumpable" or
  "-d" (foreground debug mode). Be aware that core dumps will no longer
  work if they default in the chroot directory since that directory is
  deleted after entering it. This aims at significantly improving the
  security of unprivileged deployments (which are common on enterprise
  networks).

- "loggers" section: these create named groups of log targets, which can
  be designated with "log to <list>" or "do-log ... to <list>", to route
  some logs to some destinations on some conditions.

- Process identity: master and worker now get unique IDs (UUIDv7 for the
  worker, renewed on reload; the master's persists). "worker-id" forces
  it. They're shown in "show info", the stats page, Prometheus labels and
  external checks' environment, and are available to logs.

- "+utf8" log encoding flag (per field or global) keeps valid UTF-8 in
  JSON/escaped output.

- "mysql-check" gained "post-80-sha2" for MySQL 8.x caching_sha2_password
  (8.4 disables the old method).

- Resolvers: nameservers reached over IPv4/v6 now use UDP first and retry
  over TCP on truncation.

- CLI: "wait" and "show events" support "-u" (uninterruptible) to maintain
  the command waiting even if the input is closed (e.g. echo cmd | socat).
  A new "kill" command permits to kill them. Only a few are supported at
  once, use with care. "show events" also has "-s" to sanitize the output
  to protect a terminal (default) and "-r" (raw) to send them as-is. File
  descriptor numbers reported in "show fd" and "show sess" are prefixed
  with the thread group number since split FD tables would make them
  ambigous.

- Configuration help: all historic global/proxy keywords now use the
  registration API that allows the parser to know all keywords and to
  suggest all known ones on misspelled ones. "return" keywords are alos
  suggested, as well as HTTP violations and hardening.


9) Integrations and add-ons
---------------------------

- OpenTracing was removed as announced; OpenTelemetry is the replacement,
  and available since 3.4:

     https://github.com/haproxytech/haproxy-opentelemetry

- "haload": a new HTTP load generator built on haproxy's own stack, with
  an h1load-like usage. It supports HTTP/0.9 to 3 over TCP/SSL/QUIC,
  rate limiting, think time, percentiles, ramp-up after errors, cookies.
  Together with haterm from 3.4, we now have both ends of a benchmark in
  the tree. See doc/haload.txt.


10) Troubleshooting / observability
-----------------------------------

- An embedded compressed symbol table (also readable from gdb on stripped
  binaries) gives far more precise backtraces in warnings and panics.
  "tune.debug-file-directory" looks up separate debug files, and
  "tune.disable-elf-symbols" turns it off.

- "haproxy -d" now enables "set-dumpable" and disables the automatic
  chroot, so that core dumps keep working during development, and it no
  longer prints connect/close lines for internal proxies (CLI, peers) that
   were polluting the output previously.

- "-dH" dumps HTTP settings (hardening profiles) and "debug counters" now
  reports hardening matches.

- Diag-level info is no longer counted as warnings (no more failures with
  "-dW"), and memory profiling counts strdup() only once.

- A dedicated "filter" trace source was added.


11) Development / build
-----------------------

- Build-time modularity, as announced in 3.4: USE_H2, USE_FCGI, USE_SPOE
  were added to USE_TRACE to remove features, and a new "tiny" target
  brings the binary from 13.7 MB to 2.7 MB without SSL (14.2 -> 3.2 MB
  with SSL), for embedded devices and routers.

- Cross-builds: a CROSS_TOOLCHAIN prefix (needed to find objdump for dbg
  symbols), and EXTRA_MAKE permits to chain multiple sub-components and
  is already used by existing add-ons.

- The BUG_ON storage was unified, making the executable 120-200 kB
  smaller.

- Building with AWS-LC now requires USE_OPENSSL_AWSLC=1 (it used to work
  by accident), and OpenSSL < 1.1.1 is no longer supported.

- Internals: per-thread wait queues only, a new "twork" cross-thread /
  cross-group deferred work API, a common HTTP trailers parser (first step
  toward converging the semantic layers of all HTTP parsers), and a
  porting guide for the new filters API in doc/internals/api/filters.txt.

- Regression tests went from ~300 to 457+ VTC files (~7800 checks), with
  sample fetch coverage going from 31% to 95%. FreeBSD CI now runs on
  every branch, and AWS-LC FIPS is covered too.


12) Behavior changes and deprecations
-------------------------------------

This is a non-LTS version so a few changes are expected. This one probably
got more changes in default settings than usual, mostly for safety. As
usual, changes are backwards compatible so that it is possible to silence
a warning in a way that remains compatible with a roll back to 3.4 in case
of issue. Most of them are described above, here's the list to check when
upgrading:

- Removed (configs using them will be rejected): "dispatch" and
  "transparent" (use a regular "server" line, the error message suggests
  it), OpenTracing, "master-worker" alone in the global section (use -W /
  -Ws), and the deprecated QUIC tune.quic.* keywords whose replacements
  have existed since 3.0 or so.

- Automatic chroot when no "chroot" is set: add "chroot /" if you access
  the filesystem after startup (external checks or Lua maybe).

- HTTP: the "untrusted" hardening profile applies by default to clients
  with public addresses (note that lab benchmark ranges 198.18/15 are
  considered public here), new HTTP violations are rejected by default,
  '%' is rejected in the authority/Host, and non-conforming chunk
  extensions are rejected. Notices are emitted for unreliable deny rules.

- Server FQDNs with a component longer than 63 chars are now fatal
  ("unresolvable-server-fqdn warn" to relax them to a warning like 3.4).

- "hq-interop" requires "tune.quic.interop fe". Please do not use that in
  production configs, that was never meant for this and might have unfixed
  bugs.

- "filter-sequence" changed syntax compared to 3.4 at release date, but
  that one was removed from 3.4.5 to avoid any confusion.

- TLS: the HTTP client uses ssl-default-server-*, no more Subject CN
  fallback when a SAN dNSName exists, kTLS refused on buggy OpenSSL, and
  the "none" JWT algorithm is rejected.

- JSON log encoding now hex-encodes bytes outside 32..126 as #HH, as the
  doc always said (use "+utf8" to let valid UTF-8 pass).

- the default runqueue-depth is no longer scaled down with threads; that
  was an old trick of 1.8 to reduce locking contention on the shared
  queue that was left unnoticed for several years and was hurting
  performance for no reason.

- Deprecated: jwt_verify() (use jwt_verify_secret() / jwt_verify_cert()),
  and still "tune.takeover-other-tg-connections".

- Late changes of "tune.bufsize", "tune.maxrewrite" or "tune.max-http-hdr"
  (i.e. in a global section placed after proxies, which used to only
  partially apply) now emit a warning.


... And I think that's about all for this one. It's a really big one.

A big Thank You again to everyone who tested, reported bugs, helped users,
operated CI and infrastructure, fixed docs and sent patches. This cycle
saw about 794 bug fixes (21 of them tagged MAJOR), many of which were
found by AI-assisted audits and most of which were backported to stable
branches.

And as an expression of my gratitude to the few who followed me this
far, here are some statistics I've composed this morning on bug counts,
backports, and the impact of AI on our development cycle. Note that 3.5
numbers have changed by a few units since but we don't care.

I ran some stats on the latest branches, and there's a clear inflection
point on the number of per-release patches that started with 3.4, which
was released a few months after the beginning of the wave of AI-generated
reports. Here's the number of commits per release over the last 2 years:

    branch        3.1    3.2    3.3    3.4    3.5
    -----------+------+------+------+------+-----
    commits      1119   1167   1155   1542   1965
    vs 3.1       100%   104%   103%   138%   176%

We've been emitting 1.76 times more commits during the 3.5 cycle than
during the 3.1 cycle 2 years ago! Of course it could be attributed to
better, cleaner development practices with smaller and more targeted
commits, but let's have a look only at bug-fixing commits, per severity:

    branch        3.1    3.2    3.3    3.4    3.5
    -----------+------+------+------+------+-----
    major          11     14     15     19     23
    medium        101     91    145    179    323
    minor         158    198    184    363    455
    all           273    304    347    563    801
    vs 3.1       100%   111%   127%   206%   293%

The jump between 3.3 and 3.4 is significant. During the 3.5, we've fixed
almost 3 times as many bugs as we did during 3.1, at the same period of
the year, two years ago, and more than twice what we did during 3.3 a
year ago.

It could be argued that developers are coding too fast and introducing
more bugs. For now we're still lucky enough to work in an area where AI
tools do not provide good code yet because the code directly stems from
long-term vision and architectural choices rather than just emitting
code. Thus for now our code base has remained relatively immune to AI
slop and bugs are essentially human-generated (however AI now helps
spotting bugs before they're pushed or find them afterwards). We've also
used AI tools extensively to run many code scans in exposed areas, and
found, triaged and fixed ~400 bugs of various severities ourselves, which
is about half of this cycle's fixes.

To get a better idea, I compared commits backported to all stable releases
over the last 6 months (as far as 2.6) to deduce the apparent age of the
bugs. This is not rocket science but it does give a good overview, because
when a fix is not backported beyond a certain point, it usually means that
it came after, or that it's of very low importance and is not much relevant
to the analysis.

    branch      2.6   2.8   3.0   3.2   3.3   3.4   3.5
    ----------+-----+-----+-----+-----+-----+-----+-----
    backports   134   173   212   244   286   317  (801)
    bug age     <60m  <48m  <36m  <24m  <18m  <12m  <6m

Let's put aside the 484 bugs affecting only the development release and
which are part of the development cycle, this leaves us with 317 bugs
affecting at least one stable release that were discovered over the last
6 months:

    age      count    ratio
    -------+-------+-------
    6-12m      31      9.8%
    13-18m     42     13.2%
    19-24m     32     10.1%
    25-36m     39     12.3%
    37-48m     39     12.3%
    >48m      134     42.3%

The immediate observation is that there are roughly half as many bugs
found after three years as after 6 months, and as a corollary, that half
of the bugs found are at least 3 years old, and that the number of bugs
specific to a given version is decreasing over time.

>From this, I'm taking two conclusions, which are largely explained by the
arrival of massive code scans over the last 9 months:

  - low-hanging fruit from 3+ years ago is fixed and not going to
    re-appear, so we should really expect a calmer period to come on
    older releases, with probably one complex bug here and there from
    time to time as code scanners evolve, and a sustained volume of low
    importance fixes ;

  - 1/4 fewer bugs were found in the 6-12m period than in the 13-18m one,
    suggesting the improvement caused by the active search for bugs on
    the developers side and the various reports from researchers and AI
    vendors.

This also suggets that contrary to a common belief, older versions are
not necessarily more reliable, because coding practices continue to
improve and to make certain classes of bugs disappear in recent versions.

What to expect for 3.6 ? I guess that we'll have even more reports of
even lower importance covering all versions, with fewer affecting 3.6
than 3.5, and fewer affecting 3.5 than 3.4 etc. However, based on the
observed decreasing quality of reports, I feel a bit concerned that we
are not going to see a reduction in the rate of reports at least for the
forthcoming year; they will just continue to target totally nonsensical
setups with crazy use cases that concern nobody. This means that users
are probably already quite safe, but developers will still have to endure
that shitstorm for a while, and we'll try to emit more regular stable
releases to deliver fixes faster.

Another point of more regular stable releases is that it dilutes the
risk of accidental regressions across more versions (because there
will inevitably be some regressions when fixing so many issues), and
it matters a lot to us that a user facing a regression can quickly roll
back to the previous release without losing too many important fixes.

Anyway for now the release is 3.5, with bells and whistles, and it's time
to stop reading me and deploying it instead!

Please find the usual URLs below :
   Site index       : https://www.haproxy.org/
   Documentation    : https://docs.haproxy.org/
   Wiki             : https://github.com/haproxy/wiki/wiki
   Discourse        : https://discourse.haproxy.org/
   Slack channel    : https://slack.haproxy.org/
   Issue tracker    : https://github.com/haproxy/haproxy/issues
   Q&A from devs    : https://github.com/orgs/haproxy/discussions
   Sources          : https://www.haproxy.org/download/3.5/src/
   Git repository   : https://git.haproxy.org/git/haproxy-3.5.git/
   Git Web browsing : https://git.haproxy.org/?p=haproxy-3.5.git
   Changelog        : https://www.haproxy.org/download/3.5/src/CHANGELOG
   Dataplane API    : 
https://github.com/haproxytech/dataplaneapi/releases/latest
   OpenTelemetry    : https://github.com/haproxytech/haproxy-opentelemetry
   Pending bugs     : https://www.haproxy.org/l/pending-bugs
   Reviewed bugs    : https://www.haproxy.org/l/reviewed-bugs
   Code reports     : https://www.haproxy.org/l/code-reports
   Latest builds    : https://www.haproxy.org/l/dev-packages

Willy
---
Final changelog since 3.5-dev14 :
Amaury Denoyelle (9):
      BUG/MAJOR: h3: prevent demux full BUG_ON() crash with incomplete DATA
      CLEANUP: mux_quic: fix indentation in rcv_buf
      DEV: sslkeylogger: mark it as a debugging tool only
      MINOR: mux-quic: add conn flag on glitch error set
      BUG/MINOR: mux-quic: fix crash on frame alloc failure after glitch error
      BUG/MINOR: mux-quic: fix crash with double qcc_set_error() on QCS free
      CLEANUP: quic: refactor qc_new_conn() to use an obj_type
      BUG/MINOR: server: reject from/name in peers section
      CLEANUP: mux-quic: adjust includes statements

Andrea Cocito (1):
      BUG/MEDIUM: mux-h1: defer read0 while input is buffered

Bruno Henc (1):
      BUG/MINOR: stick-table: don't deinit the buckets of a never initialized 
table

Christopher Faulet (19):
      BUG/MEDIUM: http-htx: normalize Host header carrying the scheme's default 
port
      MEDIUM: http: reject percent-encoded chars in the authority and Host
      BUG/MINOR: http-fetch: only defrag HTX message with payload when fetching 
body
      MINOR: http-ana: remove the HTX defrag when waiting for a message payload
      BUILD: compression: silence clang's -Wunused-but-set-global on 
comp_res_ring
      BUG/MINOR: http-ana: let s-maxage override a null max-age whatever their 
order
      BUG/MEDIUM: http-ana: do not let "public" cancel directives forbidding 
storage
      MINOR: http-ana: add a transaction flag for requests forbidding storage
      BUG/MINOR: http-ana: do not store responses to requests with "no-store"
      BUG/MINOR: stats: never add an empty DATA block in the HTX message
      BUG/MINOR: flt-decomp: don't leave an empty DATA block when draining
      MINOR: htx: never create, leave nor accept an empty HTX block
      DOC: config: Fix docroot description indentation
      DOC: config: document the FCGI path handling and its security implications
      BUG/MINOR: h1-htx: report the trailer parsing error position
      Revert "BUG/MINOR: http-ana: Increment scf bytes_out value if an haproxy 
error is sent"
      BUG/MEDIUM: mux-h2: send END_STREAM when the trailers are dropped
      BUG/MINOR: mux-fcgi: don't send the empty STDIN record twice
      BUG/MEDIUM: mux-fcgi: send the empty STDIN record after a chunked request

Frederic Lecaille (2):
      REGTESTS: quic: backend must adopt the SCID of the first valid Initial
      BUG/MEDIUM: peers: don't push updates before a reloaded process resyncs

Gihyeon Ryu (1):
      BUG/MINOR: jwe: check that the EC point is on the curve

Hyeonggeun Oh (2):
      BUG/MINOR: log: preserve NULL bytes of strings with "bin"
      BUG/MEDIUM: peers: do not clear the alive flag of a replacement session

MarcWort (1):
      BUG/MINOR: spoe: force "always" reuse policy when converting SPOP backend

Olivier Houchard (16):
      BUG/MEDIUM: mux-h2: don't block other streams while waiting for a tunnel
      BUG/MEDIUM: backend: only start the mux early when 0-RTT may be used
      BUG/MEDIUM: backend: read the cached ALPN only once in connect_server()
      BUG/MEDIUM: connection: use the websocket mux after the handshake too
      BUG/MINOR: connection: don't use the cached ALPN if SSL_NO_CACHED_INFO
      BUG/MEDIUM: leastconn: don't hide an avoided server from later lookups
      BUG/MEDIUM: ssl: ignore unexpected EOFs reported by the SSL library
      MEDIUM: ssl: never return 0 from the BIO read callback
      BUG/MEDIUM: mux-h1: accept a late EOM on content-length messages
      BUG/MEDIUM: compression: finish the stream on a NOOP block with EOM
      BUG/MEDIUM: flt-decomp: don't forward trailers before pending data
      BUG/MEDIUM: flt-decomp: report an error on a truncated payload
      BUG/MEDIUM: flt-decomp: allocate the buffer to emit pending data
      BUG/MEDIUM: flt-decomp: skip responses without a transfer length
      BUG/MEDIUM: flt-decomp: accept an empty payload
      BUG/MINOR: flt-decomp: don't lose emitted data on a truncated payload

Remi Tricot-Le Breton (7):
      BUG/MINOR: jwt: Create jwt tree entry even for new empty certificates
      BUG/MEDIUM: jwt: Add refcount to jwt tree entry
      BUG/MINOR: jwt: Do not keep ckch_store if jwt tree entry creation failed
      BUG/MINOR: jwt: Create jwt tree entry even for new empty certificates
      BUG/MINOR: ocsp: Increment certificate_ocsp refcount in 
'ssl_sock_copy_cert_key_and_chain'
      BUG/MINOR: ocsp: Fix too strict parser of 'do-ocsp-request' action
      DOC: vars: Add missing http/tcp-check part of the set-vars-from-map action

William Lallemand (11):
      Revert "BUG/MINOR: jwt: Create jwt tree entry even for new empty 
certificates"
      BUG/MEDIUM: ssl: prevent CN fallback when a SAN extension is present
      DOC: configuration: warn against using SSLKEYLOGFILE
      MINOR: ssl: warn at startup when SSLKEYLOGFILE is set
      BUG/MINOR: deviceatlas: fix free() of an uninitialized cnew in checkinst
      BUG/MINOR: ssl: free ech_filedir in ssl_sock_free_ssl_conf()
      BUG/MINOR: ssl: fix ALPN/NPN loss on duplicated crt-list ssl configs
      BUG/MEDIUM: ssl: fix verify bypass on duplicated crt-list ssl configs
      MINOR: ssl: unset SSLKEYLOGFILE unless explicitly allowed
      DOC: config: ssl_c_err, ssl_c_ca_err and ssl_c_ca_err_depth on resumed 
sessions
      BUG/MEDIUM: ssl: do not resume sessions whose client cert failed the 
verification

Willy Tarreau (13):
      DOC: security: a few more clarifications on report processing
      MINOR: tools: add memupper() / memlower() to convert a memory block
      CLEANUP: pattern: remove the unneeded strlen in pat_idx_tree_pfx()
      CLEANUP: sample: reduce struct sample by filling a hole
      OPTIM: acl: always keep the local sample 64-byte aligned
      OPTIM: acl: only reset ctx and flags, not the whole sample
      OPTIM: pattern: use ebst_lookup_len() when possible
      Revert "OPTIM: acl: only reset ctx and flags, not the whole sample"
      BUILD: mux-quic: silence an invalid null-deref warning at -O1
      IMPORT: uslz: fix a build warning with gcc -O1
      BUG/MINOR: pattern: do not index too large prefixes using the tree
      DEV: patchbot: prepare for new version 3.6-dev
      MINOR: version: mention that 3.5 is stable now

deanliang06 (1):
      BUG/MINOR: quic-be: install the peer CID only from an accepted Initial

---


Reply via email to