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-switch frontend directive, with a registered handler and parser/configuration support.

  • Added full CRUD support for the HAProxy healthcheck section, including handlers and oapi-codegen specification 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; and stats show-version (defaults, frontend, listen, backend) for the stats page.

  • Added HAProxy 3.4 global process options: cpu-affinity, max-threads-per-group, and stats 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, and tune.ssl.certificate-compression.

  • Added the HTTP actions add-headers-bin, del-headers-bin, and set-headers-bin.

  • Added the filter-sequence directive and comp-req / comp-res filters.

  • Extended set-timeout, do-log and filter trace for HAProxy 3.4.

  • Added the quic-cc-algo server directive.

  • Added the shards and tcp-ss bind options.

  • Added the fd-hard-limit global option.

  • Allowed HAProxy variables in the format ${VAR} in peer entries, nameservers, mailer entries, userlist groups/users, and frontend log_tag.

  • Removed the deprecated req_ssl_sni, replaced by req.ssl_sni.

  • Extended ACME support:

    • Added support for the dns-persist-01 ACME challenge.
    • Added the profile ACME keyword.
    • Added new ACME keywords for HAProxy 3.4: challenge-ready, dns-delay, and dns-timeout.
    • Allowed setting the DNS TTL via acme-vars.

    For a tutorial, see Enable TLS by using the ACME protocol.

  • Updated runtime behavior:

    • Added all supported server parameters to the runtime server handler.
    • Added all fields for the runtime server, added server weight and made the address editable.
    • Improved HAProxy runtime version checks and allowed ExecuteRaw to 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_after and validate_files_before options.

Major changes Jump to heading

Major changes in this release include the following:

  • Replaced the go-swagger generated DataPlaneAPI server with a chi router and oapi-codegen generated 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 /v3 sub-router.
    • The Allow header 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 StripSlashes middleware), so /v3/.../maps and /v3/.../maps/ hit the same handler.
    • Reload-ID header spelling: The specification spells the reload header Reload-ID, while the server sends the canonical Reload-Id form — exactly as the old go-swagger server did, since Go’s http.Header canonicalizes header names on write. Header names are case-insensitive, so clients should treat the two spellings as equal.
  • Migrated all handlers to oapi-codegen and moved the path specification out of client-native into dataplaneapi, with new specification-generation tooling.

  • Removed the now unused operations folder and deprecated generation code.

Bug fixes Jump to heading

This release includes the following bug fixes:

  • Trigger a reload when replacing an http-errors section.
  • 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-app section before proxies.
  • Set the log-profile metadata comment on the right section.
  • Preserve quoting of log-profile step 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-switch rule 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 to 0 when 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 lastError causing a nil-pointer panic.
  • Fixed an EventListener Close() 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-lint and 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-gen to 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 healthcheck section, the auth middleware, and the respond helpers.
  • Fixed stale endpoint paths and assertions; raw endpoints no longer send JSON; moved crt-list tests 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-check for all jobs and added JUnit reporting.
  • Added check-dependencies and check-committer jobs.
  • Use the latest-alpine golang image; removed the check-large-files job; 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_global and waf_profile objects, exposed as the log_target_list array on the waf_global and waf_profile objects and using the same log_target item 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; the iwe log options 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 log discards the inherited targets, and log global reuses the global section’s targets.
  • Added the IWE per-request match caps, exposed as nullable integers on both the waf_global and waf_profile objects. A waf_profile value overrides the waf_global value, and an explicit 0 on a profile restores the unlimited default.

    • max_matches_processed caps how many rule matches are processed per request. Beyond the cap, processing stops and the request fails closed: the block and drop actions are set and txn.<identifier>.match_limited is raised.
    • max_matches_captured caps 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_logged caps 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_global and waf_profile objects, with the waf_profile values overriding the waf_global values: name_limit, content_limit, args_limit, and json_args_limit. These are Intelligent WAF Engine keywords. The crs_args_limit and crs_json_args_limit fields on the same waf_profile belong to the separate ModSecurity engine and are unaffected.

    • These properties are nullable because 0 is a meaningful disabled value, while an absent property means unset.
    • The same four limits are also available on the filter waf line, through the /services/haproxy/configuration/backends/{parent_name}/filters and /services/haproxy/configuration/frontends/{parent_name}/filters endpoints.
  • Added the format property to the waf_profile log object, an enum of json, json-cee, and cbor, which selects the data format of the WAF, WAF-EXT, and WAF-WL log records. Leaving it unset keeps the legacy key=value line. Every structured record also has the machine hostname and the worker pid, and json-cee is the same JSON object prefixed with @waf: . Because cbor is binary, the receiving log collector must be able to decode it. The option is available only on the profile-level log, not on waf_global or the filter waf line.

  • Added the wl_builtin boolean to the waf_profile log object, next to the existing wl. It logs only the whitelisted built-in rules, whereas wl logs all whitelisted rules. The equivalent filter waf parameter is log_wl_builtin.

Captcha Jump to heading

  • Added the log_level property to the captcha object, which sets the maximum verbosity of the events reported to the logs of the frontend. It accepts emerg, alert, crit, err, warning, notice, info, debug, or silent, and defaults to silent, 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:

    • altcha is accepted as a mode value on the captcha object.
    • New string properties altcha_challenge_url, altcha_verify_url, and altcha_js_url.
    • altcha_challenge_url and altcha_verify_url are mandatory in altcha mode, and site_key and secret_key aren’t required.
    • altcha_js_url is 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_lbs parent resource:

    • The udp_request_rule_list field, which runs actions per datagram. Supported actions are accept, 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, and sc-add-gpc.
    • The udp_checks field, which defines datagram health check actions. Supported actions are comment, send, send-binary, and expect, where expect accepts min-recv, comment, ok-status, error-status, tout-status, negation with !, and the string, rstring, binary, and rbinary matches.
    • The check_timeout field on the udp_lbs resource.

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, and geoip-map can 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_bgps and GET|PUT|DELETE /services/haproxy/configuration/rhi_bgps/{name}, with full_section supported 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 acl and log_target resources are now also available under rhi-bgp sections.
    • The underlying rhi-bgp section keywords map to API properties by replacing - with _, so for example the local-as keyword is the local_as property.
  • 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_updates to 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_update and crt_updates models, plus the entries as they appear in the structured configuration payload.
    • The underlying directive requires url to be the first parameter; delay and retry-delay are integer seconds with no unit suffix, defaulting to 86400 and 600; format is jwk by default or pem; and name is mandatory with format pem and forbidden with format jwk.

ACME Jump to heading

  • The structured configuration exposes the ACME (Let’s Encrypt) integration through the acme_provider field, which sets the DNS provider used for the dns-01 challenge, and the acme_vars field, 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_large property to the global tune_buffer_options object, for the tune.bufsize.large keyword. The field is size-typed, so values such as 64k are 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.bufsize makes 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-mode and --git-settings-file command-line arguments, the dataplaneapi.git_mode and dataplaneapi.git_settings_file configuration options and the /services/git, /services/git/settings and /services/git/actions endpoints no longer exist.

  • HAProxy ALOHA mode is removed. Deprecated in 3.3, the -a/--aloha-mode and --aloha-hash-file command-line arguments, the dataplaneapi.aloha_mode and dataplaneapi.aloha_hash_file configuration options and the /aloha and /aloha/actions endpoints no longer exist.

  • Validation failures that previously carried go-swagger internal 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/raw accepts only text/plain bodies; the previous (accidental) JSON-encoded-string body is no longer accepted, and error responses are now application/json instead of text/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 401 instead of 404.

  • SSL certificate DELETE can return 204. DELETE /services/haproxy/storage/ssl_certificates/{name} without skip_reload/force_reload now removes via the HAProxy Runtime API and returns 204 on success, falling back to 202 with a Reload-ID header. 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); A 0 value disables it.

  • Replacing acme, log_profiles, crt_stores, mailers_section and http_errors_sections now triggers a reload. These PUT endpoints previously wrote the change without scheduling a reload; they now follow the standard pattern (202 with Reload-ID, or 200 with force_reload=true).

  • Removed deprecated process-manager (program) endpoints, following the removal of the program section from HAProxy.

  • Removed unused cluster endpoints.

  • Removed deprecated --log-* / --syslog-* CLI options and the persisted log storage section, superseded by the log_targets configuration. When no log targets are configured, the API defaults to a stdout target.

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

Do you have any suggestions on how we can improve the content of this page? Please leave feedback!