]> git.kaiwu.me - haproxy.git/commit
MINOR: http-fetch: mark URI-based sample fetches with SMP_USE__MAY_ALIAS
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Nov 2026 12:02:20 +0000 (14:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 17:12:23 +0000 (18:12 +0100)
commitb34ac336313e9e1db3bee4e8293b1f3fc9e44cea
treebfbd6fd2df1e06cb2e78527d162102e83fd8df22
parentb5cfeb14524ee38b171ac41fdd3244d9907e9f95
MINOR: http-fetch: mark URI-based sample fetches with SMP_USE__MAY_ALIAS

The path, the query string and the parameters they convey may be written
in many equivalent forms (case, %-encoding, "+" vs "%20", "/./", "../",
"//", backslashes etc), depending on what lies behind haproxy. Let's mark
the fetches returning or depending on these contents with
SMP_USE__MAY_ALIAS: base, base32, base32+src, baseq, capture.req.uri,
path, pathq, query, req.body_param, url, url32, url32+src, url_param,
urlp and urlp_val.

The host part is left aside for now (url_ip, url_port, Host header), as
it's much less commonly used to deny access, and that it's generally
used the same way to route the traffic.
src/http_fetch.c