envoyproxy / gateway

Manages Envoy Proxy as a Standalone or Kubernetes-based Application Gateway
https://gateway.envoyproxy.io
Apache License 2.0
1.57k stars 341 forks source link

Support additional host rewrite options #3173

Open guydc opened 6 months ago

guydc commented 6 months ago

Description:

Envoy supports multiple host header rewriting options:

Unlike other headers, it's safer to rewrite the host header in the forwarding phase, to avoid possible issues related to failed route recalculation after the header is rewritten. Envoy's host rewrite feature are implemented in this way.

Gateway-API and Envoy gateway support literal host rewriting.

Scenarios:

Envoy Gateway can support additional host rewriting options by adding new options to a policy or implementing EG-specific HTTP Route Filters.

Application developers are the likely users of this feature, as they know the desired host header value and structure in the backend.

Prior art: these features are supported by some gateways in the K8s space:

Relevant Links

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days.