Repository metrics
- Stars
- (27,997 stars)
- PR merge metrics
- (Avg merge 8d) (378 merged PRs in 30d)
Description
If you are reporting any crash or any potential security issue, do not open an issue in this repo. Please report the issue via emailing envoy-security@googlegroups.com where the issue will be triaged appropriately.
Description:
Describe the issue. We would like to use Envoy to do a dynamic host rewrite and route the request to different endpoint, What we want is:
- fetch part of request endpoint as env variable
$var1 - fetch value of header "x-google-service-name" as
$var2 - using customized logic to construct the endpoint:
$var1.$var2.internal.google.comand route the request - return the response form upstream cluster back to customer
Example:
We have a request
customerId123.google.comfrom customer along with a headerx-google-service-name="sampleService"and want to construct a new endpointcustomerId123.sampleService.internal.google.comand route the request using Envoy.
I've walked through Envoy docs and found dynamic forward proxy and Lua filter might be helpful, but still wanna know how will Envoy support fetch value from host/header and dynamically define as a variable?
Any suggestion is appreciated. Thanks.
[optional Relevant Links:]
Any extra documentation required to understand the issue.https://github.com/envoyproxy/envoy/issues/8768