-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to set Header value from another header #2516
Comments
Envoy header tokens should work here, but AFAIK there's no fallback if the wanted header isn't present. |
the in contour though this would be done on a per route level so i can be sure the header is expected and only add the rule on those routes that expect it. i will try what you suggested in the slack |
Unfortunately i don't seem to be able to apply the When using YAML Unquoted string - syntax error
Quoted string , both using single and double quotes convert to
and a litelar string when i hit the service
Even using json for the HTTPProxy , which should make it easier to handle quoting of string, i get the same result of
|
Remove the '%' quoting on Envoy header names so that operators can configure Envoy header variables. This fixes projectcontour#2516. Signed-off-by: James Peach <jpeach@vmware.com>
The Contour project currently lacks enough contributors to adequately respond to all Issues. This bot triages Issues according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
The Contour project currently lacks enough contributors to adequately respond to all Issues. This bot triages Issues according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
Please describe the problem you have
I have some Third Party LoadBalancers, on which i don't have any Control, setting the
Real IP
header to a custom header likex-real-client-ip
rather than the usualx-forwarded-for
In my current
haproxy ingress
, which i am trying to replace with contour , i simply have a frontend snippet likeheader X-Real-Client-IP
exist then setx-forwarded-for
to the value ofx-real-client-ip
x-forwarded-for
to thesrc ip
Ideally i would expect something like
To copy the value if present and
ignore
if not present ( and hopefully still get the standardx-forwarded-for
behavior from contourThe text was updated successfully, but these errors were encountered: