OpenShift Router overwrites X-Forwarded-For header from load balancer or proxy

Solution Verified - Updated -

Issue

The default template and image of OpenShift Router uses "set header" for HTTP and not "add header" causing the earlier X-Forwarded-For Header set by an upstream server to be lost, hence losing the real client user IP.

Environment

  • Red Hat OpenShift Container Platform
    • 3.0 - 3.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.