Skip to content
Back to skills

Haproxy Knowledge Patch

ASecurity

HAProxy

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentgonodeexpresskubernetesgitapifrontendbackendsecurityperformance

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/badge)](https://www.skillsdirectory.com/skills/nevaberry-haproxy-knowledge-patch)

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 Compatibility Guidance

Load this skill when changing HAProxy configuration, upgrading a deployment,
managing runtime objects, or working with its Lua and product integrations.
Use the topic references for complete syntax, examples, product scope, and
version-specific behavior.

## Reference index

| Reference | Topics |
| --- | --- |
| [HTTP policy and data handling](references/http-policy-and-data-handling.md) | Rules, retries, timeouts, headers, compression, cache, samples, JWT/JWE, Enterprise security |
| [Logging and observability](references/logging-and-observability.md) | Log profiles, forwarding, tracing, OpenTelemetry, metrics, glitches, profiling |
| [Routing, backends, and health](references/routing-backends-and-health.md) | Runtime backends, balancing, connection reuse, checks, stick tables, Enterprise routing, Kubernetes gateways |
| [Runtime API and Lua](references/runtime-api-and-lua.md) | CLI sessions, maps, certificate transactions, Lua services and filters, Enterprise Data Plane API migration |
| [TLS, QUIC, and networking](references/tls-quic-and-networking.md) | Certificates, SNI, ACME, TLS libraries, QUIC/QMux, HTTP/2, TCP, DNS |
| [Upgrades and operations](references/upgrades-and-operations.md) | Deprecations, process startup, CPU placement, builds, maintenance, Fusion |

## Breaking changes and deprecations

- Remove `filter-sequence` before upgrading to 3.4.5, which removes it.
- In 3.4.7, `jwt_verify` rejects the `none` algorithm by default; rules using
  it to verify unsigned JWTs will reject them.
- In 3.4.8, cache rules are rejected in `defaults`; move them to the concrete
  proxies that use the cache.
- Declare length-based captures in frontends. Backend evaluation ignores
  `capture` actions specifying `len` in `http-request` and `tcp-request` rules.
- Use `-W` or `-Ws` for master-worker mode. The planned 3.5 removal concerns
  standalone `master-worker`; `master-worker no-exit-on-failure` can remain,
  requires one of those startup flags, and keeps other workers running when
  a worker segfaults.
- Move commands from `program` into a service manager. Load
  `examples/lua/mailers.lua` to retain existing `mailers` configuration after
  removal of the native implementation.
- Migrate OpenTracing configurations before its scheduled removal in 3.5.
  OpenTelemetry is available as an experimental add-on.
- Replace `dispatch` with a `server` line at the same address before its
  planned removal in 3.5; set existing servers in that backend to `weight 0`
  to preserve dispatch as the default destination.
- Replace legacy backend `transparent` or `option transparent` with a server
  at `0.0.0.0` for the original TPROXY destination before planned removal in 3.5.
- Replace `no-quic` with global `tune.quic.listen off`. Use the replacement
  named in the 3.3 startup warning for old QUIC tuning keywords before their
  planned removal in 3.5.
- Use `filter comp-req` and `filter comp-res` for directional compression;
  legacy `compression direction` is deprecated.
- Give servers unique names within each backend even when numeric IDs differ.
  Use `${NAME[*]}` for optional environment expansion; empty arguments warn,
  and unresolved variables raise errors.

Enterprise Data Plane API certificate-load paths require their parent
`crt-store`. The deprecated `/services/git` and `/services/aloha` endpoint
groups remain functional in API 3.3.0 and are removed in API 3.4.0.
Exact paths are in the Runtime API reference.

## Defaults that change routing and startup

- Backends without `balance` use `random`, drawing two servers and choosing
  the less loaded. Use `balance roundrobin` to retain round-robin scheduling.
- HTTP backends enable `option abortonclose` by default; processing can stop
  before forwarding when the client disconnects.
- Upstream TLS SNI derives from HTTP `Host` by default. Control it with
  `sni-auto` or `no-sni-auto`; health checks use `check-sni-auto` or
  `no-check-sni-auto` separately.
- `cpu-policy` defaults to `performance`, and automatic placement can use
  all available NUMA nodes and more than 64 threads.
- `dns-accept-family` defaults to `auto`; IPv6 depends on connectivity checks
  at startup and every 30 seconds. `-4` forces IPv4 DNS resolution process-wide.
- Startup warns when running as root without global `user`. Omit `daemon`
  when systemd starts HAProxy with `-Ws` and supervises it in the foreground.

## Runtime backend creation and traffic selection

Create a backend from named defaults and publish it when its servers are ready.
With `defaults web_defaults` and routing through
`use_backend %[path,map_beg(virt@paths.map)]`, add the route after publishing:

```text
add backend test_backend from web_defaults mode http
add server test_backend/app 127.0.0.1:3000 check
enable server test_backend/app
enable health test_backend/app
publish backend test_backend
add map virt@paths.map /test test_backend
```

During teardown, wait for the server and backend to become removable; the
routing reference contains the complete command sequence. A configured backend
can start with `unpublished` and be published through the Runtime API later.
`default_backend` and `use_backend` skip disabled or unpublished targets by
default; `force-be-switch` allows those targets. `tune.defaults.purge` frees
the named defaults retained for runtime backend creation.

## Health checks and connection reuse

Define a named `healthcheck` and select it per server with
`check healthcheck <name>` to share checks across backends:

```haproxy
healthcheck app_check
    type httpchk
    http-check connect
    http-check send meth HEAD uri /health ver HTTP/1.1 hdr Host example.com

backend app
    mode http
    server app1 127.0.0.1:8080 check healthcheck app_check
```

Use `init-state` to keep a server down at startup or after maintenance until
its first successful health check. `check-reuse-pool` allows checks to reuse
idle server connections. `strict-maxconn` makes `maxconn` count TCP connections.
Global `tune.idle-pool.shared` accepts `on` for sharing within a thread group,
`full` across all threads, and `off` to disable sharing. Backend QUIC reuse
stays within its owning thread regardless of this setting.

## Certificates, ACME and transport controls

Use one `ssl-f-use` line per certificate for inline TLS policy; TCP and QUIC
listeners can share the definitions. `add ssl crt-list` can add certificates
even without an explicit configured `crt-list` and accepts `crt-store` aliases.

For experimental HTTP-01 ACME, enable experimental directives, connect an
`acme` section to a `crt-store` entry, and serve the token and map value over
HTTP before any HTTPS redirect. The TLS reference includes the full example,
first-issuance requirements, persistence commands, and DNS challenge options.
The scheduler renews managed certificates seven days before expiration;
global `acme.scheduler off` disables it. DNS-01 uses Data Plane API 3.3 to
publish TXT records; synchronize certificates separately across a cluster.

In 3.4.9, DNS readiness checks inspect all returned TXT records; acknowledgements
match the exact domain and distinguish wildcard from ordinary challenges.
Register certificates used for JWT decryption with `jwt on`.

Experimental upstream HTTP/3 uses a `quic4@` server address with TLS options.
Experimental QMux over TCP advertises `h3` in ALPN; `alpn h3,h2` offers HTTP/2
fallback. Both require `expose-experimental-directives` in `global`.
For CVE-2026-26080 and CVE-2026-26081, the TLS reference lists fixed patches;
global `tune.quic.listen off` mitigates both if the upgrade must wait.

## HTTP policy and data handling

Use `set-retries` in TCP or HTTP request rules for per-request retry counts.
`http-request set-timeout` accepts `connect`, `queue`, and `tarpit`;
timeouts and retry overrides set before backend selection survive that selection.
`http-request pause 250ms` and `http-response pause 250ms` delay rule processing
and also accept expressions returning milliseconds.

`add-headers-bin`, `set-headers-bin`, and `del-headers-bin` apply batches of
header changes in SPOP's variable-length integer encoding. A header-name prefix
on the action constrains which fields an agent can modify.

Size small and large buffers with `tune.bufsize.small` and `tune.bufsize.large`.
Use `option use-small-buffers` for queues, Layer 7 retries, and health checks;
size the large buffer for `wait-for-body`. Header updates enforce regular
buffer size even when the message uses a large buffer.

SSE responses automatically enable `http-no-delay`; in 3.4.8 this includes
`text/event-stream` with media-type parameters. In 3.4.9, compression directions
derive from configured algorithms, with independent implicit request and
response filters. The HTTP reference details cache freshness, body validation,
sample-converter behavior, JWT/JWE validation, and Enterprise security modules.

## CPU placement and connection concurrency

Use `cpu-set` before `cpu-policy` to include or exclude CPUs. Inspect bindings
with `haproxy -f /etc/haproxy/haproxy.cfg -dc -c` or Runtime API `show dev`.
`cpu-policy performance threads-per-core 1` selects one thread per physical
core and makes `per-core` affinity the default unless explicitly overridden.
`max-threads-per-group` caps automatic thread-group size; its default is 16.

`tune.streams-elasticity` reduces frontend HTTP/2 and HTTP/3 stream concurrency
as connection load approaches `maxconn`. `tune.h2.fe.max-total-streams` and
`tune.quic.fe.stream.max-total` cap lifetime streams or requests. In 3.4.9,
`tune.h2.fe.enabled off` disables frontend HTTP/2, and `h2_enabled` reports
whether frontends may use it.

## Logs, metrics and diagnostics

Assign log profiles to destinations for transaction stages, or use
`do-log profile <name>` for individual rules. `when(condition)` produces no
sample when false; apply it to `bs.debug_str` or `fs.debug_str` for conditional
diagnostics. `last_entity` and `waiting_entity` identify evaluated or interrupted
operations. Log `term_events` and decode them with the bundled utility.

`show events -0` uses NUL delimiters; `show events -s` sanitizes ring output.
`+json` escapes non-printable bytes, `+cbor` preserves the original bytes,
and `+utf8` preserves valid UTF-8 sequences. `show ssl sni` fields are tab-delimited.

Experimental shared statistics use `shm-stats-file` and stable unique `guid`
values to survive reloads; a restart loses them. The experimental OpenTelemetry
add-on uses `filter opentelemetry` with event subscriptions and export settings.
Use `show profiling memory` for execution-context allocation detail.

## Lua and deployment integrations

Place `tune.lua.bool-sample-conversion normal` before `lua-load` to receive
Lua booleans; a later setting warns and is ignored. Create a fresh Lua HTTP
client for each request. Use `core.get_patref` for loaded ACL and map updates,
and `tune.lua.openlibs` to choose available standard libraries.

Before upgrading the Ingress Controller from 3.0 or earlier with `ingress.class`
set, annotate existing TCP resources to match; unannotated resources lose their
generated frontends and backends unless `empty-ingress-class` is enabled.
For Unified Gateway, install upstream Gateway API CRDs before the Helm chart.
The routing reference includes installation, CRD tracking, and image pinning.

Stay on the latest released patch for a supported branch and retest there before
reporting a bug. The operations reference explains support windows, queued
backports, severity-based upgrade timing, and Fusion control-plane management.

Files in this skill

  • SKILL.md8.9 KB
  • coverage.json943 B
  • references/http-policy-and-data-handling.md5.5 KB
  • references/logging-and-observability.md4.2 KB
  • references/routing-backends-and-health.md4.5 KB
  • references/runtime-api-and-lua.md2.8 KB
  • references/tls-quic-and-networking.md6.4 KB
  • references/upgrades-and-operations.md7.2 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.