question: is the original authority available with a host rewrite?
I'm trying to add the original destination (authority) of a request via an access log, or even an additional request header before it gets rewritten for the upstream cluster request. Is this information available somewhere?
An access log with... still logs the rewritten host.
action.Route.HostRewriteSpecifier = &envoyroute.RouteAction_HostRewrite{
HostRewrite: "my-new-upstream-host,
}
"req_host": "%REQ(:AUTHORITY)%"
We can use %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% for the original path. Is there something like that for the original authority?
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.
thanks @mattklein123 !
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.
any updates on this?
I thought someone might have added this but I don't see it. Seems like a reasonable request to me. cc @alyssawilk
Yeah, I agree this is reasonable, but I've got a few other things in my queue so I'll leave it as help wanted for now.
I have the same issue, it would be very much appreciated to see that feature.
any updates on this @alyssawilk ?
no updates from me as I'm not working on it. I believe no one has picked it up still.