summaryrefslogtreecommitdiff
path: root/src/rpc/envoy.extensions.transport_sockets.starttls.v3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/envoy.extensions.transport_sockets.starttls.v3.rs')
-rw-r--r--src/rpc/envoy.extensions.transport_sockets.starttls.v3.rs42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/rpc/envoy.extensions.transport_sockets.starttls.v3.rs b/src/rpc/envoy.extensions.transport_sockets.starttls.v3.rs
new file mode 100644
index 00000000..a9617df5
--- /dev/null
+++ b/src/rpc/envoy.extensions.transport_sockets.starttls.v3.rs
@@ -0,0 +1,42 @@
+// @generated
+// This file is @generated by prost-build.
+// \[#protodoc-title: StartTls\]
+// \[#extension: envoy.transport_sockets.starttls\]
+
+// StartTls transport socket addresses situations when a protocol starts in clear-text and
+// negotiates an in-band switch to TLS. StartTls transport socket is protocol agnostic. In the
+// case of downstream StartTls a network filter is required which understands protocol exchange
+// and a state machine to signal to the StartTls transport socket when a switch to TLS is
+// required. Similarly, upstream StartTls requires the owner of an upstream transport socket to
+// manage the state machine necessary to properly coordinate negotiation with the upstream and
+// signal to the transport socket when a switch to secure transport is required.
+
+/// Configuration for a downstream StartTls transport socket.
+/// StartTls transport socket wraps two sockets:
+/// * raw_buffer socket which is used at the beginning of the session
+/// * TLS socket used when a protocol negotiates a switch to encrypted traffic.
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct StartTlsConfig {
+ /// (optional) Configuration for clear-text socket used at the beginning of the session.
+ #[prost(message, optional, tag="1")]
+ pub cleartext_socket_config: ::core::option::Option<super::super::raw_buffer::v3::RawBuffer>,
+ /// Configuration for a downstream TLS socket.
+ #[prost(message, optional, tag="2")]
+ pub tls_socket_config: ::core::option::Option<super::super::tls::v3::DownstreamTlsContext>,
+}
+/// Configuration for an upstream StartTls transport socket.
+/// StartTls transport socket wraps two sockets:
+/// * raw_buffer socket which is used at the beginning of the session
+/// * TLS socket used when a protocol negotiates a switch to encrypted traffic.
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct UpstreamStartTlsConfig {
+ /// (optional) Configuration for clear-text socket used at the beginning of the session.
+ #[prost(message, optional, tag="1")]
+ pub cleartext_socket_config: ::core::option::Option<super::super::raw_buffer::v3::RawBuffer>,
+ /// Configuration for an upstream TLS socket.
+ #[prost(message, optional, tag="2")]
+ pub tls_socket_config: ::core::option::Option<super::super::tls::v3::UpstreamTlsContext>,
+}
+// @@protoc_insertion_point(module)