Release notes
HAProxy Data Plane API 3.4 release notes
The HAProxy Data Plane API 3.4 release rewrites the API server from go-swagger to a chi router with oapi-codegen generated handlers (OpenAPI 3) and adds full configuration support for HAProxy 3.4. Endpoint paths, methods, parameters and success responses are unchanged, but a small number of client-visible behavior changes are described below.
This release supports HAProxy 3.4 and newer versions.
New features Jump to heading
New features in this release include the following:
-
Added support for the
force-be-switchfrontend directive, with a registered handler and parser/configuration support. -
Added full CRUD support for the HAProxy
healthchecksection, including handlers andoapi-codegenspecification and configuration, parser and specification support. -
Added HAProxy 3.4 proxy options:
option use-small-buffers(defaults, listen, backend) with optional queue, l7-retries and check modes; andstats show-version(defaults, frontend, listen, backend) for the stats page. -
Added HAProxy 3.4 global process options:
cpu-affinity,max-threads-per-group, andstats calculate-max-counters. -
Added HAProxy 3.4 global tunable options:
tune.bufsize.large,tune.cli.max-payload-size,tune.h2.be.max-frames-at-once,tune.h2.fe.max-frames-at-once,tune.h2.fe.max-rst-at-once,tune.h2.log-errors,tune.lua.openlibs,tune.quic.fe.stream.max-total,tune.defaults.purge,tune.h1.be.glitches-threshold,tune.h1.fe.glitches-threshold, andtune.ssl.certificate-compression. -
Added the HTTP actions
add-headers-bin,del-headers-bin, andset-headers-bin. -
Added the
filter-sequencedirective andcomp-req/comp-resfilters. -
Extended
set-timeout,do-logandfilter tracefor HAProxy 3.4. -
Added the
quic-cc-algoserver directive. -
Added the
shardsandtcp-ssbind options. -
Added the
fd-hard-limitglobal option. -
Allowed HAProxy variables in the format
${VAR}in peer entries, nameservers, mailer entries, userlist groups/users, and frontendlog_tag. -
Removed the deprecated
req_ssl_sni, replaced byreq.ssl_sni. -
Extended ACME support:
- Added support for the
dns-persist-01ACME challenge. - Added the
profileACME keyword. - Added new ACME keywords for HAProxy 3.4:
challenge-ready,dns-delay, anddns-timeout. - Allowed setting the DNS TTL via
acme-vars.
For a tutorial, see Enable TLS by using the ACME protocol.
- Added support for the
-
Updated runtime behavior:
- Added all supported server parameters to the runtime server handler.
- Added all fields for the runtime server, added server
weightand made the address editable. - Improved HAProxy runtime version checks and allowed
ExecuteRawto run multiple commands at once.
-
Updated server and request handling:
- Added a configurable request body size limit via
--max-body-size(default 1 GiB). - Stream multipart uploads instead of buffering them in memory.
- Exposed the client-native
validate_files_afterandvalidate_files_beforeoptions.
- Added a configurable request body size limit via
Major changes Jump to heading
Major changes in this release include the following:
-
Replaced the
go-swaggergeneratedDataPlaneAPIserver with a chi router andoapi-codegengenerated handlers (OpenAPI 3). Where chi’s defaults differ from the old server, the router carries explicit code to keep the wire behavior unchanged:- JSON bodies for router-level errors: chi answers unmatched paths and disallowed methods with plain-text bodies (
404 page not found); custom handlers restore the JSON shape the go-swagger server returned ({"code": 404, "message": "path ... was not found"}). They are registered on both the root router and the mounted/v3sub-router. - The
Allowheader on 405 responses: RFC 9110 requires a 405 response to list the methods the resource supports, and the go-swagger server did so; chi does not expose the matched route’s allowed methods to a custom 405 handler, so the handler rebuilds the list by probing the router with each standard method for the requested path. - Trailing slashes are ignored: Requests are routed as if a trailing slash were absent (chi’s
StripSlashesmiddleware), so/v3/.../mapsand/v3/.../maps/hit the same handler. Reload-IDheader spelling: The specification spells the reload headerReload-ID, while the server sends the canonicalReload-Idform — exactly as the old go-swagger server did, since Go’shttp.Headercanonicalizes header names on write. Header names are case-insensitive, so clients should treat the two spellings as equal.
- JSON bodies for router-level errors: chi answers unmatched paths and disallowed methods with plain-text bodies (
-
Migrated all handlers to
oapi-codegenand moved the path specification out of client-native into dataplaneapi, with new specification-generation tooling. -
Removed the now unused
operationsfolder and deprecated generation code.
Bug fixes Jump to heading
This release includes the following bug fixes:
- Trigger a reload when replacing an
http-errorssection. - Fixed data races, a goroutine leak and reconnect logic in the events listener.
- Fixed a nil-dereference panic in the events listener
Stop(). - ACME: fixed saving certificates into a
crt-store. - ACME: increased the default TTL to 1 minute.
- Fixed ACME DNS-01 propagation checks.
- Return the correct error code when adding duplicates into a map file.
- Ignore empty runtime API commands.
- Fixed crashes and non-idempotent serialization.
- Order the
fcgi-appsection before proxies. - Set the
log-profilemetadata comment on the right section. - Preserve quoting of
log-profilestep sd/format. - Fixed serialization of the ACME
provider-name. - Added
"to name regexes to support variable names. - Dropped the RSA-only bits minimum for ACME.
- Fixed read-only fields for the SSL certificate resource.
- Generate the specification with the proper template.
- Fixed a typo in specification description fields.
- Fixed
force-be-switchrule parsing and parts condition. crt_store: fixed the section to match the v3 URL structure.userlists: fixed ordering of users in serialization.dgram-bind: fixed IPv6 address parsing and serialization.server: don’t set the port to0when it isn’t set.- Fixed a typo and a boolean type in the runtime server.
raw: use the custom validation command on validate-only.- Ensure heredoc payloads have a blank-line terminator.
- Fixed a data race on
lastErrorcausing a nil-pointer panic. - Fixed an
EventListenerClose()deadlock and channel panic. - Reject special characters in file names.
- Get the real storage name of certificates.
Other Changes Jump to heading
Other changes in this release include the following.
Build and dependencies Jump to heading
- Upgraded Go to 1.26.
- Upgraded
golangci-lintand fixed the resulting linting errors. - Upgraded the client-native library to v6.4.0.
- Updated AWS SDK,
golang.org/x, go-openapi and gRPC packages. - Added specification-generation support and updated codegen dependencies.
- client-native: upgraded
go-method-gento v0.1.4 and handled interface types in the struct-equal generator.
Testing Jump to heading
- Migrated e2e fixtures to
log_targets. - Added e2e and unit tests for the
healthchecksection, the auth middleware, and the respond helpers. - Fixed stale endpoint paths and assertions; raw endpoints no longer send JSON; moved
crt-listtests to the proper URL. - Fixed a flaky SSL storage test and a syntax error in the e2e groups test.
CI/CD Jump to heading
- Require
pipelines-checkfor all jobs and added JUnit reporting. - Added
check-dependenciesandcheck-committerjobs. - Use the latest-alpine golang image; removed the
check-large-filesjob; bumped the commit-check version.
Enterprise changes Jump to heading
The changes above apply to the Data Plane API and its OpenAPI specification. In addition, HAProxy Enterprise customers get Data Plane API support for the following HAProxy Enterprise 3.4r1 features. These capabilities are available in the Enterprise distribution of the API, and they extend the structured configuration and REST resources described earlier in these notes.
Web Application Firewall Jump to heading
-
Added WAF log targets to the
waf_globalandwaf_profileobjects, exposed as thelog_target_listarray on thewaf_globalandwaf_profileobjects and using the samelog_targetitem shape as the existing proxy and global log targets. This chooses where WAF event logs are sent, separately from the rest of the traffic logs; theiwe logoptions control what is logged./services/haproxy/configuration/waf_global/log_targets[/{index}]for the section-wide targets, which are inherited by every profile./services/haproxy/configuration/waf_profiles/{parent_name}/log_targets[/{index}]for the targets of one profile, which are additive on top of the inherited ones.no logdiscards the inherited targets, andlog globalreuses theglobalsection’s targets.
-
Added the IWE per-request match caps, exposed as nullable integers on both the
waf_globalandwaf_profileobjects. Awaf_profilevalue overrides thewaf_globalvalue, and an explicit0on a profile restores the unlimited default.max_matches_processedcaps how many rule matches are processed per request. Beyond the cap, processing stops and the request fails closed: theblockanddropactions are set andtxn.<identifier>.match_limitedis raised.max_matches_capturedcaps the matches stored in the per-request match list and written to logs. Matches beyond the cap are still scored, so the block/allow verdict is unchanged.max_matches_loggedcaps the per-match log lines a single request can emit, across both the extended-match and whitelist logs. The summary log still reports the true totals.
-
Added the IWE inspection limits, exposed as nullable integers on the
waf_globalandwaf_profileobjects, with thewaf_profilevalues overriding thewaf_globalvalues:name_limit,content_limit,args_limit, andjson_args_limit. These are Intelligent WAF Engine keywords. Thecrs_args_limitandcrs_json_args_limitfields on the samewaf_profilebelong to the separate ModSecurity engine and are unaffected.- These properties are nullable because
0is a meaningful disabled value, while an absent property means unset. - The same four limits are also available on the
filter wafline, through the/services/haproxy/configuration/backends/{parent_name}/filtersand/services/haproxy/configuration/frontends/{parent_name}/filtersendpoints.
- These properties are nullable because
-
Added the
formatproperty to thewaf_profilelog object, an enum ofjson,json-cee, andcbor, which selects the data format of the WAF, WAF-EXT, and WAF-WL log records. Leaving it unset keeps the legacykey=valueline. Every structured record also has the machine hostname and the workerpid, andjson-ceeis the same JSON object prefixed with@waf:. Becausecboris binary, the receiving log collector must be able to decode it. The option is available only on the profile-levellog, not onwaf_globalor thefilter wafline. -
Added the
wl_builtinboolean to thewaf_profilelog object, next to the existingwl. It logs only the whitelisted built-in rules, whereaswllogs all whitelisted rules. The equivalentfilter wafparameter islog_wl_builtin.
Captcha Jump to heading
-
Added the
log_levelproperty to thecaptchaobject, which sets the maximum verbosity of the events reported to the logs of the frontend. It acceptsemerg,alert,crit,err,warning,notice,info,debug, orsilent, and defaults tosilent, which reports nothing. -
Added support for the native ALTCHA captcha provider, which is self-hosted, so no end-user traffic goes to a third-party captcha cloud:
altchais accepted as amodevalue on thecaptchaobject.- New string properties
altcha_challenge_url,altcha_verify_url, andaltcha_js_url. altcha_challenge_urlandaltcha_verify_urlare mandatory inaltchamode, andsite_keyandsecret_keyaren’t required.altcha_js_urlis optional and overrides the ALTCHA widget script URL, which defaults to the public CDN script.- The challenge URL and the widget script are fetched by the client browser, so they must be browser-reachable, CORS-enabled, and served over HTTPS when the protected site is HTTPS. The verify URL is fetched by the module itself.
UDP load balancing Jump to heading
-
Added action-based fields to the structured configuration and the REST interface, under the
udp_lbsparent resource:- The
udp_request_rule_listfield, which runs actions per datagram. Supported actions areaccept,reject,dgram-drop,set-var,set-var-fmt,unset-var,track-sc<N>,sc-inc-gpc,sc-inc-gpc0,sc-inc-gpc1,sc-set-gpt,sc-set-gpt0, andsc-add-gpc. - The
udp_checksfield, which defines datagram health check actions. Supported actions arecomment,send,send-binary, andexpect, whereexpectacceptsmin-recv,comment,ok-status,error-status,tout-status, negation with!, and thestring,rstring,binary, andrbinarymatches. - The
check_timeoutfield on theudp_lbsresource.
- The
Global server load balancing Jump to heading
- Added HAProxy Data Plane API support for the HAProxy Enterprise Global Server Load Balancing (GSLB) module, so that GSLB configuration objects such as
zone,answer-list, andgeoip-mapcan be managed over the JSON/REST interface instead of by hand-editing the GSLB template files.
Route Health Injection Jump to heading
-
Added support for configuring the Route Health Injection module through the API:
GET|POST /services/haproxy/configuration/rhi_bgpsandGET|PUT|DELETE /services/haproxy/configuration/rhi_bgps/{name}, withfull_sectionsupported on the section endpoints.- Child resources
.../rhi_bgps/{parent_name}/rhi_bgp_neighbors(and/{name}) and.../rhi_bgps/{parent_name}/rhi_announces(and/{index}). - The templated
aclandlog_targetresources are now also available underrhi-bgpsections. - The underlying
rhi-bgpsection keywords map to API properties by replacing-with_, so for example thelocal-askeyword is thelocal_asproperty.
-
Route import and learning, for example learning Kubernetes pod subnets, is out of scope for this resource.
Certificate store remote updates Jump to heading
-
Added resources for the remote update entries of a
crt-store, which fetch certificates from a remote source and refresh them on an interval:GET|PUT /services/haproxy/configuration/crt_stores/{crt_store}/crt_updatesto list or replace all update entries of a store.GET|POST|PUT|DELETE /services/haproxy/configuration/crt_stores/{crt_store}/crt_updates/{index}to read, add, replace, or delete a single entry by index.- New
crt_updateandcrt_updatesmodels, plus the entries as they appear in the structured configuration payload. - The underlying directive requires
urlto be the first parameter;delayandretry-delayare integer seconds with no unit suffix, defaulting to 86400 and 600;formatisjwkby default orpem; andnameis mandatory withformat pemand forbidden withformat jwk.
ACME Jump to heading
- The structured configuration exposes the ACME (Let’s Encrypt) integration through the
acme_providerfield, which sets the DNS provider used for thedns-01challenge, and theacme_varsfield, which defines the variables passed to that provider, typically API credentials. With these, certificates can be issued, renewed, and kept up to date in HAProxy through the API.
Global tune options Jump to heading
-
Added the
bufsize_largeproperty to the globaltune_buffer_optionsobject, for thetune.bufsize.largekeyword. The field is size-typed, so values such as64kare accepted.- Large-buffer support is disabled unless this value is set, and large buffers are never used implicitly. Once configured, three large buffers per thread are allocated at startup.
- A value lower than
tune.bufsizemakes HAProxy log a warning and disable large-buffer support. - Its consumer is
http-request wait-for-body ... use-large-buffer, which requires this value to be set.
Breaking changes Jump to heading
This release introduces the following breaking changes:
-
Git mode is removed. Deprecated in 3.3, the
-g/--git-modeand--git-settings-filecommand-line arguments, thedataplaneapi.git_modeanddataplaneapi.git_settings_fileconfiguration options and the/services/git,/services/git/settingsand/services/git/actionsendpoints no longer exist. -
HAProxy ALOHA mode is removed. Deprecated in 3.3, the
-a/--aloha-modeand--aloha-hash-filecommand-line arguments, thedataplaneapi.aloha_modeanddataplaneapi.aloha_hash_fileconfiguration options and the/alohaand/aloha/actionsendpoints no longer exist. -
Validation failures that previously carried
go-swaggerinternal codes in the body (e.g.{"code": 606}with HTTP 422) now return the HTTP status in the body ({"code": 422}). Clients matching on the old 6xx body codes must switch to the HTTP status. -
Raw configuration endpoints are text-only.
POST /services/haproxy/configuration/rawaccepts onlytext/plainbodies; the previous (accidental) JSON-encoded-string body is no longer accepted, and error responses are nowapplication/jsoninstead oftext/plain. -
Unmatched paths require authentication. Basic auth is enforced in front of the router, so an unauthenticated request to a non-existent path now returns
401instead of404. -
SSL certificate
DELETEcan return204.DELETE /services/haproxy/storage/ssl_certificates/{name}withoutskip_reload/force_reloadnow removes via the HAProxy Runtime API and returns204on success, falling back to202with aReload-IDheader. Treat both as success. -
Request bodies are capped at 1 GiB by default. Bodies exceeding the limit are rejected with
413. This is configurable via--max-body-size(max_body_size); A0value disables it. -
Replacing
acme,log_profiles,crt_stores,mailers_sectionandhttp_errors_sectionsnow triggers a reload. ThesePUTendpoints previously wrote the change without scheduling a reload; they now follow the standard pattern (202withReload-ID, or200withforce_reload=true). -
Removed deprecated process-manager (
program) endpoints, following the removal of theprogramsection from HAProxy. -
Removed unused cluster endpoints.
-
Removed deprecated
--log-*/--syslog-*CLI options and the persistedlogstorage section, superseded by thelog_targetsconfiguration. When no log targets are configured, the API defaults to astdouttarget.
Contributors Jump to heading
Thank you to those who contributed to HAProxy Data Plane API 3.4!
| Contributor | Area |
|---|---|
| AdamJCrawford | FEATURE |
| ahusic | FEATURE, BUILD, TEST |
| Andjelko Iharos | BUG |
| Dario Tranchitella | BUG |
| Dinko Korunic | BUG |
| Helene Durand | FEATURE |
| Ivan Matmati | FEATURE, BUILD |
| Marko Juraga | FEATURE, BUG, BUILD, CLEANUP, DOC, TEST |
| Olivier Duclos | FEATURE, BUG, BUILD, TEST |
| Pierre-Alain SIMON | FEATURE |
| Robert Maticevic | FEATURE, BUG, BUILD, CLEANUP, DOC, REORG, TEST |
| Zlatko Bratkovic | FEATURE, BUILD |