tcp tunneling: optionally move response header to downstream info (#23118)

Add support to save response headers from CONNECT tunnels in tcp_proxy.

The use case is saving "baggage" header which provides additional metadata about the upstream endpoint for telemetry purposes.

Fixes #23116

Signed-off-by: Kuat Yessenov <kuat@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ caa81fa49acff4d793c96d8f61f7cc99f32b59ac
pull/626/head
data-plane-api(Azure Pipelines) 2 years ago
parent f69a31ba94
commit 79d17fab98
  1. 4
      envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto

@ -99,6 +99,10 @@ message TcpProxy {
// Neither ``:-prefixed`` pseudo-headers nor the Host: header can be overridden.
repeated config.core.v3.HeaderValueOption headers_to_add = 3
[(validate.rules).repeated = {max_items: 1000}];
// Save the response headers to the downstream info filter state for consumption
// by the network filters. The filter state key is ``envoy.tcp_proxy.propagate_response_headers``.
bool propagate_response_headers = 4;
}
message OnDemand {

Loading…
Cancel
Save