Skip to content
Back to skills

Haproxy Knowledge Patch

ASecurity

HAProxy

  • 25 stars
  • 0 votes
  • 1 copy
  • 8 views
  • Added September 5, 2026
developmentgonodekubernetesdebugginggitapifrontendbackendsecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill haproxy-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Haproxy Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Haproxy Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-haproxy-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-haproxy-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: haproxy-knowledge-patch
description: HAProxy
version: "3.4.9"
license: MIT
metadata:
  author: Nevaberry
---


# HAProxy knowledge patch

Load this skill when configuring, upgrading, operating, or debugging HAProxy,
or working with its Enterprise, ALOHA, Fusion, Kubernetes Ingress Controller,
and Unified Gateway integrations. Use the topic references for complete
configuration examples, product-specific behavior, and version attributions.

## Reference index

| Reference | Topics |
| --- | --- |
| [Upgrades and maintenance](references/upgrades-and-maintenance.md) | Deprecations, configuration validation, builds, maintenance, controller installation, Enterprise API migration |
| [Routing and health](references/routing-and-health.md) | Balancing, retries, timeouts, health checks, runtime backends, stick tables, Enterprise routing, Gateway and Fusion discovery |
| [TLS and certificates](references/tls-and-certificates.md) | SNI, certificate stores, ACME, TLS libraries, kTLS, JWT and JWE |
| [QUIC, HTTP, and networking](references/quic-http-and-networking.md) | QUIC, upstream HTTP/3, QMux, HTTP framing, stream limits, samples, DNS, TCP |
| [Filters, Lua, and performance](references/filters-lua-and-performance.md) | Filter migration, compression, caching, Lua, CPUs, buffers, Enterprise and Fusion security |
| [Observability and runtime](references/observability-and-runtime.md) | Logging, tracing, OpenTelemetry, Runtime API, statistics, Prometheus, profiling |

## Breaking changes and deprecations

HAProxy 3.4.5 removes `filter-sequence`; remove it before upgrading.
Use `filter comp-req` for request compression and `filter comp-res` for response
compression. The legacy `compression direction` setting is deprecated.
In 3.4.9, configured algorithms determine active compression directions, and
implicit compression filters are installed independently for each direction.

HAProxy 3.4.7 rejects the `none` algorithm by default in `jwt_verify`.
Rules that use this converter to verify unsigned JWTs will reject them.
In 3.4.9, register certificates used for JWT decryption with `jwt on`;
verification and decryption both look up certificates in the JWT registry.

Move commands from `program` into a service manager. For the Data Plane API,
the service manager can start it before HAProxy. Load `examples/lua/mailers.lua`
to keep existing `mailers` configuration after the native implementation is removed.
Migrate OpenTracing configurations before its scheduled removal in 3.5.
OpenTelemetry is an experimental add-on that replaces the deprecated filter.

Use `-W` or `-Ws` to enable master-worker mode. The planned 3.5 removal applies
to standalone `master-worker`; configurations can retain
`master-worker no-exit-on-failure`, which requires `-W` or `-Ws` on startup.
It keeps remaining workers running when a worker segfaults.
Omit `daemon` when systemd starts HAProxy with `-Ws` and supervises it in the foreground.

Replace `dispatch` with a `server` line at the same address before its planned
3.5 removal; set `weight 0` on existing servers in that backend to preserve the
dispatch destination as the default. For legacy `transparent` or
`option transparent`, use a server at `0.0.0.0` to route to the original TPROXY
destination before the directives' scheduled removal in 3.5.

Give every server a unique name within its backend even when numeric `id`
values differ. Duplicate names across proxy families and duplicate server names
trigger deprecation warnings in 3.1 and are scheduled to become errors in 3.3.
For optional environment expansion, use `${NAME[*]}`. Unresolved `${NAME}`
variables raise an error in 3.3, including at the end of a line.

Replace `no-quic` with global `tune.quic.listen off`.
The `tune.quic.frontend` prefix is deprecated in favor of `tune.quic.fe`.
Use the replacement named in the 3.3 startup warning before a legacy QUIC
keyword's planned removal in 3.5.

In 3.4.8, move cache rules out of `defaults` into the concrete proxies using them.
Backend evaluation ignores length-based `capture` actions in `http-request`
and `tcp-request` rules; declare those captures in the frontend.

## Changed defaults and upgrade decisions

From 3.3, a backend without `balance` uses `random`, drawing two servers and
choosing the less loaded one. Set `balance roundrobin` to retain round-robin.
With `hash-key id`, keep server IDs below `268435456`: consistent hashing and
`balance random` use only the lowest 28 bits.

`option abortonclose` is on by default in HTTP backends from 3.3 and can stop
processing before forwarding when the client disconnects. Setting it in a frontend
can skip the TLS handshake for connections that have already closed.

From 3.3, upstream TLS SNI derives from HTTP `Host` by default. Control it with
`sni-auto` or `no-sni-auto`; health checks have separate `check-sni-auto` and
`no-check-sni-auto` controls. `dns-accept-family` defaults to `auto` in 3.3.
Under `auto`, IPv6 resolution depends on a connectivity check at startup and
every 30 seconds. `-4` forces process-wide IPv4 DNS resolution.

Stay on the latest released patch for a supported branch and retest there before
reporting a bug. A branch bug page's “known bugs” total counts fixes queued since
the latest release; confirm the patch containing a fix in the release changelog.
`MAJOR` issues warrant an upgrade as soon as possible; `CRITICAL` issues require
an immediate upgrade for reliability or security.

## Routing, health checks, and runtime backends

Use `set-retries` in `tcp-request` or `http-request` rules for runtime retry counts.
Use `retry-on 421` in a backend for upstream 421 Misdirected Request responses.
`http-request set-timeout` accepts `connect`, `queue`, and `tarpit`.
In 3.4.3, stream timeouts and retry counts set before backend selection carry
into the selected backend.

`strict-maxconn` makes a server's `maxconn` apply to TCP connections.
Use `init-state` to keep a server down at startup or after maintenance until
its first successful health check. `check-reuse-pool` lets checks reuse idle
server connections, including persistent reverse-HTTP connections.

Define a reusable check in a named `healthcheck` section and select it with
`check healthcheck <name>` on each server. Checks can be shared across backends
and support the usual check types and `http-check` or `tcp-check` actions.

Create runtime backends from named defaults, publish when servers are ready,
then add the route. During teardown, wait for servers and backends to become
removable. A configured backend can start with `unpublished`.
`default_backend` and `use_backend` skip disabled or unpublished targets by
default; `force-be-switch` allows those targets. `tune.defaults.purge` frees
named defaults retained for runtime backend creation.

In 3.4.9, `set table` without a key leaves the table intact; specify the key
when updating an entry. Newline-delimited `add map` and `add acl` payloads
are split into separate keys.

## Certificates, ACME, and token handling

Use one `ssl-f-use` line per certificate for inline TLS limits, ALPN, ciphers,
and signature algorithms. TCP and QUIC listeners can share these definitions.
`add ssl crt-list` works with internal lists created by `ssl-f-use` and accepts
in-memory `crt-store` aliases. When supplying a path instead of an alias,
verify it: the command no longer checks that the path matches the in-memory name.

The experimental HTTP-01 ACME setup is for a single instance: enable experimental
directives, connect an `acme` section to a `crt-store` entry, and serve the token
and map value over HTTP before HTTPS redirects. Certificates stay in memory by
default; `dump ssl cert` exports them. The scheduler renews managed certificates
seven days before expiration; global `acme.scheduler off` disables it.

For first issuance in 3.2, seed the configured certificate path with a self-signed
certificate and private key in a PEM file. In 3.3, a missing ACME-managed certificate
is generated at startup. DNS-01 uses Data Plane API 3.3 to publish TXT records;
the API can save issued certificates for single-instance deployments.
Synchronize certificates separately across instances in a cluster.

Use `challenge-ready dns`, `cli`, `delay`, or `none` for DNS-01 readiness.
In 3.4.9, readiness matching checks all returned TXT records, matches the exact
domain, and distinguishes wildcard from ordinary challenges in Runtime API and Lua.

Use `jwt_decrypt_cert`, `jwt_decrypt_secret`, or `jwt_decrypt_jwk` for JWT decryption.
The secret form takes base64. In 3.4.9, JWE `alg` and `enc` names must match exactly;
only `ALL` is the wildcard in `jwt.decrypt_alg_list` and `jwt.decrypt_enc_list`.
The `dir` and `ECDH-ES` algorithms require an empty encrypted-key field.

## Protocol and performance controls

`quic-initial` supports `accept`, `reject`, `dgram-drop`, and `send-retry`.
From 3.2, `quic-cc-algo bbr` no longer requires experimental directives.
Upstream HTTP/3 and QMux over TCP are experimental and require
`expose-experimental-directives`. QMux advertises `h3` over a TCP TLS listener
or server; `alpn h3,h2` offers HTTP/2 as a fallback.

Use `tune.streams-elasticity` to reduce HTTP/2 and HTTP/3 per-connection stream
concurrency as frontend connection load approaches `maxconn`.
In 3.4.9, global `tune.h2.fe.enabled off` disables frontend HTTP/2;
`h2_enabled` reports whether frontends may use it.

Automatic CPU placement defaults to `performance` from 3.3 and can use all
available NUMA nodes and more than 64 threads. Use `cpu-set` before `cpu-policy`
to include or exclude CPUs. `max-threads-per-group` caps automatic group size,
with a default cap of 16. The references detail affinity modes and core selection.

Size small and large buffers with `tune.bufsize.small` and `tune.bufsize.large`.
`option use-small-buffers` enables small buffers for queues, Layer 7 retries,
and health checks; size the large buffer for `wait-for-body`.

Use `core.get_patref` for loaded ACLs and maps, including bulk updates and
whole-set replacement. Place `tune.lua.bool-sample-conversion` before `lua-load`;
a later setting warns and is ignored. Create a fresh Lua HTTP client per request.
In 3.4.9, Lua filter input-state APIs describe data visible to the current filter.

## Logging and operational inspection

Use log profiles for transaction-stage formats and `do-log` during rule processing.
`do-log profile <name>` selects a profile for an individual rule.
Log `term_events` and decode its values with the bundled utility.
Use `when(condition)` with `bs.debug_str` or `fs.debug_str` for conditional diagnostics.
`last_entity` and `waiting_entity` identify the last evaluated rule or interrupted work.

`show ssl sni` reports effective listener matches in tab-delimited fields;
split on tabs because certificate dates contain spaces. `show sess` filters
active streams by frontend, backend, or server. `show quic stream` lists streams.
`show events -0` uses NUL delimiters; `show events -s` sanitizes ring output.

Compile the experimental OpenTelemetry add-on and configure `filter opentelemetry`.
Its two configuration files specify event subscriptions and export destinations;
gRPC, HTTP, and local files are supported. ACL conditions select events, which
can carry key-value attributes and custom log messages.

## Controllers and Enterprise integrations

Before a Kubernetes Ingress Controller upgrade from 3.0 or earlier with
`ingress.class` set, annotate existing TCP resources with the matching class.
Otherwise the controller removes their generated frontends and backends unless
`empty-ingress-class` is enabled. Certificate updates use Runtime API without reloads.

Unified Gateway uses `HTTPRoute` for HTTP/HTTPS termination and `TLSRoute` for
SNI-routed TLS passthrough. Install upstream Gateway API CRDs before its Helm chart.
An explicit `image.tag` pins the controller across chart upgrades; update the tag
or remove it to follow the chart's `appVersion`.

Enterprise Data Plane API 3.3 certificate-load paths require the parent `crt-store`.
Migrate `/services/git` and `/services/aloha` workflows before API 3.4.0 removes
those endpoint groups. The references retain complete routes and product-specific
WAF, CAPTCHA, SSO, route-health, Fusion policy, and deployment guidance.

Files in this skill

  • SKILL.md9.4 KB
  • coverage.json942 B
  • references/filters-lua-and-performance.md3.7 KB
  • references/observability-and-runtime.md6 KB
  • references/quic-http-and-networking.md5.2 KB
  • references/routing-and-health.md3.1 KB
  • references/tls-and-certificates.md4.6 KB
  • references/upgrades-and-maintenance.md6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.