-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support of additional %UPSTREAM% variables to custom headers #13897
Comments
See my previously raised issue #12236 , the PR is proposed and the discussion. The major blocker is that retry would change the upstream info and there is no well defined api. So we need either evolve the route action or see how to adopt this requirement in Http upstream filter upstream http filter |
@vinzo99 Do you expect to need the ability to populate %UPSTREAM_LOCAL_ADDRESS% on the request headers sent to the upstream or only on the reply headers proxied back to the downstream? The later is doable, it just needs to be implemented. Are there other pieces of information about the upstream that you'ld like to communicate to the downstream via added reply headers? @lambdai Yeah, we would need some way to delay computation of said headers and recompute them on retry. We would also need to decide if retries should append to the modified headers or replace the relevant header lines. |
There are several workaround or plans
|
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions. |
Reviving thread |
One of our customers is using the Envoy tap filter to retrieve transport information and add them to their request/response headers, as documented here : https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers.html#custom-request-response-headers
At this point, very few %UPSTREAM% variable names are supported :
%UPSTREAM_METADATA([“namespace”, “key”, …])%
%UPSTREAM_REMOTE_ADDRESS%
They wish additional %UPSTREAM% variables were supported, such as %UPSTREAM_LOCAL_ADDRESS%.
Thanks !
The text was updated successfully, but these errors were encountered: