Skip to content

🐛 [BUG] - CORS Proxy does not rewrite host header #1654

@IvoGoman

Description

@IvoGoman

Priority

(Medium) I'm annoyed but I'll live

Description

Gardener started enabling envoy for loadbalancing. This causes 404 responses, due to the host header of the proxied request not being rewritten by the CORS proxy.

The CORS proxy uses the http.NewSingleHostReverseProxy to proxy the CORS requests.

This proxy method needs to be overwritten in order to rewrite the Host header.

Reproduction steps

Deploy Greenhouse into a Gardener environment and use `$(KUBERNETES_SERVICE_HOST)` to point the CORS proxy to the Shoot's API server

Manifests

apiVersion: greenhouse.sap/v1alpha1
  kind: ...

Screenshots

![DESCRIPTION](LINK.png)

Metadata

Metadata

Labels

backlogIssues that are part of the backlogbugSomething isn't working

Type

Projects

Status

Sprint Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions