]> git.kaiwu.me - haproxy.git/commit
MINOR: http/hardening: add "delete-all-trailer-fields"
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Nov 2026 15:32:38 +0000 (16:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 21:45:32 +0000 (22:45 +0100)
commitcb652df4bda3eb7cd099867a00540a0e6c3be3f3
tree1b625941181fe933b418fda0d127ae52ff8db1b3
parentb5fd464f0a3eeea11c539a12d9a53ff3914a33ec
MINOR: http/hardening: add "delete-all-trailer-fields"

Deletes from requests and responses any trailer field, regardless of
its content or syntax. This is done after syntactic checks though. The
vast majority of public facing applications do not use trailers because
they are not reliable (intermediaries are allowed to drop or fold them)
and their presence on public networks is generally associated with
attack attempts. It is generally safe to drop them by default on public
facing listeners, and even on servers meant to deliver public contents,
in order to avoid any information leakage. Note that gRPC services use
them.
doc/configuration.txt
include/haproxy/http-t.h
src/http.c
src/http_htx.c