async-grpc-xds 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/fixtures/async/grpc/test_interface.rb +79 -0
  4. data/fixtures/async/grpc/test_message.rb +56 -0
  5. data/lib/async/grpc/xds/ads_stream.rb +70 -0
  6. data/lib/async/grpc/xds/client.rb +255 -0
  7. data/lib/async/grpc/xds/context.rb +201 -0
  8. data/lib/async/grpc/xds/control_plane.rb +143 -0
  9. data/lib/async/grpc/xds/discovery_client.rb +356 -0
  10. data/lib/async/grpc/xds/health_checker.rb +88 -0
  11. data/lib/async/grpc/xds/load_balancer.rb +196 -0
  12. data/lib/async/grpc/xds/resource_builder.rb +138 -0
  13. data/lib/async/grpc/xds/resource_cache.rb +55 -0
  14. data/lib/async/grpc/xds/resources.rb +270 -0
  15. data/lib/async/grpc/xds/server.rb +34 -0
  16. data/lib/async/grpc/xds/service.rb +117 -0
  17. data/lib/async/grpc/xds/version.rb +12 -0
  18. data/lib/async/grpc/xds.rb +42 -0
  19. data/lib/envoy/annotations/deprecation_pb.rb +19 -0
  20. data/lib/envoy/config/cluster/v3/circuit_breaker_pb.rb +31 -0
  21. data/lib/envoy/config/cluster/v3/cluster_pb.rb +80 -0
  22. data/lib/envoy/config/cluster/v3/filter_pb.rb +28 -0
  23. data/lib/envoy/config/cluster/v3/outlier_detection_pb.rb +29 -0
  24. data/lib/envoy/config/core/v3/address_pb.rb +38 -0
  25. data/lib/envoy/config/core/v3/backoff_pb.rb +27 -0
  26. data/lib/envoy/config/core/v3/base_pb.rb +68 -0
  27. data/lib/envoy/config/core/v3/cel_pb.rb +24 -0
  28. data/lib/envoy/config/core/v3/config_source_pb.rb +42 -0
  29. data/lib/envoy/config/core/v3/event_service_config_pb.rb +27 -0
  30. data/lib/envoy/config/core/v3/extension_pb.rb +26 -0
  31. data/lib/envoy/config/core/v3/grpc_method_list_pb.rb +27 -0
  32. data/lib/envoy/config/core/v3/grpc_service_pb.rb +45 -0
  33. data/lib/envoy/config/core/v3/health_check_pb.rb +47 -0
  34. data/lib/envoy/config/core/v3/http_service_pb.rb +27 -0
  35. data/lib/envoy/config/core/v3/http_uri_pb.rb +27 -0
  36. data/lib/envoy/config/core/v3/protocol_pb.rb +51 -0
  37. data/lib/envoy/config/core/v3/proxy_protocol_pb.rb +31 -0
  38. data/lib/envoy/config/core/v3/resolver_pb.rb +27 -0
  39. data/lib/envoy/config/core/v3/socket_cmsg_headers_pb.rb +25 -0
  40. data/lib/envoy/config/core/v3/socket_option_pb.rb +31 -0
  41. data/lib/envoy/config/core/v3/substitution_format_string_pb.rb +30 -0
  42. data/lib/envoy/config/core/v3/udp_socket_config_pb.rb +26 -0
  43. data/lib/envoy/config/endpoint/v3/endpoint_components_pb.rb +40 -0
  44. data/lib/envoy/config/endpoint/v3/endpoint_pb.rb +32 -0
  45. data/lib/envoy/config/endpoint/v3/load_report_pb.rb +36 -0
  46. data/lib/envoy/service/discovery/v3/ads_pb.rb +26 -0
  47. data/lib/envoy/service/discovery/v3/aggregated_discovery_service.rb +64 -0
  48. data/lib/envoy/service/discovery/v3/discovery_pb.rb +42 -0
  49. data/lib/envoy/type/matcher/v3/address_pb.rb +25 -0
  50. data/lib/envoy/type/matcher/v3/filter_state_pb.rb +27 -0
  51. data/lib/envoy/type/matcher/v3/http_inputs_pb.rb +29 -0
  52. data/lib/envoy/type/matcher/v3/metadata_pb.rb +28 -0
  53. data/lib/envoy/type/matcher/v3/node_pb.rb +27 -0
  54. data/lib/envoy/type/matcher/v3/number_pb.rb +27 -0
  55. data/lib/envoy/type/matcher/v3/path_pb.rb +27 -0
  56. data/lib/envoy/type/matcher/v3/regex_pb.rb +30 -0
  57. data/lib/envoy/type/matcher/v3/status_code_input_pb.rb +25 -0
  58. data/lib/envoy/type/matcher/v3/string_pb.rb +29 -0
  59. data/lib/envoy/type/matcher/v3/struct_pb.rb +28 -0
  60. data/lib/envoy/type/matcher/v3/value_pb.rb +31 -0
  61. data/lib/envoy/type/metadata/v3/metadata_pb.rb +32 -0
  62. data/lib/envoy/type/v3/hash_policy_pb.rb +26 -0
  63. data/lib/envoy/type/v3/http_pb.rb +22 -0
  64. data/lib/envoy/type/v3/http_status_pb.rb +25 -0
  65. data/lib/envoy/type/v3/percent_pb.rb +26 -0
  66. data/lib/envoy/type/v3/range_pb.rb +25 -0
  67. data/lib/envoy/type/v3/ratelimit_strategy_pb.rb +28 -0
  68. data/lib/envoy/type/v3/ratelimit_unit_pb.rb +22 -0
  69. data/lib/envoy/type/v3/semantic_version_pb.rb +23 -0
  70. data/lib/envoy/type/v3/token_bucket_pb.rb +26 -0
  71. data/lib/envoy.rb +83 -0
  72. data/lib/google/protobuf/any_pb.rb +18 -0
  73. data/lib/google/protobuf/duration_pb.rb +18 -0
  74. data/lib/google/protobuf/empty_pb.rb +18 -0
  75. data/lib/google/protobuf/struct_pb.rb +21 -0
  76. data/lib/google/protobuf/timestamp_pb.rb +18 -0
  77. data/lib/google/protobuf/wrappers_pb.rb +26 -0
  78. data/lib/google/rpc/status_pb.rb +20 -0
  79. data/lib/udpa/annotations/migrate_pb.rb +22 -0
  80. data/lib/udpa/annotations/security_pb.rb +23 -0
  81. data/lib/udpa/annotations/sensitive_pb.rb +19 -0
  82. data/lib/udpa/annotations/status_pb.rb +21 -0
  83. data/lib/udpa/annotations/versioning_pb.rb +20 -0
  84. data/lib/validate/validate_pb.rb +43 -0
  85. data/lib/xds/annotations/v3/status_pb.rb +26 -0
  86. data/lib/xds/core/v3/authority_pb.rb +23 -0
  87. data/lib/xds/core/v3/cidr_pb.rb +24 -0
  88. data/lib/xds/core/v3/collection_entry_pb.rb +26 -0
  89. data/lib/xds/core/v3/context_params_pb.rb +22 -0
  90. data/lib/xds/core/v3/extension_pb.rb +23 -0
  91. data/lib/xds/core/v3/resource_locator_pb.rb +26 -0
  92. data/lib/xds/core/v3/resource_name_pb.rb +24 -0
  93. data/lib/xds/core/v3/resource_pb.rb +24 -0
  94. data/lib/xds/type/matcher/v3/domain_pb.rb +27 -0
  95. data/lib/xds/type/matcher/v3/http_inputs_pb.rb +22 -0
  96. data/lib/xds/type/matcher/v3/ip_pb.rb +28 -0
  97. data/lib/xds/type/matcher/v3/matcher_pb.rb +34 -0
  98. data/lib/xds/type/matcher/v3/range_pb.rb +31 -0
  99. data/lib/xds/type/matcher/v3/regex_pb.rb +25 -0
  100. data/lib/xds/type/matcher/v3/string_pb.rb +27 -0
  101. data/license.md +21 -0
  102. data/plan.md +156 -0
  103. data/proto/envoy/annotations/deprecation.proto +34 -0
  104. data/proto/envoy/annotations/resource.proto +19 -0
  105. data/proto/envoy/config/README.md +3 -0
  106. data/proto/envoy/config/cluster/v3/BUILD +18 -0
  107. data/proto/envoy/config/cluster/v3/circuit_breaker.proto +121 -0
  108. data/proto/envoy/config/cluster/v3/cluster.proto +1407 -0
  109. data/proto/envoy/config/cluster/v3/filter.proto +40 -0
  110. data/proto/envoy/config/cluster/v3/outlier_detection.proto +180 -0
  111. data/proto/envoy/config/core/v3/BUILD +16 -0
  112. data/proto/envoy/config/core/v3/address.proto +214 -0
  113. data/proto/envoy/config/core/v3/backoff.proto +37 -0
  114. data/proto/envoy/config/core/v3/base.proto +662 -0
  115. data/proto/envoy/config/core/v3/cel.proto +63 -0
  116. data/proto/envoy/config/core/v3/config_source.proto +283 -0
  117. data/proto/envoy/config/core/v3/event_service_config.proto +29 -0
  118. data/proto/envoy/config/core/v3/extension.proto +32 -0
  119. data/proto/envoy/config/core/v3/grpc_method_list.proto +33 -0
  120. data/proto/envoy/config/core/v3/grpc_service.proto +355 -0
  121. data/proto/envoy/config/core/v3/health_check.proto +443 -0
  122. data/proto/envoy/config/core/v3/http_service.proto +35 -0
  123. data/proto/envoy/config/core/v3/http_uri.proto +58 -0
  124. data/proto/envoy/config/core/v3/protocol.proto +807 -0
  125. data/proto/envoy/config/core/v3/proxy_protocol.proto +114 -0
  126. data/proto/envoy/config/core/v3/resolver.proto +36 -0
  127. data/proto/envoy/config/core/v3/socket_cmsg_headers.proto +28 -0
  128. data/proto/envoy/config/core/v3/socket_option.proto +108 -0
  129. data/proto/envoy/config/core/v3/substitution_format_string.proto +136 -0
  130. data/proto/envoy/config/core/v3/udp_socket_config.proto +32 -0
  131. data/proto/envoy/config/endpoint/v3/BUILD +16 -0
  132. data/proto/envoy/config/endpoint/v3/endpoint.proto +137 -0
  133. data/proto/envoy/config/endpoint/v3/endpoint_components.proto +229 -0
  134. data/proto/envoy/config/endpoint/v3/load_report.proto +220 -0
  135. data/proto/envoy/config/listener/v3/BUILD +18 -0
  136. data/proto/envoy/config/listener/v3/api_listener.proto +34 -0
  137. data/proto/envoy/config/listener/v3/listener.proto +455 -0
  138. data/proto/envoy/config/listener/v3/listener_components.proto +353 -0
  139. data/proto/envoy/config/listener/v3/quic_config.proto +108 -0
  140. data/proto/envoy/config/listener/v3/udp_listener_config.proto +52 -0
  141. data/proto/envoy/config/route/v3/BUILD +19 -0
  142. data/proto/envoy/config/route/v3/route.proto +172 -0
  143. data/proto/envoy/config/route/v3/route_components.proto +2918 -0
  144. data/proto/envoy/config/route/v3/scoped_route.proto +133 -0
  145. data/proto/envoy/extensions/transport_sockets/tls/v3/BUILD +14 -0
  146. data/proto/envoy/extensions/transport_sockets/tls/v3/cert.proto +12 -0
  147. data/proto/envoy/extensions/transport_sockets/tls/v3/common.proto +597 -0
  148. data/proto/envoy/extensions/transport_sockets/tls/v3/secret.proto +61 -0
  149. data/proto/envoy/extensions/transport_sockets/tls/v3/tls.proto +366 -0
  150. data/proto/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.proto +67 -0
  151. data/proto/envoy/service/README.md +3 -0
  152. data/proto/envoy/service/discovery/v3/BUILD +13 -0
  153. data/proto/envoy/service/discovery/v3/ads.proto +44 -0
  154. data/proto/envoy/service/discovery/v3/discovery.proto +443 -0
  155. data/proto/envoy/type/BUILD +9 -0
  156. data/proto/envoy/type/hash_policy.proto +28 -0
  157. data/proto/envoy/type/http.proto +24 -0
  158. data/proto/envoy/type/http_status.proto +140 -0
  159. data/proto/envoy/type/matcher/v3/address.proto +22 -0
  160. data/proto/envoy/type/matcher/v3/filter_state.proto +33 -0
  161. data/proto/envoy/type/matcher/v3/http_inputs.proto +71 -0
  162. data/proto/envoy/type/matcher/v3/metadata.proto +110 -0
  163. data/proto/envoy/type/matcher/v3/node.proto +29 -0
  164. data/proto/envoy/type/matcher/v3/number.proto +33 -0
  165. data/proto/envoy/type/matcher/v3/path.proto +31 -0
  166. data/proto/envoy/type/matcher/v3/regex.proto +97 -0
  167. data/proto/envoy/type/matcher/v3/status_code_input.proto +23 -0
  168. data/proto/envoy/type/matcher/v3/string.proto +94 -0
  169. data/proto/envoy/type/matcher/v3/struct.proto +91 -0
  170. data/proto/envoy/type/matcher/v3/value.proto +80 -0
  171. data/proto/envoy/type/metadata/v3/metadata.proto +117 -0
  172. data/proto/envoy/type/percent.proto +52 -0
  173. data/proto/envoy/type/range.proto +43 -0
  174. data/proto/envoy/type/semantic_version.proto +24 -0
  175. data/proto/envoy/type/token_bucket.proto +36 -0
  176. data/proto/envoy/type/v3/BUILD +12 -0
  177. data/proto/envoy/type/v3/hash_policy.proto +43 -0
  178. data/proto/envoy/type/v3/http.proto +24 -0
  179. data/proto/envoy/type/v3/http_status.proto +199 -0
  180. data/proto/envoy/type/v3/percent.proto +57 -0
  181. data/proto/envoy/type/v3/range.proto +50 -0
  182. data/proto/envoy/type/v3/ratelimit_strategy.proto +79 -0
  183. data/proto/envoy/type/v3/ratelimit_unit.proto +37 -0
  184. data/proto/envoy/type/v3/semantic_version.proto +27 -0
  185. data/proto/envoy/type/v3/token_bucket.proto +39 -0
  186. data/proto/google/protobuf/any.proto +162 -0
  187. data/proto/google/protobuf/duration.proto +115 -0
  188. data/proto/google/protobuf/empty.proto +51 -0
  189. data/proto/google/protobuf/struct.proto +95 -0
  190. data/proto/google/protobuf/timestamp.proto +145 -0
  191. data/proto/google/protobuf/wrappers.proto +157 -0
  192. data/proto/google/rpc/status.proto +47 -0
  193. data/proto/readme.md +70 -0
  194. data/proto/udpa/annotations/migrate.proto +49 -0
  195. data/proto/udpa/annotations/security.proto +31 -0
  196. data/proto/udpa/annotations/sensitive.proto +14 -0
  197. data/proto/udpa/annotations/status.proto +34 -0
  198. data/proto/udpa/annotations/versioning.proto +17 -0
  199. data/proto/validate/validate.proto +862 -0
  200. data/proto/xds/annotations/v3/migrate.proto +46 -0
  201. data/proto/xds/annotations/v3/security.proto +30 -0
  202. data/proto/xds/annotations/v3/sensitive.proto +16 -0
  203. data/proto/xds/annotations/v3/status.proto +59 -0
  204. data/proto/xds/annotations/v3/versioning.proto +20 -0
  205. data/proto/xds/core/v3/authority.proto +22 -0
  206. data/proto/xds/core/v3/cidr.proto +25 -0
  207. data/proto/xds/core/v3/collection_entry.proto +55 -0
  208. data/proto/xds/core/v3/context_params.proto +23 -0
  209. data/proto/xds/core/v3/extension.proto +26 -0
  210. data/proto/xds/core/v3/resource.proto +29 -0
  211. data/proto/xds/core/v3/resource_locator.proto +118 -0
  212. data/proto/xds/core/v3/resource_name.proto +42 -0
  213. data/proto/xds/type/matcher/v3/cel.proto +37 -0
  214. data/proto/xds/type/matcher/v3/domain.proto +46 -0
  215. data/proto/xds/type/matcher/v3/http_inputs.proto +23 -0
  216. data/proto/xds/type/matcher/v3/ip.proto +53 -0
  217. data/proto/xds/type/matcher/v3/matcher.proto +144 -0
  218. data/proto/xds/type/matcher/v3/range.proto +69 -0
  219. data/proto/xds/type/matcher/v3/regex.proto +46 -0
  220. data/proto/xds/type/matcher/v3/string.proto +71 -0
  221. data/proto/xds/type/v3/cel.proto +77 -0
  222. data/proto/xds/type/v3/range.proto +40 -0
  223. data/proto/xds/type/v3/typed_struct.proto +44 -0
  224. data/readme.md +37 -0
  225. data/releases.md +5 -0
  226. data/xds/Dockerfile.backend +24 -0
  227. data/xds/Dockerfile.control-plane +22 -0
  228. data/xds/backend_server.rb +68 -0
  229. data/xds/docker-compose.yaml +89 -0
  230. data/xds/go.mod +22 -0
  231. data/xds/go.sum +82 -0
  232. data/xds/readme.md +122 -0
  233. data/xds/test/async/grpc/xds/client.rb +294 -0
  234. data/xds/test/async/grpc/xds/control_plane.rb +94 -0
  235. data/xds/test_server.go +355 -0
  236. data/xds/update_protos.sh +123 -0
  237. data.tar.gz.sig +0 -0
  238. metadata +386 -0
  239. metadata.gz.sig +2 -0
@@ -0,0 +1,455 @@
1
+ syntax = "proto3";
2
+
3
+ package envoy.config.listener.v3;
4
+
5
+ import "envoy/config/accesslog/v3/accesslog.proto";
6
+ import "envoy/config/core/v3/address.proto";
7
+ import "envoy/config/core/v3/base.proto";
8
+ import "envoy/config/core/v3/config_source.proto";
9
+ import "envoy/config/core/v3/extension.proto";
10
+ import "envoy/config/core/v3/socket_option.proto";
11
+ import "envoy/config/listener/v3/api_listener.proto";
12
+ import "envoy/config/listener/v3/listener_components.proto";
13
+ import "envoy/config/listener/v3/udp_listener_config.proto";
14
+
15
+ import "google/protobuf/duration.proto";
16
+ import "google/protobuf/wrappers.proto";
17
+
18
+ import "xds/core/v3/collection_entry.proto";
19
+ import "xds/type/matcher/v3/matcher.proto";
20
+
21
+ import "envoy/annotations/deprecation.proto";
22
+ import "udpa/annotations/security.proto";
23
+ import "udpa/annotations/status.proto";
24
+ import "udpa/annotations/versioning.proto";
25
+ import "validate/validate.proto";
26
+
27
+ option java_package = "io.envoyproxy.envoy.config.listener.v3";
28
+ option java_outer_classname = "ListenerProto";
29
+ option java_multiple_files = true;
30
+ option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3";
31
+ option (udpa.annotations.file_status).package_version_status = ACTIVE;
32
+
33
+ // [#protodoc-title: Listener configuration]
34
+ // Listener :ref:`configuration overview <config_listeners>`
35
+
36
+ // The additional address the listener is listening on.
37
+ message AdditionalAddress {
38
+ core.v3.Address address = 1;
39
+
40
+ // Additional socket options that may not be present in Envoy source code or
41
+ // precompiled binaries. If specified, this will override the
42
+ // :ref:`socket_options <envoy_v3_api_field_config.listener.v3.Listener.socket_options>`
43
+ // in the listener. If specified with no
44
+ // :ref:`socket_options <envoy_v3_api_field_config.core.v3.SocketOptionsOverride.socket_options>`
45
+ // or an empty list of :ref:`socket_options <envoy_v3_api_field_config.core.v3.SocketOptionsOverride.socket_options>`,
46
+ // it means no socket option will apply.
47
+ core.v3.SocketOptionsOverride socket_options = 2;
48
+
49
+ // Configures TCP keepalive settings for the additional address.
50
+ // If not set, the listener :ref:`tcp_keepalive <envoy_v3_api_field_config.listener.v3.Listener.tcp_keepalive>`
51
+ // configuration is inherited. You can explicitly disable TCP keepalive for the additional address by setting any keepalive field
52
+ // (:ref:`keepalive_probes <envoy_v3_api_field_config.core.v3.TcpKeepalive.keepalive_probes>`,
53
+ // :ref:`keepalive_time <envoy_v3_api_field_config.core.v3.TcpKeepalive.keepalive_time>`, or
54
+ // :ref:`keepalive_interval <envoy_v3_api_field_config.core.v3.TcpKeepalive.keepalive_interval>`) to ``0``.
55
+ core.v3.TcpKeepalive tcp_keepalive = 3;
56
+ }
57
+
58
+ // Listener list collections. Entries are ``Listener`` resources or references.
59
+ // [#not-implemented-hide:]
60
+ message ListenerCollection {
61
+ repeated xds.core.v3.CollectionEntry entries = 1;
62
+ }
63
+
64
+ // [#next-free-field: 38]
65
+ message Listener {
66
+ option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.Listener";
67
+
68
+ enum DrainType {
69
+ // Drain in response to calling /healthcheck/fail admin endpoint (along with the health check
70
+ // filter), listener removal/modification, and hot restart.
71
+ DEFAULT = 0;
72
+
73
+ // Drain in response to listener removal/modification and hot restart. This setting does not
74
+ // include /healthcheck/fail. This setting may be desirable if Envoy is hosting both ingress
75
+ // and egress listeners.
76
+ MODIFY_ONLY = 1;
77
+ }
78
+
79
+ // [#not-implemented-hide:]
80
+ message DeprecatedV1 {
81
+ option (udpa.annotations.versioning).previous_message_type =
82
+ "envoy.api.v2.Listener.DeprecatedV1";
83
+
84
+ // Whether the listener should bind to the port. A listener that doesn't
85
+ // bind can only receive connections redirected from other listeners that
86
+ // set use_original_dst parameter to true. Default is true.
87
+ //
88
+ // This is deprecated. Use :ref:`Listener.bind_to_port
89
+ // <envoy_v3_api_field_config.listener.v3.Listener.bind_to_port>`
90
+ google.protobuf.BoolValue bind_to_port = 1;
91
+ }
92
+
93
+ // Configuration for listener connection balancing.
94
+ message ConnectionBalanceConfig {
95
+ option (udpa.annotations.versioning).previous_message_type =
96
+ "envoy.api.v2.Listener.ConnectionBalanceConfig";
97
+
98
+ // A connection balancer implementation that does exact balancing. This means that a lock is
99
+ // held during balancing so that connection counts are nearly exactly balanced between worker
100
+ // threads. This is "nearly" exact in the sense that a connection might close in parallel thus
101
+ // making the counts incorrect, but this should be rectified on the next accept. This balancer
102
+ // sacrifices accept throughput for accuracy and should be used when there are a small number of
103
+ // connections that rarely cycle (e.g., service mesh gRPC egress).
104
+ message ExactBalance {
105
+ option (udpa.annotations.versioning).previous_message_type =
106
+ "envoy.api.v2.Listener.ConnectionBalanceConfig.ExactBalance";
107
+ }
108
+
109
+ oneof balance_type {
110
+ option (validate.required) = true;
111
+
112
+ // If specified, the listener will use the exact connection balancer.
113
+ ExactBalance exact_balance = 1;
114
+
115
+ // The listener will use the connection balancer according to ``type_url``. If ``type_url`` is invalid,
116
+ // Envoy will not attempt to balance active connections between worker threads.
117
+ // [#extension-category: envoy.network.connection_balance]
118
+ core.v3.TypedExtensionConfig extend_balance = 2;
119
+ }
120
+ }
121
+
122
+ // Configuration for envoy internal listener. All the future internal listener features should be added here.
123
+ message InternalListenerConfig {
124
+ }
125
+
126
+ // Configuration for filter chains discovery.
127
+ // [#not-implemented-hide:]
128
+ message FcdsConfig {
129
+ // Optional name to present to the filter chain discovery service. This may be an arbitrary name with arbitrary
130
+ // length. If a name is not provided, the listener's name is used. Refer to :ref:`filter_chains <envoy_v3_api_field_config.listener.v3.Listener.name>`.
131
+ // for details on how listener name is determined if unspecified. In addition, this may be a xdstp:// URL.
132
+ string name = 1;
133
+
134
+ // Configuration for the source of FCDS updates for this listener.
135
+ // .. note::
136
+ // This discovery service only supports ``AGGREGATED_GRPC`` API type.
137
+ core.v3.ConfigSource config_source = 2;
138
+ }
139
+
140
+ reserved 14, 23;
141
+
142
+ // The unique name by which this listener is known. If no name is provided,
143
+ // Envoy will allocate an internal UUID for the listener. If the listener is to be dynamically
144
+ // updated or removed via :ref:`LDS <config_listeners_lds>` a unique name must be provided.
145
+ string name = 1;
146
+
147
+ // The address that the listener should listen on. In general, the address must be unique, though
148
+ // that is governed by the bind rules of the OS. E.g., multiple listeners can listen on port 0 on
149
+ // Linux as the actual port will be allocated by the OS.
150
+ // Required unless ``api_listener`` or ``listener_specifier`` is populated.
151
+ //
152
+ // When the address contains a network namespace filepath (via
153
+ // :ref:`network_namespace_filepath <envoy_v3_api_field_config.core.v3.SocketAddress.network_namespace_filepath>`),
154
+ // Envoy automatically populates the filter state with key ``envoy.network.network_namespace``
155
+ // when a connection is accepted. This provides read-only access to the network namespace for
156
+ // filters, access logs, and other components.
157
+ core.v3.Address address = 2;
158
+
159
+ // The additional addresses the listener should listen on. The addresses must be unique across all
160
+ // listeners. Multiple addresses with port 0 can be supplied. When using multiple addresses in a single listener,
161
+ // all addresses use the same protocol, and multiple internal addresses are not supported.
162
+ repeated AdditionalAddress additional_addresses = 33;
163
+
164
+ // Optional prefix to use on listener stats. If empty, the stats will be rooted at
165
+ // ``listener.<address as string>.``. If non-empty, stats will be rooted at
166
+ // ``listener.<stat_prefix>.``.
167
+ string stat_prefix = 28;
168
+
169
+ // A list of filter chains to consider for this listener. The
170
+ // :ref:`FilterChain <envoy_v3_api_msg_config.listener.v3.FilterChain>` with the most specific
171
+ // :ref:`FilterChainMatch <envoy_v3_api_msg_config.listener.v3.FilterChainMatch>` criteria is used on a
172
+ // connection.
173
+ //
174
+ // Example using SNI for filter chain selection can be found in the
175
+ // :ref:`FAQ entry <faq_how_to_setup_sni>`.
176
+ repeated FilterChain filter_chains = 3;
177
+
178
+ // Discover filter chains configurations by external service. Dynamic discovery of filter chains is allowed
179
+ // while having statically configured filter chains, however, a filter chain name must be unique within a
180
+ // listener. If a discovered filter chain matches a name of an existing filter chain, it is discarded.
181
+ // [#not-implemented-hide:]
182
+ FcdsConfig fcds_config = 36;
183
+
184
+ // :ref:`Matcher API <arch_overview_matching_listener>` resolving the filter chain name from the
185
+ // network properties. This matcher is used as a replacement for the filter chain match condition
186
+ // :ref:`filter_chain_match
187
+ // <envoy_v3_api_field_config.listener.v3.FilterChain.filter_chain_match>`. If specified, all
188
+ // :ref:`filter_chains <envoy_v3_api_field_config.listener.v3.Listener.filter_chains>` must have a
189
+ // non-empty and unique :ref:`name <envoy_v3_api_field_config.listener.v3.FilterChain.name>` field
190
+ // and not specify :ref:`filter_chain_match
191
+ // <envoy_v3_api_field_config.listener.v3.FilterChain.filter_chain_match>` field.
192
+ //
193
+ // .. note::
194
+ //
195
+ // Once matched, each connection is permanently bound to its filter chain.
196
+ // If the matcher changes but the filter chain remains the same, the
197
+ // connections bound to the filter chain are not drained. If, however, the
198
+ // filter chain is removed or structurally modified, then the drain for its
199
+ // connections is initiated.
200
+ xds.type.matcher.v3.Matcher filter_chain_matcher = 32;
201
+
202
+ // If a connection is redirected using ``iptables``, the port on which the proxy
203
+ // receives it might be different from the original destination address. When this flag is set to
204
+ // true, the listener hands off redirected connections to the listener associated with the
205
+ // original destination address. If there is no listener associated with the original destination
206
+ // address, the connection is handled by the listener that receives it. Defaults to false.
207
+ google.protobuf.BoolValue use_original_dst = 4;
208
+
209
+ // The default filter chain if none of the filter chain matches. If no default filter chain is supplied,
210
+ // the connection will be closed. The filter chain match is ignored in this field.
211
+ FilterChain default_filter_chain = 25;
212
+
213
+ // Soft limit on size of the listener’s new connection read and write buffers.
214
+ // If unspecified, an implementation defined default is applied (1MiB).
215
+ google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5
216
+ [(udpa.annotations.security).configure_for_untrusted_downstream = true];
217
+
218
+ // Listener metadata.
219
+ core.v3.Metadata metadata = 6;
220
+
221
+ // [#not-implemented-hide:]
222
+ DeprecatedV1 deprecated_v1 = 7
223
+ [deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
224
+
225
+ // The type of draining to perform at a listener-wide level.
226
+ DrainType drain_type = 8;
227
+
228
+ // Listener filters have the opportunity to manipulate and augment the connection metadata that
229
+ // is used in connection filter chain matching, for example. These filters are run before any in
230
+ // :ref:`filter_chains <envoy_v3_api_field_config.listener.v3.Listener.filter_chains>`. Order matters as the
231
+ // filters are processed sequentially right after a socket has been accepted by the listener, and
232
+ // before a connection is created.
233
+ // UDP Listener filters can be specified when the protocol in the listener socket address in
234
+ // :ref:`protocol <envoy_v3_api_field_config.core.v3.SocketAddress.protocol>` is :ref:`UDP
235
+ // <envoy_v3_api_enum_value_config.core.v3.SocketAddress.Protocol.UDP>` and no
236
+ // :ref:`quic_options <envoy_v3_api_field_config.listener.v3.UdpListenerConfig.quic_options>` is specified in :ref:`udp_listener_config <envoy_v3_api_field_config.listener.v3.Listener.udp_listener_config>`.
237
+ // QUIC listener filters can be specified when :ref:`quic_options
238
+ // <envoy_v3_api_field_config.listener.v3.UdpListenerConfig.quic_options>` is
239
+ // specified in :ref:`udp_listener_config <envoy_v3_api_field_config.listener.v3.Listener.udp_listener_config>`.
240
+ // They are processed sequentially right before connection creation. And like TCP Listener filters, they can be used to manipulate the connection metadata and socket. But the difference is that they can't be used to pause connection creation.
241
+ repeated ListenerFilter listener_filters = 9;
242
+
243
+ // The timeout to wait for all listener filters to complete operation. If the timeout is reached,
244
+ // the accepted socket is closed without a connection being created unless
245
+ // ``continue_on_listener_filters_timeout`` is set to true. Specify 0 to disable the
246
+ // timeout. If not specified, a default timeout of 15s is used.
247
+ google.protobuf.Duration listener_filters_timeout = 15;
248
+
249
+ // Whether a connection should be created when listener filters timeout. Default is false.
250
+ //
251
+ // .. attention::
252
+ //
253
+ // Some listener filters, such as :ref:`Proxy Protocol filter
254
+ // <config_listener_filters_proxy_protocol>`, should not be used with this option. It will cause
255
+ // unexpected behavior when a connection is created.
256
+ bool continue_on_listener_filters_timeout = 17;
257
+
258
+ // Whether the listener should be set as a transparent socket.
259
+ // When this flag is set to true, connections can be redirected to the listener using an
260
+ // ``iptables`` ``TPROXY`` target, in which case the original source and destination addresses and
261
+ // ports are preserved on accepted connections. This flag should be used in combination with
262
+ // :ref:`an original_dst <config_listener_filters_original_dst>` :ref:`listener filter
263
+ // <envoy_v3_api_field_config.listener.v3.Listener.listener_filters>` to mark the connections' local addresses as
264
+ // "restored." This can be used to hand off each redirected connection to another listener
265
+ // associated with the connection's destination address. Direct connections to the socket without
266
+ // using ``TPROXY`` cannot be distinguished from connections redirected using ``TPROXY`` and are
267
+ // therefore treated as if they were redirected.
268
+ // When this flag is set to false, the listener's socket is explicitly reset as non-transparent.
269
+ // Setting this flag requires Envoy to run with the ``CAP_NET_ADMIN`` capability.
270
+ // When this flag is not set (default), the socket is not modified, i.e. the transparent option
271
+ // is neither set nor reset.
272
+ google.protobuf.BoolValue transparent = 10;
273
+
274
+ // Whether the listener should set the ``IP_FREEBIND`` socket option. When this
275
+ // flag is set to true, listeners can be bound to an IP address that is not
276
+ // configured on the system running Envoy. When this flag is set to false, the
277
+ // option ``IP_FREEBIND`` is disabled on the socket. When this flag is not set
278
+ // (default), the socket is not modified, i.e. the option is neither enabled
279
+ // nor disabled.
280
+ google.protobuf.BoolValue freebind = 11;
281
+
282
+ // Additional socket options that may not be present in Envoy source code or
283
+ // precompiled binaries.
284
+ // It is not allowed to update the socket options for any existing address if
285
+ // :ref:`enable_reuse_port <envoy_v3_api_field_config.listener.v3.Listener.enable_reuse_port>`
286
+ // is ``false`` to avoid the conflict when creating new sockets for the listener.
287
+ repeated core.v3.SocketOption socket_options = 13;
288
+
289
+ // Whether the listener should accept TCP Fast Open (TFO) connections.
290
+ // When this flag is set to a value greater than 0, the option TCP_FASTOPEN is enabled on
291
+ // the socket, with a queue length of the specified size
292
+ // (see `details in RFC7413 <https://tools.ietf.org/html/rfc7413#section-5.1>`_).
293
+ // When this flag is set to 0, the option TCP_FASTOPEN is disabled on the socket.
294
+ // When this flag is not set (default), the socket is not modified,
295
+ // i.e. the option is neither enabled nor disabled.
296
+ //
297
+ // On Linux, the net.ipv4.tcp_fastopen kernel parameter must include flag 0x2 to enable
298
+ // TCP_FASTOPEN.
299
+ // See `ip-sysctl.txt <https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt>`_.
300
+ //
301
+ // On macOS, only values of 0, 1, and unset are valid; other values may result in an error.
302
+ // To set the queue length on macOS, set the net.inet.tcp.fastopen_backlog kernel parameter.
303
+ google.protobuf.UInt32Value tcp_fast_open_queue_length = 12;
304
+
305
+ // Specifies the intended direction of the traffic relative to the local Envoy.
306
+ // This property is required on Windows for listeners using the original destination filter,
307
+ // see :ref:`Original Destination <config_listener_filters_original_dst>`.
308
+ core.v3.TrafficDirection traffic_direction = 16;
309
+
310
+ // If the protocol in the listener socket address in :ref:`protocol
311
+ // <envoy_v3_api_field_config.core.v3.SocketAddress.protocol>` is :ref:`UDP
312
+ // <envoy_v3_api_enum_value_config.core.v3.SocketAddress.Protocol.UDP>`, this field specifies UDP
313
+ // listener specific configuration.
314
+ UdpListenerConfig udp_listener_config = 18;
315
+
316
+ // Used to represent an API listener, which is used in non-proxy clients. The type of API
317
+ // exposed to the non-proxy application depends on the type of API listener.
318
+ // When this field is set, no other field except for :ref:`name<envoy_v3_api_field_config.listener.v3.Listener.name>`
319
+ // should be set.
320
+ //
321
+ // .. note::
322
+ //
323
+ // Currently only one ApiListener can be installed; and it can only be done via bootstrap config,
324
+ // not LDS.
325
+ //
326
+ // [#next-major-version: In the v3 API, instead of this messy approach where the socket
327
+ // listener fields are directly in the top-level Listener message and the API listener types
328
+ // are in the ApiListener message, the socket listener messages should be in their own message,
329
+ // and the top-level Listener should essentially be a oneof that selects between the
330
+ // socket listener and the various types of API listener. That way, a given Listener message
331
+ // can structurally only contain the fields of the relevant type.]
332
+ ApiListener api_listener = 19;
333
+
334
+ // The listener's connection balancer configuration, currently only applicable to TCP listeners.
335
+ // If no configuration is specified, Envoy will not attempt to balance active connections between
336
+ // worker threads.
337
+ //
338
+ // In the scenario that the listener X redirects all the connections to the listeners Y1 and Y2
339
+ // by setting :ref:`use_original_dst <envoy_v3_api_field_config.listener.v3.Listener.use_original_dst>` in X
340
+ // and :ref:`bind_to_port <envoy_v3_api_field_config.listener.v3.Listener.bind_to_port>` to false in Y1 and Y2,
341
+ // it is recommended to disable the balance config in listener X to avoid the cost of balancing, and
342
+ // enable the balance config in Y1 and Y2 to balance the connections among the workers.
343
+ ConnectionBalanceConfig connection_balance_config = 20;
344
+
345
+ // Deprecated. Use ``enable_reuse_port`` instead.
346
+ bool reuse_port = 21 [deprecated = true, (envoy.annotations.deprecated_at_minor_version) = "3.0"];
347
+
348
+ // When this flag is set to true, listeners set the ``SO_REUSEPORT`` socket option and
349
+ // create one socket for each worker thread. This makes inbound connections
350
+ // distribute among worker threads roughly evenly in cases where there are a high number
351
+ // of connections. When this flag is set to false, all worker threads share one socket. This field
352
+ // defaults to true. The change of field will be rejected during an listener update when the
353
+ // runtime flag ``envoy.reloadable_features.enable_update_listener_socket_options`` is enabled.
354
+ // Otherwise, the update of this field will be ignored quietly.
355
+ //
356
+ // .. attention::
357
+ //
358
+ // Although this field defaults to true, it has different behavior on different platforms. See
359
+ // the following text for more information.
360
+ //
361
+ // * On Linux, reuse_port is respected for both TCP and UDP listeners. It also works correctly
362
+ // with hot restart.
363
+ // * On macOS, reuse_port for TCP does not do what it does on Linux. Instead of load balancing,
364
+ // the last socket wins and receives all connections/packets. For TCP, reuse_port is force
365
+ // disabled and the user is warned. For UDP, it is enabled, but only one worker will receive
366
+ // packets. For QUIC/H3, SW routing will send packets to other workers. For "raw" UDP, only
367
+ // a single worker will currently receive packets.
368
+ // * On Windows, reuse_port for TCP has undefined behavior. It is force disabled and the user
369
+ // is warned similar to macOS. It is left enabled for UDP with undefined behavior currently.
370
+ google.protobuf.BoolValue enable_reuse_port = 29;
371
+
372
+ // Configuration for :ref:`access logs <arch_overview_access_logs>`
373
+ // emitted by this listener.
374
+ repeated accesslog.v3.AccessLog access_log = 22;
375
+
376
+ // The maximum length a tcp listener's pending connections queue can grow to. If no value is
377
+ // provided net.core.somaxconn will be used on Linux and 128 otherwise.
378
+ google.protobuf.UInt32Value tcp_backlog_size = 24;
379
+
380
+ // The maximum number of connections to accept from the kernel per socket
381
+ // event. Envoy may decide to close these connections after accepting them
382
+ // from the kernel e.g. due to load shedding, or other policies.
383
+ // If there are more than max_connections_to_accept_per_socket_event
384
+ // connections pending accept, connections over this threshold will be
385
+ // accepted in later event loop iterations.
386
+ // If no value is provided Envoy will accept all connections pending accept
387
+ // from the kernel.
388
+ //
389
+ // .. note::
390
+ //
391
+ // It is recommended to lower this value for better overload management and reduced per-event cost.
392
+ // Setting it to 1 is a viable option with no noticeable impact on performance.
393
+ google.protobuf.UInt32Value max_connections_to_accept_per_socket_event = 34
394
+ [(validate.rules).uint32 = {gt: 0}];
395
+
396
+ // Whether the listener should bind to the port. A listener that doesn't
397
+ // bind can only receive connections redirected from other listeners that set
398
+ // :ref:`use_original_dst <envoy_v3_api_field_config.listener.v3.Listener.use_original_dst>`
399
+ // to true. Default is true.
400
+ google.protobuf.BoolValue bind_to_port = 26;
401
+
402
+ // The exclusive listener type and the corresponding config.
403
+ oneof listener_specifier {
404
+ // Used to represent an internal listener which does not listen on OSI L4 address but can be used by the
405
+ // :ref:`envoy cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` to create a user space connection to.
406
+ // The internal listener acts as a TCP listener. It supports listener filters and network filter chains.
407
+ // Upstream clusters refer to the internal listeners by their :ref:`name
408
+ // <envoy_v3_api_field_config.listener.v3.Listener.name>`. :ref:`Address
409
+ // <envoy_v3_api_field_config.listener.v3.Listener.address>` must not be set on the internal listeners.
410
+ //
411
+ // There are some limitations that are derived from the implementation. The known limitations include:
412
+ //
413
+ // * :ref:`ConnectionBalanceConfig <envoy_v3_api_msg_config.listener.v3.Listener.ConnectionBalanceConfig>` is not
414
+ // allowed because both the cluster connection and the listener connection must be owned by the same dispatcher.
415
+ // * :ref:`tcp_backlog_size <envoy_v3_api_field_config.listener.v3.Listener.tcp_backlog_size>`
416
+ // * :ref:`freebind <envoy_v3_api_field_config.listener.v3.Listener.freebind>`
417
+ // * :ref:`transparent <envoy_v3_api_field_config.listener.v3.Listener.transparent>`
418
+ InternalListenerConfig internal_listener = 27;
419
+ }
420
+
421
+ // Enable MPTCP (multi-path TCP) on this listener. Clients will be allowed to establish
422
+ // MPTCP connections. Non-MPTCP clients will fall back to regular TCP.
423
+ bool enable_mptcp = 30;
424
+
425
+ // Whether the listener should limit connections based upon the value of
426
+ // :ref:`global_downstream_max_connections <config_overload_manager_limiting_connections>`.
427
+ bool ignore_global_conn_limit = 31;
428
+
429
+ // Whether the listener bypasses configured overload manager actions.
430
+ bool bypass_overload_manager = 35;
431
+
432
+ // If set, TCP keepalive settings are configured for the listener address and inherited by
433
+ // additional addresses. If not set, TCP keepalive settings are not configured for the
434
+ // listener address and additional addresses by default. See :ref:`tcp_keepalive <envoy_v3_api_field_config.listener.v3.AdditionalAddress.tcp_keepalive>`
435
+ // to explicitly configure TCP keepalive settings for individual additional addresses.
436
+ core.v3.TcpKeepalive tcp_keepalive = 37;
437
+ }
438
+
439
+ // A placeholder proto so that users can explicitly configure the standard
440
+ // Listener Manager via the bootstrap's :ref:`listener_manager <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.listener_manager>`.
441
+ // [#not-implemented-hide:]
442
+ message ListenerManager {
443
+ }
444
+
445
+ // A placeholder proto so that users can explicitly configure the standard
446
+ // Validation Listener Manager via the bootstrap's :ref:`listener_manager <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.listener_manager>`.
447
+ // [#not-implemented-hide:]
448
+ message ValidationListenerManager {
449
+ }
450
+
451
+ // A placeholder proto so that users can explicitly configure the API
452
+ // Listener Manager via the bootstrap's :ref:`listener_manager <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.listener_manager>`.
453
+ // [#not-implemented-hide:]
454
+ message ApiListenerManager {
455
+ }