From 9034223258d4ceebb70a7ddd80c4c19fda0482a5 Mon Sep 17 00:00:00 2001 From: bmcelvee Date: Wed, 31 Mar 2021 16:21:31 -0400 Subject: [PATCH] GitHub issue#31057 add haproxy.router.openshift.io/set-forwarded-headers to annotation table --- modules/nw-route-specific-annotations.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/nw-route-specific-annotations.adoc b/modules/nw-route-specific-annotations.adoc index 3f14866e0a..40887bf84f 100644 --- a/modules/nw-route-specific-annotations.adoc +++ b/modules/nw-route-specific-annotations.adoc @@ -41,6 +41,17 @@ and "-". The default is the hashed internal key name for the route. | `None`: cookies are restricted to the visited site. This value is applicable to re-encrypt and edge routes only. For more information, see the link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite[SameSite cookies documentation].| + +|`haproxy.router.openshift.io/set-forwarded-headers` | Sets the policy for handling the `Forwarded` and `X-Forwarded-For` HTTP headers per route. The values are: + +`append`: appends the header, preserving any existing header. This is the default value. + +`replace`: sets the header, removing any existing header. + +`never`: never sets the header, but preserves any existing header. + +`if-none`: sets the header if it is not already set.| `ROUTER_SET_FORWARDED_HEADERS` + |=== [NOTE]