Open agrawroh opened 3 years ago
@ggreenway @lizan Is it possible to populate the SNI after we do all the mutations on the incoming headers?
Yeah seems like we could probably reorder this.
I'm having a similar issue with host_rewrite_literal
and dns resolution using a dynamic forward proxy, it fails dns resolution because it is using the original host header instead of the value specified in host_rewrite_literal
.
Title
Custom headers are not available to the SNI
override_auto_sni_header
when added usingrequest_headers_to_add
Description
We now allow a customer header to populate the SNI for the upstream requests [Link]. But, if the custom header is not coming from downstream and gets added anywhere using
request_headers_to_add
then it's value is not available here as this piece of code to populate the SNI gets invoked before we add/modify the request headers probably here.