Support additional host rewrite options #3173
Labels
area/api
API-related issues
area/envoy
area/translator
Issues related to Gateway's translation service, e.g. translating Gateway APIs into the IR.
stale
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:
nginx.ingress.kubernetes.io/upstream-vhost: $http_x_custom_header
hostRewrite
,autoHostRewrite
,hostRewritePathRegex
,hostRewriteHeader
Relevant Links
The text was updated successfully, but these errors were encountered: