From cefb3cfe665cf8c00c04987dcde156eb01fb42ac Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Mon, 28 Nov 2022 23:20:08 +0000 Subject: [PATCH] tcp proxy: enable to specify a path for HTTP tunneling with POST method (#24045) Risk Level: low Testing: unittest Docs Changes: API doc Release Notes: new feature Fixes #24038 Signed-off-by: He Jie Xu Mirrored from https://github.com/envoyproxy/envoy @ ea2cdc3a164430ee43ff216655aaaac7fada51ed --- .../extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto b/envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto index bc08198a..6e6f39ec 100644 --- a/envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto +++ b/envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.proto @@ -64,6 +64,7 @@ message TcpProxy { // Configuration for tunneling TCP over other transports or application layers. // Tunneling is supported over both HTTP/1.1 and HTTP/2. Upstream protocol is // determined by the cluster configuration. + // [#next-free-field: 6] message TunnelingConfig { option (udpa.annotations.versioning).previous_message_type = "envoy.config.filter.network.tcp_proxy.v2.TcpProxy.TunnelingConfig"; @@ -103,6 +104,11 @@ message TcpProxy { // 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; + + // The path used with POST method. Default path is ``/``. If post path is specified and + // :ref:`use_post field ` + // isn't true, it will be rejected. + string post_path = 5; } message OnDemand {