Hi,

HAProxy 3.5-dev14 was released on 2026/11/25. It added 161 new commits
after version 3.5-dev13.

As you can see that's not 3.5-final yet finally. Turns out that there were
still way too many bug fixes (78) and a few of them were a bit concerning or
were recent regressions from latest batches of fixes so we preferred to give
it another week of testing in production with all these fixes present. I
think we're all impatient to see that one released to cool down a bit!

Aside the bug fixes there were still some progress on various thing:

- detection of a situation where tune.bufsize is changed after proxy
  sections: I really thought that we had either a warning or an error
  for late global sections but no, it's just a diag, so nobody sees it
  by default. I think we'll really have to do something about it in 3.7
  because in the past it was one user a year facing a corner case but
  now that's AI-assisted code scans that detect numerous corner cases
  caused by this. The latest blatant one was about tune.bufsize,
  tune.maxrewrite and tune.max-http-hdr. So now they emit warnings when
  changed late, because some parsing steps might have already considered
  their previous version. Had I spotted that a month earlier, I'd have
  turned it to an error...

- made the HTTP/1.1 chunk extension parser stricter: chunk extensions are
  not used by any product nowadays and are the only part of HTTP/1 whose
  definition is strict, yet nobody implements it correctly and some products
  are vulnerable to issues because they parse them incorrectly. HAProxy was
  particularly lax on it because it would just drop them and never forward
  them, so its parser was totally reliable but not too strict. That was
  until new classes of issues started to be reported where such other
  proxies before haproxy could be fooled by improperly formatted extensions
  and miss an end of chunk and get their protocol desynchronized. The only
  solution is thus to reject not 100% conforming extensions. We reinforced
  the parser in January to address one known case affecting one other
  product (quoting, don't remember which one) but now was a good moment to
  finish this so that we can detect and reject all forms of abuse, with
  reg-tests validating all combinations. As a side effect, we could factor
  the duplicated code and finally optimize it a little bit (~20% faster
  chunk size parsing). @BenKallus, you'll now have to find other vectors :-)

- some code cleanups on include file dependencies: 110 inclusions of
  tools.h that were not needed were dropped, reducing by 1% the total
  number of lines built. That's small but always welcome.

- we were told that one of the recent fixes for resolvers rejecting
  components larger than 63 chars in server names (due to the DNS protocol
  itself) caused some regressions to some users using complex orchestrator
  setups that seem to be building names by concatenating them. The problem
  here is that this can happen to hosting providers whose customers inject
  ultra-long names. We can't afford to prevent the process from starting
  in this situation. But on the other hand, if configs are bogus they need
  to be fixed. A new global setting "unresolvable-server-fqdn" was added
  to decide whether to fail or to just warn. 3.5 fails by default, and the
  backport to 3.4 and earlier only warns. This will ensure that existing
  stable users don't face a regression yet they're informed about the
  problem and the fact that it changes in 3.5, giving them enough time to
  fix their provisioning tools, while still limiting the risks of not
  seeing such mistakes (many users don't check their logs).

- libslz 1.4 was finally released this weekend and the local copy updated.
  Nothing important changes, it's essentially in order to have a point
  release. The decompression gets about 15% faster though. The gains in
  this version of the lib are notable on haproxy.org, where I'm seeing
  average compression ratios of 4.5-5 on gitweb compared to approx 2.5-3
  before. Those relying on compression might want to upgrade to 3.5 just
  for this.

- servers now support "from be:" followed by a defaults section name in
  order to inherit the default-server settings from that section.
  Previously there was no way to do that if no backend was referencing
  that section. Similarly "from srv:" support naming a default-server
  instance from a defaults section.

- the TRACE method is now always checked for contents and triggers a
  violation if some id detected, as it's used to fool some old backend
  servers. A new http-violation rule permits to tune this, though I'm
  fairly certain that aside security researchers trying to see "what if
  I do that", nobody will ever need it. I learned today that some IIS
  servers used to support a TRACK method that does the same and that's
  even more dangerous, I might add it to the mix. Another violation is
  the receipt of an 1xx response to an HTTP/1.0 request, that confuses
  some upstreams. And the Expect header is always dropped from HTTP/1.0
  requests (also confuses some servers).

- more HTTP hardening rules were implemented (about all of the planned
  ones that were still missing), essentially in relation with Upgrades to
  unknown protocols, handling of bodies with methods that do not define
  semantics for them, support for uncommon methods. A command line option
  -dH lists all HTTP settings, and for now only hardening profiles,
  because the point was rightfully raised that it's incomprehensible for a
  user to know what's enabled/disabled by default without reading the
  whole section in the doc. A new profile "basic-web" was added that's
  aimed for the vast majority of users who don't have anything fancy to
  host, and that blocks and cleans up by default all the stuff that
  browsers don't use (GET+body, x-foobar headers, dangerous methods etc),
  with some doc showing how to use that easily. I intend to deploy this on
  haproxy.org, it should make it easier to handle protocol attacks. Some
  of the important hardening rules hadn't been enabled by default on
  untrusted connections (duplicate content-length, deletion of dangerous
  headers with underscores, rejecting payloads on 1xx/204 responses instead
  of just dropping them) and were enabled too.

  BTW for those wondering that's with all those HTTP hardening things, the
  point is that AI tools are extremely good at spotting protocol areas not
  covered by combinations of products, and I'm pretty convinced that 2027
  will start with reports about product combinations (this behind that),
  once researchers figure they have nothing outstanding to report anymore.
  We just cannot afford to rush emergency workarounds to try to address a
  blind corner when communicating with another unlikely component that is
  not perfectly compliant either but differently. The violations and
  hardening stuff should not only help users run safer by default (i.e.
  not expose backend server flaws when not necessary), and permit us to
  propose easy workarounds by just turning certain controls on instead of
  jumping on code deployment. We'll see...

- the "jwt_verify()" converter was now deprecated in favor of
  "jwt_verify_secret()" and "jwt_verify_cert()". The reason is that it
  is technically possible to misuse jwt_verify() by omitting certain
  required and documented preliminary consistency checks, and in this
  case it would let the client use the guessed certificate name as a
  secret. This is totally unlikely (but not impossible, a line could
  indeed be deleted by accident), but this thing keeps popping in AI
  reports all the time because these tools don't consider the use case,
  only the fact that it is possible to write such a config. We figured
  that it was a good opportunity to offer a new unambiguous pair of
  converters that are dedicated to a single use case so that it's no
  longer possible to write a wrong config. The old one continues to work
  but it's marked as deprecated.

- the hq-interop QUIC ALPN was marked as experimental. It's only used
  by the interop platform and must not be used in production, yet until
  now it could be used (and I found by updating that it was still present
  since the very early QUIC days on haproxy.org).

- a more reliable check for shutdown while sending on applets was merge.
  Normally nobody will notice it but chances that over the long term it
  will save us from a few possible reports of corner cases where shuts
  could be missed.

- more updates to the mysql post-80 auth mechanism for tcpcheck, as
  previous updates were still causing obscure authentication problems.

- the argument of the "return" action now support fuzzy-matching so that
  when a keyword is misspelled, many times the proper spelling will be
  proposed in the error message.

- some simplifications in the way traces are handled around filters. Now
  they're covered by a common "filter" trace source, which will be easier
  to enable than it used to be via the stream with too many events.

- starting in foreground debug mode with "-d" will now by default turn
  "set-dumpable" and disable the unprivileged chroot, otherwise it became
  extremely difficult for developers to get a core dump.

- support for HTTP status code 411 (Length Required) was added. It can
  be convenient to reject POST/PUT without a content-length for example.

- more doc polishing, and updates, notably on the ACME front where some
  parts of the process are better explained

- one internal change on HTX that will not have an immediate effect but
  that might make us more responsive next time we have certain classes
  of complex bugs to solve: HTX now has a NOP block that can be used to
  carry an end-of-message condition in an empty buffer without having to
  abuse another block.

- very long patterns in ACL/maps (larger than bufsize) are now properly
  read. In the past the read could stop at the maximum size and the rest
  of the line could be interpreted as the next pattern. Nobody should
  notice because nobody uses 16 kB patterns!

That's about all for the user visible stuff. The rest is a lot of cleanups,
updates to the CI (slow reg tests enabled), an update to the issue template
to disable blank issues that are abused by bots and add a doc suggestion
that was missing, even more regtests, and that's about all.

The queue of pending bugs has been seriously reduced, so I renew my big
kudos to the team for spending so much time on such a thankless job that
is nevertheless necessary. I know that we're not as responsive with
reviews as we used to be, but quite frankly when you receive on average
5-10 "security" bugs to qualify every day from multiple channels and you
know pretty well that they're just unreachable latent bugs but just in
case a serious one would be hidden you have to spend time on them, it's
extremely hard to do anything productive in parallel. I really hope that
the rate of findings will drop after all the efforts we made on sanitizing
the code base and shutting these tools down. That's unfortunately not the
direction I'm seeing at the moment on the kernel so I must say I'm not
entirely at ease with that situation, but there's not much we can do
against this anyway, so we'll see.

Now the next step is to finish some cleanups and try to review William's
and Alexander's patches that are pending here on the ML (and see if we
take them or not with this release), then release 3.5.0 next wednesday,
and celebrate this monster effort with food and drinks, à la française :-)

If you haven't tested 3.5-dev yet, now's the best moment, as I really
don't want to see another 3.5-dev!

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.git/
   Git Web browsing : https://git.haproxy.org/?p=haproxy.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
---
Complete changelog :
Amaury Denoyelle (20):
      BUG/MINOR: quic: do not reject CRYPTO data exactly fitting in buffer
      CLEANUP/MINOR: ncbuf: avoid noop memcpy when data ends on wrapping
      CLEANUP/MINOR: ncbmbuf: avoid noop memcpy when data ends on wrapping
      BUG/MINOR: ncbuf/test: remove list dependency for standalone tests
      BUG/MINOR: ncbuf/test: remove unnecessary delay in random insert
      MINOR: ncbuf/test: extract random insert test in a dedicated function
      MINOR: ncbuf/test: define max iteration to random insert test
      MINOR: ncbuf/test: define seed for random insert test
      MINOR: ssl: allow prefix lookup for alpn_remove_token()
      MINOR: ssl/quic: mark hq-interop QUIC ALPN as experimental
      BUG/MINOR: qmux: prevent pacing BUG_ON() on send syscall zero return
      MINOR: server: report incorrect usage of "from" keyword
      MINOR: server: lookup defaults section on "from srv:"
      MINOR: server: lookup defaults section on "from be:"
      MINOR: mux-quic: remove error trace on transport failure
      BUG/MINOR: h3: reject reserved HTTP/2 frame types
      BUG/MINOR: h3: support unknown frames of any length
      BUILD: http: fix missing include in haproxy.c
      REGTESTS: tcp-check-ssl: also support errno reporting on second test
      BUG/MINOR: h3: extend coverage for duplicate SETTINGS ids

Aurelien DARRAGON (3):
      BUG/MEDIUM: hlua: make coroutine.create() safe under haproxy (new attempt)
      MINOR: hlua: add our own safe coroutine.wrap() wrapper
      BUG/MEDIUM: log/tools: fix cbor binary integer encoding regression with 
x86_64 systems

Christopher Faulet (29):
      BUG/MEDIUM: http-ana: restore the purge of backend analyzers on applets
      REGTEST: spoe: fix the SPOP varint encoding in the mock agent
      REGTEST: spoe: add large-frame tests for the applet and the mux
      BUG/MINOR: tcpcheck: fix out-of-bounds reads on truncated LDAP bind 
responses
      BUG/MINOR: tcpcheck: fix out-of-bounds reads on truncated SPOP hello 
frames
      BUG/MINOR: tcpcheck: fix out-of-bounds read on the MySQL server version
      BUG/MINOR: vars: fix missing string termination in get var on too long 
values
      BUG/MINOR: lua: channel: append() must insert data at the end, not at the 
start
      BUG/MINOR: payload: distcc_body must not sample unreceived buffer bytes
      REGTESTS: mysql: Close server s6 declaration
      MINOR: filters: Register a dedicated trace source for the filters
      MINOR: htx: Add a noop block to carry the EOM flag on an empty message
      DOC: htx: add the NOOP block to the HTX API documentation
      BUG/MEDIUM: stconn: Do not install an applet on a busy stream connector
      BUG/MEDIUM: applets: do not wake up applets before the end of the request 
analysis
      BUG/MEDIUM: stconn: Only forward kip hint on streams committed to forward 
data
      BUG/MEDIUM: mux-h1: never forward more data than announced in a chunk
      MEDIUM: stconn: Forward kip hint right before the endpoint callback
      MINOR: tcpcheck: add TCPCHK_EXPT_FL_ALLOW_EMPTY flag on expect rules
      MINOR: tcpcheck: evaluate custom expect rules on empty response when 
allowed
      MEDIUM: tcpcheck: handle MySQL AuthSwitchRequest in mysql-check post-80 
modes
      DOC: config: update mysql-check doc for the auth switch support
      REGTESTS: mysql-check: refresh the regtest for the auth switch support
      CLEANUP: tcpcheck: Stop to export most of custom expect functions
      MINOR: stream: use regular TRACE_* macros for stream traces
      BUG/MEDIUM: mux-h1: Don't shortcut h1_process() while a stream is attached
      DOC: config: Properly align table at begining of 7.5
      REGTESTS: tcp-check-ssl: tolerate an errno info in the SSL handshake 
failure
      BUG/MINOR: mux-h1: properly handle NOOP blocks and track EOM emission

Dinko Korunic (2):
      BUG/MEDIUM: payload: reject out-of-range payload and payload_lv arguments
      BUG/MINOR: payload: also encode an absolute payload_lv offset2

Dongwon Jang (2):
      MINOR: tools: add read_line_to_mem() to read a line into a growing buffer
      BUG/MINOR: pattern: don't rely on the trash size to read pattern files

Frederic Lecaille (8):
      MINOR: reg-tests: add --extra to run tests needing optional tools
      REGTESTS: quic: add a Python QUIC client
      REGTESTS: quic: backend must drop packets with an unsupported version
      REGTESTS: quic: NEW_CONNECTION_ID must not reference a retired CID
      REGTESTS: quic: undecryptable 0-RTT packets must not exhaust the Rx buffer
      REGTESTS: protobuf: cover the gRPC message compression flag
      DOC: config: ungrpc does not support compressed messages
      BUG/MINOR: quic: fix uninitialized read of pkt->rs.delivered in ACK 
processing (BBR)

Kelly Kane (1):
      BUG/MEDIUM: mux-fcgi: avoid out-of-bounds path decoding

Martin Mirchev (7):
      BUG/MINOR: sample: do not parse compressed gRPC messages in ungrpc
      BUG/MINOR: net_helper: check the TCP option length before reading its 
value
      BUG/MINOR: net_helper: accept an Ethernet header ending with the protocol
      BUG/MINOR: resolvers: reject DNS messages without the QR bit
      BUG/MINOR: mux-spop: match the AGENT-HELLO and AGENT-DISCONNECT keys 
exactly
      BUG/MINOR: mqtt: reject invalid CONNECT flags and MQTT 3.1.1 CONNACK 
return codes
      BUG/MINOR: mux-h2: reject non-numeric values in the tune.h2 keywords

Olivier Houchard (27):
      BUG/MINOR: mux-quic: fix QMux Rx buffer leak on MUX init failure
      BUG/MEDIUM: quic: never advertise more streams than configured
      BUG/MEDIUM: mux-quic: cap elastic MAX_STREAMS to stream.max-total
      BUG/MINOR: hlua: wait for the request in HTTP applets
      BUG/MINOR: hlua: reject interim responses in HTTP applets
      BUG/MINOR: h3: reject interim responses ending the stream
      BUG/MEDIUM: quic: refuse handshakes completed after the listener unbind
      BUG/MEDIUM: quic: do not spin on the accept tasklet of a blocked listener
      BUG/MEDIUM: xprt_qmux: apply the configured bidi streams limit on FE
      BUG/MEDIUM: stick-tables: update the bucket's next_exp before releasing 
its lock
      BUG/MEDIUM: mux-h2: don't stall on a failed rxbuf alloc without stream
      BUG/MEDIUM: mux-fcgi: let the buffer callback allocate despite the queue
      BUG/MEDIUM: mux-spop: let the buffer callback allocate despite the queue
      BUG/MEDIUM: mux-h2: reject non-101 2xx responses to Extended CONNECT
      BUG/MEDIUM: ssl: trim dropped kTLS records from the end of the buffer
      BUG/MEDIUM: rawsock: don't take a short kTLS read for the end of data
      BUG/MEDIUM: mjson: stop the lookup when the matched element ends
      BUG/MEDIUM: mjson: decode the escaped slash in strings
      DOC: config: mention the nesting limit of the json_query() converter
      BUG/MEDIUM: ssl/cli: reset the transaction on interrupted CA/CRL commits
      BUG/MEDIUM: ssl/cli: restore the store conf on "add ssl crt-list" error
      BUG/MINOR: ssl/ckch: copy the origin of the conf in ckchs_dup()
      BUG/MEDIUM: ssl/cli: keep the crt-store conf on "add ssl crt-list"
      BUG/MINOR: ssl/cli: don't clear the jwt flag on "add ssl crt-list"
      BUG/MINOR: ssl/cli: fix ckch_conf leaks in "add ssl crt-list"
      BUG/MINOR: cache: free the blocks of aborted stores at once
      BUG/MEDIUM: cache: build the secondary key on an unusable first entry

Remi Tricot-Le Breton (7):
      MINOR: jwt: Add rwlock to jwt_cert_tree
      BUG/MEDIUM: jwt: Use only JWT cert tree for jwt_verify
      BUG/MEDIUM: jwt: Use JWT cert tree for jwt_decrypt
      BUG/MINOR: httpclient/cli: fix NULL dereference when the response has no 
header
      BUG/MINOR: ocsp: fix NULL dereference when the OCSP responder sends no 
header
      MINOR: jwt: New jwt_verify_secret converter
      MINOR: jwt: Deprecate jwt_verify converter

William Lallemand (13):
      BUG/MINOR: ech: keep CLI success messages alive until printed
      BUG/MINOR: ssl/cli: use the right list member in "add ssl crt-list" 
release
      BUG/MEDIUM: acme: take the resolvers lock when linking/unlinking DNS 
requesters
      BUG/MEDIUM: acme: match DNS challenges against all TXT records
      BUG/MEDIUM: acme: distinguish wildcard CLI and Lua acknowledgements
      BUG/MEDIUM: lua: handle apex and wildcard challenges in Gandi example
      DOC: lua: document wildcard ACME authorization readiness
      DOC: management: document ACME challenge readiness acknowledgements
      EXAMPLES: acme: add a Lua Gandi DNS-01 configuration
      BUG/MINOR: ssl: append OCSP base64 newline to the output buffer
      CI: github: enable slow regression tests for OpenSSL master
      MINOR: github: disable blank issues
      MINOR: github: add documentation suggestion template

Willy Tarreau (42):
      BUG/MINOR: intops: reject varints that do not fit in 64 bits in 
decode_varint()
      MINOR: tools: add some of the missing null-terminated integer parsers
      REORG: tools/intops: move the integer-specific functions from tools to 
intops
      REORG: tools/intops: move the int-to-str conversion functions to intops 
as well
      CLEANUP: tree-wide: remove unneeded dependencies on tools.h
      CLEANUP: mux-h2: get rid of the redundant h2_parse_int() function
      MINOR: init: automatically turn "set-dumpable" on when using "-d"
      MINOR: http: use fuzzy-match for the "return" action keywords
      MEDIUM: config: emit warnings when changing bufsize after other sections
      BUG/MEDIUM: pattern: check for non-empty string before matching regexes
      CLEANUP: pattern: don't even run string-based matches on empty strings
      DEV: phash: improve the output to permit an easier copy-paste
      MINOR: http: Add support for HTTP 411 status code
      MEDIUM: http_ana: control acceptance of 1xx status on HTTP/1.0
      MINOR: http_ana: always drop the Expect header in HTTP/1.0
      MEDIUM: http/hardening: delete untrusted headers/trailers with underscore
      MEDIUM: http/hardening: default to rejecting untrusted duplicate C-L
      MEDIUM: http/hardening: reject forbidden payload on 1xx/204 responses
      MEDIUM: http/hardening: filter out-of-range status codes from untrusted 
servers
      MINOR: http: add a new violation rule "trace-with-content" for TRACE 
methods
      IMPORT: slz: update slz to v1.4.0 (commit 197db002f1)
      BUG/MINOR: h1: restrict a bit more the syntax of chunk extensions
      REGTESTS: http-messaging: test the strict parsing of HTTP/1 chunk 
extensions
      REORG: h1: move chunk extensions parsing to a dedicated inline function
      MEDIUM: h1: make h1_parse_chunk_size() rely on h1_parse_chunk_ext()
      REGTESTS: http-messaging: also test chunk extensions on chunks larger 
than the buffer
      MINOR: tools: add memcpy_opt_small() for ultra-small copies
      OPTIM: h1: use memcpy_opt_small() to copy chunks in the contiguous parser
      MINOR: http: add -dH at boot to dump HTTP specific settings
      BUG/MEDIUM: startup: revisit the default chroot behavior
      BUG/MINOR: startup: also disable strict limits with -d
      BUG/MINOR: pattern: do not index too large strings using the tree
      BUG/MINOR: resolvers: display the template name instead of "server 
'(null)'"
      MEDIUM: server: add a global setting "unresolvable-server-fqdn"
      MINOR: http/hardening: implement "reject-advanced-methods"
      REGTESTS: http-messaging: test reject-advanced-methods
      MINOR: http/hardening: implement "reject-unexpected-request-payload"
      REGTESTS: http-messaging: test reject-unexpected-request-payload
      MINOR: http/hardening: implement "reject-unexpected-request-upgrade"
      REGTESTS: http-messaging: test reject-unexpected-request-upgrade
      MINOR: http/hardening: add a new more protective "basic-web" profile
      REGTESTS: http-messaging: test the "basic-web" profile in 
http_hardening_profiles

---


Reply via email to