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.
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 19f1808..f33c975 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -6174,9 +6174,10 @@
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
diff --git a/reg-tests/http-rules/normalize_uri.vtc b/reg-tests/http-rules/normalize_uri.vtc
index cc88060..47032d9 100644
--- a/reg-tests/http-rules/normalize_uri.vtc
+++ b/reg-tests/http-rules/normalize_uri.vtc
@@ -11,6 +11,9 @@
} -repeat 63 -start
haproxy h1 -conf {
+ global
+ expose-experimental-directives
+
defaults
mode http
timeout connect 1s
diff --git a/src/http_act.c b/src/http_act.c
index 2fe235e..b8413f3 100644
--- a/src/http_act.c
+++ b/src/http_act.c
@@ -2449,7 +2449,7 @@
{ "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 },