transport socket: Add proxy proto transport socket. (#11584)
Commit Message: Add proxy proto transport socket Additional Description: This is the part 1 PR described in #10682. It adds the transports socket / unit tests, a transport socket options struct for the proxy proto header, and does a refactor to make the listener filter use the common proxy proto constants (potentially want to move these now since the proxy proto config api type is not in extensions?) Risk Level: Small Testing: Unit Docs Changes: None Release Notes: None Part Of: #1031 Signed-off-by: Weston Carlson <wez470@gmail.com> Co-authored-by: Lizan Zhou <lizan@tetrate.io> Mirrored from https://github.com/envoyproxy/envoy @ 8972b478e6c9f1e7342e3dbfb57b35317c0cc009master-ci-test
parent
4a4b5459c6
commit
91a7b929b2
4 changed files with 40 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
deps = [ |
||||
"//envoy/config/core/v3:pkg", |
||||
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||
], |
||||
) |
@ -0,0 +1,26 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.transport_sockets.proxy_protocol.v3; |
||||
|
||||
import "envoy/config/core/v3/base.proto"; |
||||
import "envoy/config/core/v3/proxy_protocol.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "udpa/annotations/versioning.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.proxy_protocol.v3"; |
||||
option java_outer_classname = "UpstreamProxyProtocolProto"; |
||||
option java_multiple_files = true; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: Upstream Proxy Protocol] |
||||
// [#extension: envoy.transport_sockets.upstream_proxy_protocol] |
||||
// [#not-implemented-hide:] |
||||
// Configuration for PROXY protocol socket |
||||
message ProxyProtocolUpstreamTransport { |
||||
config.core.v3.ProxyProtocolConfig config = 1; |
||||
|
||||
// The underlying transport socket being wrapped. |
||||
config.core.v3.TransportSocket transport_socket = 2 [(validate.rules).message = {required: true}]; |
||||
} |
Loading…
Reference in new issue