envoy icon indicating copy to clipboard operation
envoy copied to clipboard

question: is the original authority available with a host rewrite?

Open marcosrmendezthd opened this issue 5 years ago • 8 comments

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?

marcosrmendezthd avatar Oct 30 '20 16:10 marcosrmendezthd

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.

github-actions[bot] avatar Dec 09 '20 02:12 github-actions[bot]

thanks @mattklein123 !

marcosrmendezthd avatar Dec 09 '20 14:12 marcosrmendezthd

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.

github-actions[bot] avatar Jan 08 '21 16:01 github-actions[bot]

any updates on this?

marcosrmendezthd avatar Jan 08 '21 17:01 marcosrmendezthd

I thought someone might have added this but I don't see it. Seems like a reasonable request to me. cc @alyssawilk

mattklein123 avatar Jan 08 '21 23:01 mattklein123

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.

alyssawilk avatar Jan 14 '21 19:01 alyssawilk

I have the same issue, it would be very much appreciated to see that feature.

1it avatar Feb 18 '22 15:02 1it

any updates on this @alyssawilk ?

marcosrmendezthd avatar Aug 10 '22 17:08 marcosrmendezthd

no updates from me as I'm not working on it. I believe no one has picked it up still.

alyssawilk avatar Aug 17 '22 07:08 alyssawilk