Supports setting the :scheme
header of upstream requests based on upstream crypto
#30134
Labels
enhancement
Feature requests. Not bugs or questions.
stale
stalebot believes this issue/PR has not been touched recently
Title: Supports setting the scheme header of upstream requests based on upstream encryption
Description:
My scenario is that Envoy receives gRPCs(encrypted) requests and proxies gRPC (not encrypted) request to a .NET service. The .NET gRPC framework checks the :scheme header, if the request is not encrypted, but the :scheme is https, the request will fail.
I solved the problem by setting the HCM option scheme_header_transformation to http, but this option has a side effect of setting the XFP header to http, which makes it impossible to determine the Envoy downstream protocol through the XFP header.
As @alyssawilk commented here, we may need to extend the cluster configuration options to set the scheme based on upstream crypto instead of defaulting to XFP.
The text was updated successfully, but these errors were encountered: