Skip to content

fix: set proper host header before proxying the request#177

Open
jasonjoo2010 wants to merge 1 commit intooperator-framework:mainfrom
jasonjoo2010:fix/hostname
Open

fix: set proper host header before proxying the request#177
jasonjoo2010 wants to merge 1 commit intooperator-framework:mainfrom
jasonjoo2010:fix/hostname

Conversation

@jasonjoo2010
Copy link

Description of the change:

This PR updates the HTTP Host header to match the domain name configured in kubeconfig. This change ensures that requests are correctly routed and authenticated when accessing the Kubernetes API server, especially in environments where the API server is behind a proxy or load balancer that relies on the Host header for routing.

Motivation for the change:

The API server may be accessed through various proxies or load balancers through a domain name in kubeconfig. If the Host header does not match the expected domain name, requests may be rejected or misrouted. By aligning the Host header with the domain name in kubeconfig, we ensure that requests are properly authenticated and routed, improving reliability and compatibility with different Kubernetes setups.

Signed-off-by: Jason Joo <hblzxsj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant