Closed imlk0 closed 3 weeks ago
cc @kyessenov @adisuissa
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.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Title: How to return real error message for a "two hop" proxy?
Description: I have an envoy instance which is an "HTTP2 CONNECT over TLS". But for some reason I implemented it as a two hop (with the help of
internal_listener
).But I found that when the second hop fails (e.g. TLS handshake fails), my client only gets
"upstream connect error or disconnect/reset before headers. reset reason: connection termination"
which is a somewhat ambiguous reason.Here is a streamlined configuration (envoy.yaml) to reproduce the problem:
Launch envoy with
And then, send a request with
curl
The HTTP response is
And the real reason for the error can only be found in the envoy log.
Showing that a TLS error occurred on the second hop.
I'd like to know if there is any way (either by tweaking the envoy config file, or by writing some code for envoy) to return the real error message in the HTTP response?