Up to [cvs.NetBSD.org] / pkgsrc / net / haproxy / patches
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
haproxy: updated to 3.4.0 3.4.0 - BUG/MINOR: tcpcheck: Check LDAP response to not read more data than available - BUG/MINOR: ssl-gencert: validate SNI characters to prevent SAN certificate injection - BUG/MINOR: mux-h1: H2 preface rejection doesn't update stick-table glitches - BUG/MEDIUM: cpu-topo: Enforce thread-hard-limit on policy - BUG/MEDIUM: qmux: do not crash on too large record - BUG/MEDIUM: qmux: do not crash on receiving an invalid first frame - BUG/MINOR: qmux: reject too large initial record - Revert "BUG/MEDIUM: dns: fix long loops in additional records parse on name failure" - BUG/MINOR: qpack: Fix index calculation in debug functions - BUG/MINOR: qpack: fix potential null-pointer dereference in qpack_dht_insert() - CLEANUP: qpack: fix copy-paste typo in value Huffman debug string - BUG/MINOR: qpack: fix sign bit mask in qpack_decode_fs_pfx() - CLEANUP: qpack: fix copy-paste typo in value Huffman debug string for WLN - BUG/MINOR: qpack: fix huff_dec() error handling in qpack_decode_fs() - CLEANUP: qpack: move encoded macros to qpack-t.h to avoid duplication - BUG/MEDIUM: quic: handle ECONNREFUSED on RX side - BUG/MINOR: quic: Fix memory leak in quic_deallocate_dghdlrs() - BUG/MEDIUM: lua: defer Lua VM initialisation to the first Lua config keyword - REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests - BUG/MINOR: mux-h2: Count padding for connection flow control on error path - BUILD: addons: convert 51d addon to EXTRA_MAKE - BUILD: addons: convert deviceatlas addon to EXTRA_MAKE - BUILD: addons: convert WURFL addon to EXTRA_MAKE - MINOR: mux_quic/flags: add missing flags - BUG/MINOR: mux_quic: open an idle QCS on reset on BE side - BUG/MINOR: mux_quic: fix BE conn removal on app shutdown - BUG/MINOR: mux_quic: prevent BE reuse with an errored conn - BUG/MINOR: quic: fix ack range node pool_free call passing wrong pointer type - MEDIUM: quic: optimize HKDF operations by reusing per-thread contexts - BUG/MEDIUM: quic: reset cwnd in slow_start on persistent congestion (cubic) - BUG/MEDIUM: quic: reset consecutive_losses on exit from recovery period (cubic) - BUG/MINOR: quic: update drs->lost before calling on_ack_recv - Revert "MEDIUM: quic: optimize HKDF operations by reusing per-thread contexts" - BUG/MEDIUM: lua: register hlua_init() as a pre-check to fix crash without Lua config - REGTESTS: quic: disable quic/ocsp_auto_update for now - BUG/MINOR: threads: set at least grp_max when mtpg is too small - BUG/MEDIUM: threads: ignore max-threads-per-group when thread-groups is set - CLEANUP: thread: indicate when max-threads-per-group is ignored - MINOR: cpu-topo: notify when cpu-policy is ignored due to other settings - MINOR: thread: report when thread-groups or nbthread results in less threads - BUILD: makefile: include EXTRA_MAKE in the .build_opts construction - BUG/MINOR: quic: Fix another buffer overflow with sockaddr_in46 - MINOR: quic: Copy sin6_flowinfo and sin6_scope_id too - BUILD: Makefile: put EXTRA_MAKE help at the right place - BUG/MINOR: cache: fix cache tree iteration - BUG/MEDIUM: resolvers: Wait a bit before calling the xprt prepare_srv - CLEANUP: addons/51degrees: initialize variables - MINOR: addons/51degrees: handle memory allocation failures - CLEANUP: ncbmbuf: improve handling of memory allocation errors in unit tests - CLEANUP: admin/halog: improve handling of memory allocation errors - DOC: internals: clarify ambiguous wording in core-principles - DOC: internals: add a threat model definition - DOC: add security.txt describing how to report security issues - DOC: security: also add a note to exclude dev/ and admin/ - BUG/MEDIUM: qmux: Close connection on invalid frame - CLEANUP: fix comment typo - BUG/MEDIUM: h3: fix MAX_PUSH_ID handling - BUG/MINOR: cache: Fix copy of value when parsing maxage - BUG/MEDIUM: mux-h1: Dup connection/upgrade value to parse it when making headers - BUG/MEDIUM: htx: Fix headers rollback on partial copy in htx_xfer() - MINOR: deinit: release the in-memory copy of shared libs - MINOR: debug: add -dA to dump an archive of all dependencies - BUG/MEDIUM: ssl: Make sure the alpn length is small enough - BUG/MINOR: applet: Commit changes into input buffer after sending HTX data - BUG/MINOR: mux-spop: Fix possible off-by-one OOB read in spop_get_varint() - BUG/MEDIUM: leastconn: Unlock the write lock on allocation failure - BUG/MINOR: tasks: Increase the right niced_task counter - BUILD: makefile: search for Lua 5.5 as well - DEV: dev/gdb: improve ebtree pointer handling - DEV: dev/gdb: add simple task dump - DEV: dev/gdb: add simple thread dump - DEV: dev/gdb: add fdtab dump - DOC: config: add a few more explanation in http-reusee regarding sni-auto - REGTESTS: add basic QMux tests - BUG/MINOR: http-act: Properly handle final evaluation in pause action - BUILD: makefile/lua: use the system's default library before all other variants - BUG/MINOR: startup: unbreak chroot with CAP_SYS_CHROOT - BUG/MINOR: haterm: do not try to bind QUIC when not supported - BUG/MINOR: haterm: also apply the tcp-bind-opts to clear TCP "bind" lines - CLEANUP: haterm: do not try to bind to SSL when not built in - MINOR: haterm: enable ktls on the SSL bind line when supported - CI: github: replace cirrus by a vmactions/freebsd-vm job - BUILD: makefile: fix build error with GNU make 4.2.1 and /bin/dash - BUG/MEDIUM: channel: Fix condition to know if a channel may send - BUG/MEDIUM: vars: Properly eval set-var-fmt action for emtpy log-format string - CI: github: run illumos job weekly on Mondays at 03:00 instead of monthly - BUG/MEDIUM: stream: Don't use small buffer on queuing with a request data filter - BUG/MINOR: jwe: don't write randoms past MAX_DECRYPTED_CEK_LEN in RSA_PKCS1_PADDING - BUG/MEDIUM: chunk: do not rely on small trash by default for expressions - CLEANUP: map: always test pat->ref in sample_conv_map_key() - DEV: patchbot: prepare for new version 3.5-dev - MINOR: version: mention that it's 3.4 LTS now.
haproxy: updated to 3.2.0 3.2.0 - MINOR: promex: Add agent check status/code/duration metrics - MINOR: ssl: support strict-sni in ssl-default-bind-options - MINOR: ssl: also provide the "tls-tickets" bind option - MINOR: server: define CLI I/O handler for "add server" - MINOR: server: implement "add server help" - MINOR: server: use stress mode for "add server help" - BUG/MEDIUM: server: fix crash after duplicate GUID insertion - BUG/MEDIUM: server: fix potential null-deref after previous fix - MINOR: config: list recently added sections with -dKcfg - BUG/MAJOR: cache: Crash because of wrong cache entry deleted - DOC: configuration: fix the example in crt-store - DOC: config: clarify the wording around single/double quotes - DOC: config: clarify the legacy cookie and header captures - DOC: config: fix alphabetical ordering of layer 7 sample fetch functions - DOC: config: fix alphabetical ordering of layer 6 sample fetch functions - DOC: config: fix alphabetical ordering of layer 5 sample fetch functions - DOC: config: fix alphabetical ordering of layer 4 sample fetch functions - DOC: config: fix alphabetical ordering of internal sample fetch functions - BUG/MINOR: h3: Set HTX flags corresponding to the scheme found in the request - BUG/MEDIUM: h3: Declare absolute URI as normalized when a :authority is found - DOC: config: mention in bytes_in and bytes_out that they're read on input - DOC: config: clarify the basics of ACLs (call point, multi-valued etc) - REGTESTS: Make the script testing conditional set-var compatible with Vtest2 - REGTESTS: Explicitly allow failing shell commands in some scripts - MINOR: listeners: Add support for a label on bind line - BUG/MEDIUM: cli/ring: Properly handle shutdown in "show event" I/O handler - BUG/MEDIUM: hlua: Properly detect shudowns for TCP applets based on the new API - BUG/MEDIUM: hlua: Fix getline() for TCP applets to work with applet's buffers - BUG/MEDIUM: hlua: Fix receive API for TCP applets to properly handle shutdowns - CI: vtest: Rely on VTest2 to run regression tests - CI: vtest: Fix the build script to properly work on MaOS - CI: combine AWS-LC and AWS-LC-FIPS by template - BUG/MEDIUM: httpclient: Throw an error if an lua httpclient instance is reused - DOC: hlua: Add a note to warn user about httpclient object reuse - DOC: hlua: fix a few typos in HTTPMessage.set_body_len() documentation - DEV: patchbot: prepare for new version 3.3-dev - MINOR: version: mention that it's 3.2 LTS now.
haproxy: updated to 3.0.5
3.0.5
- BUG/MEDIUM: server/addr: fix tune.events.max-events-at-once event miss and leak
- BUG/MEDIUM: stconn: Report error on SC on send if a previous SE error was set
- BUG/MEDIUM: mux-pt/mux-h1: Release the pipe on connection error on sending path
- BUILD: mux-pt: Use the right name for the sedesc variable
- BUG/MINOR: stconn: bs.id and fs.id had their dependencies incorrect
- BUG/MEDIUM: ssl: reactivate 0-RTT for AWS-LC
- BUG/MEDIUM: ssl: 0-RTT initialized at the wrong place for AWS-LC
- BUG/MEDIUM: quic: prevent conn freeze on 0RTT undeciphered content
- BUG/MEDIUM: http-ana: Report error on write error waiting for the response
- BUG/MEDIUM: h2: Only report early HTX EOM for tunneled streams
- BUG/MEDIUM: mux-h2: Propagate term flags to SE on error in h2s_wake_one_stream
- BUG/MEDIUM: peer: Notify the applet won't consume data when it waits for sync
- BUG/MINOR: fcgi-app: handle a possible strdup() failure
- DOC: configuration: fix alphabetical ordering of {bs,fs}.aborted
- BUG/MINOR: trace/quic: enable conn/session pointer recovery from quic_conn
- BUG/MINOR: trace/quic: permit to lock on frontend/connect/session etc
- BUG/MEDIUM: trace: fix null deref in lockon mechanism since TRACE_ENABLED()
- BUG/MINOR: trace: automatically start in waiting mode with "start <evt>"
- BUG/MINOR: trace/quic: make "qconn" selectable as a lockon criterion
- BUG/MINOR: quic/trace: make quic_conn_enc_level_init() emit NEW not CLOSE
- BUG/MINOR: proto_tcp: delete fd from fdtab if listen() fails
- BUG/MINOR: proto_tcp: keep error msg if listen() fails
- MINOR: channel: implement ci_insert() function
- BUG/MEDIUM: mworker/cli: fix pipelined modes on master CLI
- REGTESTS: mcli: test the pipelined commands on master CLI
- BUG/MINOR: mux-quic: do not send too big MAX_STREAMS ID
- BUG/MINOR: proto_uxst: delete fd from fdtab if listen() fails
- BUG/MINOR: h3: properly reject too long header responses
- BUG/MINOR: pattern: pat_ref_set: fix UAF reported by coverity
- BUG/MINOR: pattern: pat_ref_set: return 0 if err was found
- DOC: config: correct the table for option tcplog
- BUG/MINOR: cfgparse-global: remove tune.fast-forward from common_kw_list
- BUILD: quic: 32bits build broken by wrong integer conversions for printf()
- BUG/MEDIUM: clock: also update the date offset on time jumps
- MINOR: tools: Implement ipaddrcpy().
- MINOR: quic: Implement quic_tls_derive_token_secret().
- MEDIUM: ssl/quic: implement quic crypto with EVP_AEAD
- MINOR: quic: Token for future connections implementation.
- BUG/MINOR: quic: Missing incrementation in NEW_TOKEN frame builder
- MINOR: quic: Modify NEW_TOKEN frame structure (qf_new_token struct)
- MINOR: quic: Implement qc_ssl_eary_data_accepted().
- MINOR: quic: Add trace for QUIC_EV_CONN_IO_CB event.
- BUG/MEDIUM: quic: always validate sender address on 0-RTT
- BUG/MINOR: quic: Crash from trace dumping SSL eary data status (AWS-LC)
- BUG/MINOR: quic: Too short datagram during packet building failures (aws-lc only)
- DOC: configuration: place the HAPROXY_HTTP_LOG_FMT example on the correct line
- REGTESTS: fix random failures with wrong_ip_port_logging.vtc under load
- BUG/MEDIUM: clock: detect and cover jumps during execution
- BUG/MINOR: pattern: prevent const sample from being tampered in pat_match_beg()
- BUG/MEDIUM: pattern: prevent UAF on reused pattern expr
- BUG/MAJOR: mux-h1: Wake SC to perform 0-copy forwarding in CLOSING state
- BUG/MINOR: h1-htx: Don't flag response as bodyless when a tunnel is established
- BUG/MINOR: pattern: do not leave a leading comma on "set" error messages
- MEDIUM: h1: Accept invalid T-E values with accept-invalid-http-response option
- BUG/MINOR: polling: fix time reporting when using busy polling
- BUG/MINOR: clock: make time jump corrections a bit more accurate
- BUG/MINOR: clock: validate that now_offset still applies to the current date
- BUG/MEDIUM: queue: implement a flag to check for the dequeuing
- BUG/MINOR: peers: local entries updates may not be advertised after resync
- DOC: config: Explicitly list relaxing rules for accept-invalid-http-* options
- BUG/MEDIUM: sc_strm/applet: Wake applet after a successfull synchronous send
- BUG/MEDIUM: cache/stats: Wait to have the request before sending the response
- BUG/MEDIUM: promex: Wait to have the request before sending the response
- BUG/MINOR: cfgparse-listen: fix option httpslog override warning message
- MINOR: quic: convert qc_stream_desc release field to flags
- MINOR: quic: implement function to check if STREAM is fully acked
- BUG/MEDIUM: quic: handle retransmit for standalone FIN STREAM
- BUG/MINOR: quic: prevent freeze after early QCS closure
haproxy: updated to 3.0.0
HAProxy 3.0.0 was released on 2024/05/29. It added 21 new commits
after version 3.0-dev13. I do appreciate that everything was only
cosmetic.
We're having a total of 1108 patches in this release among which 850 ones
not concerning a bug, which makes it the smallest LTS release of all times
(2.6 and 2.4 still remain the largest ones, respectively 65% and 58%
larger). This is a good news in terms of expected stability, which might
possibly break the old myth of "better avoid dot zero".
Let's try to summarize what's new in this release. It has been one of the
most difficult for me to summarize because I'm not seeing one big killer
feature, instead it's an LTS as we like them: mostly a nice polishing of
existing stuff and small improvements all over the place as permitted by
the previous version's architectural changes. I tried to classify this
into a few categories, depending on the intended benefits.
First, let's enumerate the new features, and improvements of existing ones:
- stats can finally be preserved across reloads for frontends,
listeners, backends and servers. When using this, the config objects
of the new process are preloaded with the relevant values from a dump
of the previous process. This essentially concerns counters, ages and
rates. Please have a look at "stats-file" and "dump stats-file" for
more information.
- the log outgoing load-balancing now relies on a regular backend,
meaning that the load balancing algorithms could finally be unified
with the ones used by other protocols, and servers now support
weights.
- log-format now supports JSON and CBOR output encoding. In such a case,
the field name is taken from a new naming scheme that is placed within
the log-format itself, allowing to assign a name to each field.
- the load balancing algorithm "sticky" that was initially reserved for
logs was generalized to other protocols.
- the HTTP/2 RST_STREAM reason code can finally be forwarded to the
server for client aborts. This addresses the problem a few users were
facing with gRPC where request cancellation appeared as communication
errors the server side. For now this is purposely limited to only a
few reason codes that are relevant to gRPC so that we don't ruin the
possibility to later extend that to H3 and maybe H1.
- QUIC now supports the HyStart++ (RFC9406) alternative to slowstart
with the Cubic algorithm. It's supposed to show better recovery
patterns. It's not yet enabled by default.
- a new set of converters, map_*_key, will report the matching part of
the key itself instead of the associated pattern. The main target use
cases for this is to know what address mask an address did match, or
what regex a pattern did match.
- the "uuid()" sample fetch function, which takes an optional version in
argument now also supports "7" for UUIDv7. These UUIDs regroup many
properties found in ULID and other mechanisms, one of the most
interesting one being time-based locality that, for example, eases the
archiving of old data, or the grouping of events on systems where
they'll be processed together.
- the name associated with servers in connection pools can now be
overridden by the expression in "pool-conn-name" when SNI is not
desired (useful with rhttp without SSL for example, but may also make
sense when reaching remote servers over SSL tunnels). It also allows
to entirely drop SSL from the server.
- the "namespace" argument now works for "bind" and "server" lines using
UNIX sockets.
- Linux capabilities: the use of namespaces on the server side used to
require capability "cap_sys_admin" but it was neither checked nor
reported on startup to it would silently fail. The capability is now
supported and is being checked for. Similarly, the need for
capabilities for transparent proxying or QUIC are checked and reported
on startup. Finally, file-system capabilities set on the executable are
also supported now.
- the set-mark/set-tos actions were extended to support an expression in
addition of the constant, and were extended to also support the backend
side. This can for example be used to select an outgoing link from a
single IP address. The new backend actions are called "set-bc-mark" and
"set-bc-tos", and by analogy new frontend actions called "set-fc-mark"
and "set-fc-tos" were created, and the old actions are aliases of these
last ones.
- QUIC built with latest AWS-LC TLS library now correctly supports 0-RTT.
- a new global setting "ssl-security-level" allows to adjust OpenSSL's
internal security level beween 0 and 5. Previously it could only be
done in openssl.cnf.
- the key used by consistent hash to map to a server used to always be
the server's id (either explicit or implicit, position-based), but
that was not always convenient when dealing with fast added-removed
server within a large fleet of LBs. Now the "hash-key" directive will
also allow to use the server's address or address+port for this so
that the same key ends up on the same server for all LBs.
- The HTTP client now has an option to use either origin or absolute
URIs. This should make it easier to configure it to talk to old
servers which are not spec-compliant and do not support absolute
URIs. The ocsp_update agent already exploits this ability via a new
setting "ocsp-update.httpproxy".
- it is now possible to suppress Content-Length and Transfer-Encoding
headers from HTTP/1 requests and responses. It must never be done of
course but there are rare situations where users dealing with bogus
clients or server need to perform such cleanups. Most of the time
when done, this will mark a connection non-reusable and it will be
closed at the end of the transfer.
- the proxy protocol now also parses TLV for LOCAL mode and supports
sending them without a stream so that elements can be passed during
the preconnect phase of a reverse-HTTP instance to a next stage that
will no longer ignore them.
- the new sched_setaffinity() of FreeBSD 14 and newer is now supported.
- the new certificate selection callback for WolfSSL was now enabled
since it's finally available in the upstream project.
haproxy: updated to 2.7.0 2.7.0 - MINOR: ssl: forgotten newline in error messages on ca-file - BUG/MINOR: ssl: shut the ca-file errors emitted during httpclient init - DOC: config: provide some configuration hints for "http-reuse" - DOC: config: refer to section about quoting in the "add_item" converter - DOC: halog: explain how to use -ac and -ad in the help message - DOC: config: clarify the fact that SNI should not be used in HTTP scenarios - DOC: config: mention that a single monitor-uri rule is supported - DOC: config: explain how default matching method for ACL works - DOC: config: clarify the fact that "retries" is not just for connections - BUILD: halog: fix missing double-quote at end of help line - DOC: config: clarify the -m dir and -m dom pattern matching methods - MINOR: activity: report uptime in "show activity" - REORG: activity/cli: move the "show activity" handler to activity.c - DEV: poll: add support for epoll - DEV: tcploop: centralize the polling code into wait_for_fd() - DEV: tcploop: add support for POLLRDHUP when supported - DEV: tcploop: do not report an error on POLLERR - DEV: tcploop: add optional support for epoll - SCRIPTS: announce-release: add a link to the data plane API - CLEANUP: stick-table: fill alignment holes in the stktable struct - MINOR: stick-table: store a per-table hash seed and use it - MINOR: stick-table: show the shard number in each entry's "show table" output - CLEANUP: ncbuf: remove ncb_blk args by value - CLEANUP: ncbuf: inline small functions - CLEANUP: ncbuf: use standard BUG_ON with DEBUG_STRICT - BUG/MINOR: quic: Endless loop during retransmissions - MINOR: mux-h2: add the expire task and its expiration date in "show fd" - BUG/MINOR: peers: always initialize the stksess shard value - REGTESTS: fix peers-related regtests regarding "show table" - BUG/MEDIUM: mux-h1: Close client H1C on EOS when there is no output data - MINOR: stick-table: change the API of the function used to calculate the shard - CLEANUP: peers: factor out the key len calculation in received updates - BUG/MINOR: peers: always update the stksess shard number on incoming updates - CLEANUP: assorted typo fixes in the code and comments - MINOR: mux-h1: add the expire task and its expiration date in "show fd" - MINOR: debug: improve error handling on the memstats command parser - BUILD: quic: allow build with USE_QUIC and USE_OPENSSL_WOLFSSL - CLEANUP: anon: clarify the help message on "debug dev hash" - MINOR: debug: relax access restrictions on "debug dev hash" and "memstats" - SCRIPTS: run-regtests: add a version check - MINOR: version: mention that it's stable now
haproxy: Various build fixes.