MINOR: http_act: mark normalize-uri as experimental

normalize-uri http rule is marked as experimental, so it cannot be
activated without the global 'expose-experimental-directives'. The
associated vtc is updated to be able to use it.
This commit is contained in:
Amaury Denoyelle 2021-05-06 15:50:12 +02:00
parent 5dfdf3e5b0
commit a9e639afe2
3 changed files with 8 additions and 4 deletions

View File

@ -6174,9 +6174,10 @@ http-request normalize-uri query-sort-by-name [ { if | unless } <condition> ]
Performs normalization of the request's URI.
URI normalization in HAProxy 2.4 is currently available as an experimental
technical preview. You should be prepared that the behavior of normalizers
might change to fix possible issues, possibly breaking proper request
processing in your infrastructure.
technical preview. As such, it requires the global directive
'expose-experimental-directives' first to be able to invoke it. You should be
prepared that the behavior of normalizers might change to fix possible
issues, possibly breaking proper request processing in your infrastructure.
Each normalizer handles a single type of normalization to allow for a
fine-grained selection of the level of normalization that is appropriate for

View File

@ -11,6 +11,9 @@ server s1 {
} -repeat 63 -start
haproxy h1 -conf {
global
expose-experimental-directives
defaults
mode http
timeout connect 1s

View File

@ -2449,7 +2449,7 @@ static struct action_kw_list http_req_actions = {
{ "deny", parse_http_deny, 0 },
{ "disable-l7-retry", parse_http_req_disable_l7_retry, 0 },
{ "early-hint", parse_http_set_header, 0 },
{ "normalize-uri", parse_http_normalize_uri, 0 },
{ "normalize-uri", parse_http_normalize_uri, KWF_EXPERIMENTAL },
{ "redirect", parse_http_redirect, 0 },
{ "reject", parse_http_action_reject, 0 },
{ "replace-header", parse_http_replace_header, 0 },