grpc 1.42.0 → 1.45.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Makefile +405 -221
- data/include/grpc/event_engine/event_engine.h +37 -13
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +1 -31
- data/include/grpc/event_engine/memory_allocator.h +27 -11
- data/include/grpc/event_engine/memory_request.h +57 -0
- data/include/grpc/grpc.h +40 -14
- data/include/grpc/grpc_posix.h +20 -19
- data/include/grpc/grpc_security.h +312 -195
- data/include/grpc/grpc_security_constants.h +1 -14
- data/include/grpc/impl/codegen/compression_types.h +0 -2
- data/include/grpc/impl/codegen/grpc_types.h +17 -8
- data/include/grpc/impl/codegen/port_platform.h +7 -3
- data/include/grpc/impl/codegen/slice.h +4 -1
- data/include/grpc/slice.h +0 -11
- data/src/core/ext/filters/client_channel/backend_metric.cc +9 -10
- data/src/core/ext/filters/client_channel/backend_metric.h +4 -3
- data/src/core/ext/filters/client_channel/backup_poller.cc +12 -8
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +5 -5
- data/src/core/ext/filters/client_channel/client_channel.cc +213 -156
- data/src/core/ext/filters/client_channel/client_channel.h +43 -41
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +6 -13
- data/src/core/ext/filters/client_channel/config_selector.h +4 -4
- data/src/core/ext/filters/client_channel/connector.h +1 -1
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +5 -6
- data/src/core/ext/filters/client_channel/dynamic_filters.h +2 -2
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +2 -22
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +3 -15
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +32 -31
- data/src/core/ext/filters/client_channel/health/health_check_client.h +5 -5
- data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +22 -27
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +4 -3
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +6 -5
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +4 -7
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +100 -81
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -7
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +1 -2
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +2 -2
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +15 -15
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +4 -4
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +50 -32
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +28 -19
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +122 -71
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +161 -112
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +62 -61
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +16 -11
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +13 -7
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +55 -99
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds.h +1 -1
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +147 -70
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +5 -3
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +114 -206
- data/src/core/ext/filters/client_channel/lb_policy.cc +15 -14
- data/src/core/ext/filters/client_channel/lb_policy.h +94 -62
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +10 -16
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +261 -122
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +22 -12
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +19 -15
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +31 -50
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +136 -226
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +25 -32
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +122 -115
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +18 -17
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +2 -1
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +84 -68
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +40 -39
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +390 -373
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +8 -11
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +13 -7
- data/src/core/ext/filters/client_channel/retry_filter.cc +236 -169
- data/src/core/ext/filters/client_channel/retry_service_config.cc +16 -18
- data/src/core/ext/filters/client_channel/retry_service_config.h +18 -12
- data/src/core/ext/filters/client_channel/retry_throttle.cc +9 -23
- data/src/core/ext/filters/client_channel/retry_throttle.h +11 -5
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +8 -7
- data/src/core/ext/filters/client_channel/subchannel.cc +49 -56
- data/src/core/ext/filters/client_channel/subchannel.h +7 -7
- data/src/core/ext/filters/client_idle/client_idle_filter.cc +96 -159
- data/src/core/ext/filters/client_idle/idle_filter_state.h +2 -2
- data/src/core/ext/filters/deadline/deadline_filter.cc +15 -14
- data/src/core/ext/filters/deadline/deadline_filter.h +3 -2
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +53 -58
- data/src/core/ext/filters/fault_injection/service_config_parser.cc +11 -13
- data/src/core/ext/filters/fault_injection/service_config_parser.h +10 -4
- data/src/core/ext/filters/http/client/http_client_filter.cc +70 -153
- data/src/core/ext/filters/http/client_authority_filter.cc +28 -87
- data/src/core/ext/filters/http/client_authority_filter.h +23 -5
- data/src/core/ext/filters/http/http_filters_plugin.cc +14 -17
- data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +43 -140
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +15 -27
- data/src/core/ext/filters/http/server/http_server_filter.cc +60 -161
- data/src/core/ext/filters/max_age/max_age_filter.cc +46 -40
- data/src/core/ext/filters/message_size/message_size_filter.cc +27 -35
- data/src/core/ext/filters/message_size/message_size_filter.h +10 -3
- data/src/core/ext/filters/rbac/rbac_filter.cc +162 -0
- data/src/core/ext/filters/rbac/rbac_filter.h +76 -0
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +606 -0
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +75 -0
- data/src/core/ext/filters/server_config_selector/server_config_selector.cc +67 -0
- data/src/core/ext/filters/server_config_selector/server_config_selector.h +71 -0
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +271 -0
- data/src/core/ext/{transport/chttp2/transport/hpack_utils.h → filters/server_config_selector/server_config_selector_filter.h} +9 -7
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +238 -20
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +0 -2
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +283 -106
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +204 -291
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +9 -4
- data/src/core/ext/transport/chttp2/transport/context_list.cc +2 -3
- data/src/core/ext/transport/chttp2/transport/context_list.h +2 -3
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +10 -10
- data/src/core/ext/transport/chttp2/transport/flow_control.h +5 -5
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +0 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +4 -4
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +5 -0
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +365 -240
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +87 -145
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +2 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +74 -149
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +0 -1
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +94 -1
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +2 -24
- data/src/core/ext/transport/chttp2/transport/internal.h +12 -41
- data/src/core/ext/transport/chttp2/transport/parsing.cc +3 -9
- data/src/core/ext/transport/chttp2/transport/writing.cc +62 -128
- data/src/core/ext/transport/inproc/inproc_plugin.cc +0 -4
- data/src/core/ext/transport/inproc/inproc_transport.cc +42 -81
- data/src/core/ext/transport/inproc/inproc_transport.h +1 -4
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +114 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +402 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +119 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +453 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +243 -209
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +799 -574
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +56 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +138 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +62 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +146 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +106 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +93 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +88 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +103 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +466 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +48 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +95 -0
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +19 -0
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +30 -4
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +33 -18
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +143 -116
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +422 -316
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +231 -199
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +788 -570
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +43 -28
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +116 -78
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +308 -271
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +955 -661
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +20 -7
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +34 -22
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +40 -27
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +128 -78
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +290 -0
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +1122 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +72 -53
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +222 -158
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +20 -7
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +34 -22
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +213 -176
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +692 -498
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +62 -45
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +179 -129
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +19 -6
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +26 -18
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +31 -17
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +75 -52
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +58 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +138 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +143 -117
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +450 -328
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +111 -91
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +366 -263
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +21 -8
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +37 -25
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +184 -125
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +676 -344
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +17 -4
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +26 -16
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +27 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +60 -41
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +22 -9
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +40 -24
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +26 -13
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +46 -34
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +21 -8
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +35 -23
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +51 -35
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +114 -84
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +73 -55
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +211 -150
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +70 -53
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +211 -141
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +19 -6
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +29 -19
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +91 -71
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +282 -191
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +97 -78
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +287 -217
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +29 -16
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +63 -41
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +24 -10
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +54 -37
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +53 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +120 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +81 -61
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +245 -184
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +86 -65
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +261 -191
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +123 -103
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +236 -190
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +49 -34
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +143 -111
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +642 -572
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +2038 -1506
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +38 -19
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +108 -63
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +216 -0
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +870 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +44 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +82 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +49 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +95 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +27 -13
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +56 -39
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +52 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +119 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +62 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +203 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +47 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +89 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +69 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +184 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +32 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +42 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +71 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +192 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +54 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +126 -0
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +17 -4
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +30 -22
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +45 -28
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +125 -91
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +51 -36
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +150 -104
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +63 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +165 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +26 -13
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +54 -36
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +254 -223
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +804 -558
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +9 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +6 -3
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +99 -60
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +369 -193
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +41 -26
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +96 -70
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +101 -83
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +267 -192
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +62 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +146 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +15 -2
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +22 -14
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +91 -72
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +298 -217
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +31 -17
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +74 -53
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +73 -56
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +198 -144
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +48 -0
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +101 -0
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +34 -18
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +91 -68
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +74 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +202 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +28 -14
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +65 -46
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +21 -8
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +35 -25
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +20 -7
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +26 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +19 -6
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +26 -18
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +35 -20
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +86 -60
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +31 -17
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +66 -51
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +26 -12
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +57 -42
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +37 -22
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +75 -57
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +50 -31
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +163 -123
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +53 -36
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +158 -112
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +66 -0
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +183 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +9 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +3 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +42 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +136 -0
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +23 -9
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +52 -33
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +30 -15
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +81 -51
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +26 -0
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +41 -0
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +19 -6
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +32 -18
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +51 -0
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +114 -0
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +22 -0
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +8 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +150 -125
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +372 -280
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +152 -126
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +410 -297
- data/src/core/ext/upb-generated/google/api/http.upb.c +43 -28
- data/src/core/ext/upb-generated/google/api/http.upb.h +118 -88
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +46 -0
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +99 -0
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +18 -5
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +33 -21
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +366 -276
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +1089 -763
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +18 -5
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +29 -17
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +15 -2
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +22 -14
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +47 -31
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +81 -63
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +18 -5
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +29 -17
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +57 -36
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +214 -148
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +21 -8
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +37 -25
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +84 -0
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +276 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +32 -18
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +61 -41
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +131 -107
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +397 -284
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +26 -12
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +59 -38
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +22 -8
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +51 -34
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +81 -61
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +272 -202
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +34 -19
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +77 -56
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +75 -13
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +108 -57
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +31 -5
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +34 -17
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +21 -0
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +8 -0
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +31 -5
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +34 -17
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +30 -4
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +33 -18
- data/src/core/ext/upb-generated/validate/validate.upb.c +395 -310
- data/src/core/ext/upb-generated/validate/validate.upb.h +1118 -725
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +110 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +191 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +55 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +87 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +38 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +38 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +64 -17
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +113 -65
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +53 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +81 -0
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +17 -4
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +28 -18
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +30 -16
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +64 -45
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +25 -11
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +32 -24
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +46 -0
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +95 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +22 -9
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +40 -26
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +33 -19
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +74 -53
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +22 -9
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +44 -28
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +36 -21
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +44 -30
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +203 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +726 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +52 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +132 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +65 -0
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +173 -0
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +20 -7
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +34 -22
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +84 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +127 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +16 -61
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +67 -67
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +142 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +10 -8
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +10 -13
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +22 -52
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +46 -46
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +250 -281
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +55 -55
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +18 -24
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +377 -426
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +76 -76
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +16 -18
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +18 -20
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +206 -0
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +17 -32
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +22 -22
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +17 -19
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +87 -133
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +73 -73
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +20 -31
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +16 -19
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +17 -21
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +23 -51
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +43 -43
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +25 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +25 -25
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +16 -19
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +252 -254
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +53 -43
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +14 -16
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +16 -20
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +16 -18
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +20 -22
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +15 -18
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +20 -28
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +21 -33
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +19 -19
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +20 -30
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +16 -18
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +54 -62
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +19 -19
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +25 -39
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +22 -22
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +21 -23
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +17 -21
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +69 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +19 -35
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +25 -25
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +19 -37
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +28 -28
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +190 -0
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +21 -27
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +818 -912
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +160 -160
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +54 -48
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +188 -0
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +85 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +17 -21
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +72 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +99 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +77 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +17 -18
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +19 -29
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +20 -26
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +19 -20
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +137 -173
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +58 -58
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +17 -13
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +171 -157
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +24 -19
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +21 -27
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +23 -34
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +19 -19
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +58 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +16 -18
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +19 -33
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +22 -22
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +18 -22
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +22 -32
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +15 -23
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +17 -21
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +17 -19
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +17 -19
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +17 -19
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +17 -23
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +17 -21
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +16 -21
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +18 -24
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +15 -29
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +22 -22
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +16 -26
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +16 -16
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +12 -10
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +94 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +14 -19
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +13 -19
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +13 -16
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +7 -7
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +154 -0
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +153 -0
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +5 -14
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +5 -10
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +5 -62
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +82 -82
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +5 -10
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +5 -10
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +5 -16
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +5 -10
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +5 -26
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +28 -28
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +6 -11
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +67 -0
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +6 -15
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +10 -10
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +7 -12
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +6 -6
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +1 -1
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +6 -11
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +6 -11
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +8 -57
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +70 -70
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +6 -17
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +13 -13
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +7 -12
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +9 -16
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +6 -13
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +41 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +8 -13
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +8 -15
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +7 -7
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +8 -13
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +4 -4
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +126 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +7 -12
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +4 -4
- data/src/core/ext/xds/certificate_provider_registry.cc +1 -1
- data/src/core/ext/xds/certificate_provider_store.h +1 -1
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +4 -4
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +2 -2
- data/src/core/ext/xds/upb_utils.h +67 -0
- data/src/core/ext/xds/xds_api.cc +162 -3417
- data/src/core/ext/xds/xds_api.h +60 -613
- data/src/core/ext/xds/xds_bootstrap.cc +221 -122
- data/src/core/ext/xds/xds_bootstrap.h +31 -15
- data/src/core/ext/xds/xds_certificate_provider.h +2 -2
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +16 -20
- data/src/core/ext/xds/xds_channel_stack_modifier.h +4 -3
- data/src/core/ext/xds/xds_client.cc +794 -1065
- data/src/core/ext/xds/xds_client.h +109 -149
- data/src/core/ext/xds/xds_client_stats.cc +15 -15
- data/src/core/ext/xds/xds_client_stats.h +5 -4
- data/src/core/ext/xds/xds_cluster.cc +453 -0
- data/src/core/ext/xds/xds_cluster.h +108 -0
- data/src/core/ext/xds/xds_common_types.cc +388 -0
- data/src/core/ext/xds/xds_common_types.h +95 -0
- data/src/core/ext/xds/xds_endpoint.cc +364 -0
- data/src/core/ext/xds/xds_endpoint.h +135 -0
- data/src/core/ext/xds/xds_http_fault_filter.cc +6 -6
- data/src/core/ext/xds/xds_http_fault_filter.h +3 -3
- data/src/core/ext/xds/xds_http_filters.cc +11 -5
- data/src/core/ext/xds/xds_http_filters.h +4 -4
- data/src/core/ext/xds/xds_http_rbac_filter.cc +563 -0
- data/src/core/ext/xds/xds_http_rbac_filter.h +54 -0
- data/src/core/ext/xds/xds_listener.cc +1039 -0
- data/src/core/ext/xds/xds_listener.h +220 -0
- data/src/core/ext/xds/xds_resource_type.cc +33 -0
- data/src/core/ext/xds/xds_resource_type.h +98 -0
- data/src/core/ext/xds/xds_resource_type_impl.h +87 -0
- data/src/core/ext/xds/xds_route_config.cc +985 -0
- data/src/core/ext/xds/xds_route_config.h +215 -0
- data/src/core/ext/xds/xds_routing.cc +250 -0
- data/src/core/ext/xds/xds_routing.h +101 -0
- data/src/core/ext/xds/xds_server_config_fetcher.cc +1061 -286
- data/src/core/lib/address_utils/parse_address.cc +20 -0
- data/src/core/lib/address_utils/parse_address.h +5 -0
- data/src/core/lib/address_utils/sockaddr_utils.cc +33 -36
- data/src/core/lib/address_utils/sockaddr_utils.h +1 -16
- data/src/core/lib/avl/avl.h +389 -88
- data/src/core/lib/backoff/backoff.cc +9 -38
- data/src/core/lib/backoff/backoff.h +11 -11
- data/src/core/lib/channel/call_finalization.h +86 -0
- data/src/core/lib/channel/channel_args.cc +77 -18
- data/src/core/lib/channel/channel_args.h +13 -10
- data/src/core/lib/channel/channel_args_preconditioning.cc +48 -0
- data/src/core/lib/channel/channel_args_preconditioning.h +62 -0
- data/src/core/lib/channel/channel_stack.cc +10 -3
- data/src/core/lib/channel/channel_stack.h +42 -6
- data/src/core/lib/channel/channel_stack_builder.cc +66 -250
- data/src/core/lib/channel/channel_stack_builder.h +95 -147
- data/src/core/lib/channel/channel_trace.cc +3 -6
- data/src/core/lib/channel/channelz.cc +2 -1
- data/src/core/lib/channel/connected_channel.cc +9 -4
- data/src/core/lib/channel/connected_channel.h +1 -1
- data/src/core/lib/channel/context.h +11 -0
- data/src/core/lib/channel/handshaker.cc +1 -1
- data/src/core/lib/channel/handshaker.h +1 -1
- data/src/core/lib/channel/promise_based_filter.cc +669 -0
- data/src/core/lib/channel/promise_based_filter.h +423 -0
- data/src/core/lib/compression/compression.cc +20 -112
- data/src/core/lib/compression/compression_internal.cc +143 -203
- data/src/core/lib/compression/compression_internal.h +64 -69
- data/src/core/lib/compression/message_compress.cc +11 -11
- data/src/core/lib/compression/message_compress.h +2 -2
- data/src/core/lib/config/core_configuration.cc +11 -3
- data/src/core/lib/config/core_configuration.h +50 -0
- data/src/core/lib/debug/trace.h +2 -2
- data/src/core/lib/event_engine/{endpoint_config.cc → channel_args_endpoint_config.cc} +2 -1
- data/src/core/lib/event_engine/{endpoint_config_internal.h → channel_args_endpoint_config.h} +3 -3
- data/src/core/lib/event_engine/default_event_engine_factory.cc +27 -0
- data/src/core/lib/event_engine/event_engine.cc +21 -19
- data/src/core/lib/event_engine/event_engine_factory.h +36 -0
- data/src/core/lib/event_engine/memory_allocator.cc +66 -0
- data/src/core/lib/event_engine/resolved_address.cc +39 -0
- data/src/core/lib/gpr/sync_posix.cc +1 -0
- data/src/core/lib/gpr/time.cc +2 -1
- data/src/core/lib/gpr/tls.h +6 -0
- data/src/core/lib/gpr/useful.h +18 -0
- data/src/core/lib/gprpp/bitset.h +7 -0
- data/src/core/lib/gprpp/capture.h +76 -0
- data/src/core/lib/gprpp/chunked_vector.h +45 -3
- data/src/core/lib/gprpp/cpp_impl_of.h +45 -0
- data/src/core/lib/gprpp/debug_location.h +2 -0
- data/src/core/lib/gprpp/global_config_env.cc +7 -7
- data/src/core/lib/gprpp/global_config_env.h +2 -2
- data/src/core/lib/gprpp/manual_constructor.h +2 -3
- data/src/core/lib/gprpp/orphanable.h +1 -1
- data/src/core/lib/gprpp/ref_counted.h +1 -1
- data/src/core/lib/gprpp/ref_counted_ptr.h +2 -4
- data/src/core/lib/gprpp/status_helper.cc +30 -38
- data/src/core/lib/gprpp/status_helper.h +6 -19
- data/src/core/lib/gprpp/table.h +24 -1
- data/src/core/lib/gprpp/time.cc +186 -0
- data/src/core/lib/gprpp/time.h +292 -0
- data/src/core/lib/http/format_request.cc +27 -23
- data/src/core/lib/http/format_request.h +7 -6
- data/src/core/lib/http/httpcli.cc +310 -238
- data/src/core/lib/http/httpcli.h +183 -88
- data/src/core/lib/http/httpcli_security_connector.cc +62 -73
- data/src/core/lib/http/httpcli_ssl_credentials.h +37 -0
- data/src/core/lib/http/parser.h +1 -1
- data/src/core/lib/iomgr/buffer_list.cc +9 -9
- data/src/core/lib/iomgr/buffer_list.h +18 -18
- data/src/core/lib/iomgr/call_combiner.cc +17 -7
- data/src/core/lib/iomgr/closure.h +29 -9
- data/src/core/lib/iomgr/combiner.cc +25 -3
- data/src/core/lib/iomgr/endpoint.h +0 -1
- data/src/core/lib/iomgr/endpoint_cfstream.cc +7 -24
- data/src/core/lib/iomgr/endpoint_cfstream.h +4 -4
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +9 -11
- data/src/core/lib/iomgr/endpoint_pair_windows.cc +5 -14
- data/src/core/lib/iomgr/error.cc +13 -10
- data/src/core/lib/iomgr/error.h +0 -2
- data/src/core/lib/iomgr/ev_apple.cc +6 -5
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +8 -7
- data/src/core/lib/iomgr/ev_epollex_linux.cc +12 -9
- data/src/core/lib/iomgr/ev_poll_posix.cc +7 -7
- data/src/core/lib/iomgr/ev_posix.cc +3 -3
- data/src/core/lib/iomgr/ev_posix.h +1 -1
- data/src/core/lib/iomgr/event_engine/endpoint.cc +2 -3
- data/src/core/lib/iomgr/event_engine/iomgr.cc +8 -27
- data/src/core/lib/iomgr/event_engine/pollset.cc +2 -3
- data/src/core/lib/iomgr/event_engine/resolved_address_internal.cc +6 -0
- data/src/core/lib/iomgr/event_engine/resolved_address_internal.h +2 -0
- data/src/core/lib/iomgr/event_engine/resolver.cc +68 -49
- data/src/core/lib/iomgr/event_engine/resolver.h +56 -0
- data/src/core/lib/iomgr/event_engine/tcp.cc +11 -8
- data/src/core/lib/iomgr/event_engine/timer.cc +7 -7
- data/src/core/lib/iomgr/exec_ctx.cc +25 -97
- data/src/core/lib/iomgr/exec_ctx.h +18 -34
- data/src/core/lib/iomgr/executor.cc +22 -16
- data/src/core/lib/iomgr/executor.h +1 -1
- data/src/core/lib/iomgr/fork_posix.cc +3 -2
- data/src/core/lib/iomgr/iocp_windows.cc +9 -9
- data/src/core/lib/iomgr/iocp_windows.h +1 -1
- data/src/core/lib/iomgr/iomgr_posix.cc +2 -2
- data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +2 -2
- data/src/core/lib/iomgr/iomgr_windows.cc +2 -2
- data/src/core/lib/iomgr/polling_entity.h +6 -0
- data/src/core/lib/iomgr/pollset.cc +1 -1
- data/src/core/lib/iomgr/pollset.h +4 -4
- data/src/core/lib/iomgr/pollset_windows.cc +2 -2
- data/src/core/lib/iomgr/port.h +6 -9
- data/src/core/lib/iomgr/resolve_address.cc +5 -24
- data/src/core/lib/iomgr/resolve_address.h +47 -44
- data/src/core/lib/iomgr/resolve_address_impl.h +59 -0
- data/src/core/lib/iomgr/resolve_address_posix.cc +83 -67
- data/src/core/lib/iomgr/resolve_address_posix.h +47 -0
- data/src/core/lib/iomgr/resolve_address_windows.cc +93 -74
- data/src/core/lib/iomgr/resolve_address_windows.h +47 -0
- data/src/core/lib/iomgr/resolved_address.h +39 -0
- data/src/core/lib/iomgr/sockaddr_utils_posix.cc +62 -0
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +0 -17
- data/src/core/lib/iomgr/tcp_client.cc +3 -5
- data/src/core/lib/iomgr/tcp_client.h +4 -5
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +2 -10
- data/src/core/lib/iomgr/tcp_client_posix.cc +8 -24
- data/src/core/lib/iomgr/tcp_client_posix.h +3 -4
- data/src/core/lib/iomgr/tcp_client_windows.cc +2 -11
- data/src/core/lib/iomgr/tcp_posix.cc +30 -34
- data/src/core/lib/iomgr/tcp_posix.h +1 -3
- data/src/core/lib/iomgr/tcp_server.cc +4 -6
- data/src/core/lib/iomgr/tcp_server.h +6 -8
- data/src/core/lib/iomgr/tcp_server_posix.cc +18 -22
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +19 -18
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +1 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +1 -0
- data/src/core/lib/iomgr/tcp_server_windows.cc +5 -12
- data/src/core/lib/iomgr/tcp_windows.cc +19 -17
- data/src/core/lib/iomgr/tcp_windows.h +1 -2
- data/src/core/lib/iomgr/timer.cc +2 -2
- data/src/core/lib/iomgr/timer.h +11 -6
- data/src/core/lib/iomgr/timer_generic.cc +96 -77
- data/src/core/lib/iomgr/timer_manager.cc +15 -14
- data/src/core/lib/iomgr/unix_sockets_posix.cc +22 -34
- data/src/core/lib/iomgr/unix_sockets_posix.h +4 -7
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +6 -15
- data/src/core/lib/iomgr/work_serializer.cc +120 -44
- data/src/core/lib/iomgr/work_serializer.h +16 -4
- data/src/core/lib/json/json_reader.cc +83 -35
- data/src/core/lib/json/json_util.cc +5 -5
- data/src/core/lib/json/json_util.h +2 -2
- data/src/core/lib/matchers/matchers.cc +1 -1
- data/src/core/lib/promise/activity.cc +121 -0
- data/src/core/lib/promise/activity.h +540 -0
- data/src/core/lib/promise/arena_promise.h +188 -0
- data/src/core/lib/promise/context.h +86 -0
- data/src/core/lib/promise/detail/basic_seq.h +496 -0
- data/src/core/lib/promise/detail/promise_factory.h +189 -0
- data/src/core/lib/promise/detail/promise_like.h +85 -0
- data/src/core/lib/promise/detail/status.h +49 -0
- data/src/core/lib/promise/detail/switch.h +1455 -0
- data/src/core/lib/promise/exec_ctx_wakeup_scheduler.h +48 -0
- data/src/core/lib/promise/loop.h +134 -0
- data/src/core/lib/promise/map.h +88 -0
- data/src/core/lib/promise/poll.h +66 -0
- data/src/core/lib/promise/promise.h +95 -0
- data/src/core/lib/promise/race.h +84 -0
- data/src/core/lib/promise/seq.h +89 -0
- data/src/core/lib/promise/sleep.cc +74 -0
- data/src/core/lib/promise/sleep.h +66 -0
- data/src/core/lib/promise/try_seq.h +157 -0
- data/src/core/{ext/filters/client_channel → lib/resolver}/resolver.cc +17 -25
- data/src/core/{ext/filters/client_channel → lib/resolver}/resolver.h +43 -44
- data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_factory.h +32 -31
- data/src/core/lib/resolver/resolver_registry.cc +156 -0
- data/src/core/lib/resolver/resolver_registry.h +113 -0
- data/src/core/{ext/filters/client_channel → lib/resolver}/server_address.cc +1 -1
- data/src/core/{ext/filters/client_channel → lib/resolver}/server_address.h +4 -4
- data/src/core/lib/resource_quota/api.cc +108 -0
- data/src/core/lib/resource_quota/api.h +40 -0
- data/src/core/lib/{gprpp → resource_quota}/arena.cc +16 -13
- data/src/core/lib/{gprpp → resource_quota}/arena.h +24 -13
- data/src/core/lib/resource_quota/memory_quota.cc +478 -0
- data/src/core/lib/resource_quota/memory_quota.h +457 -0
- data/src/core/lib/resource_quota/resource_quota.cc +33 -0
- data/src/core/lib/resource_quota/resource_quota.h +58 -0
- data/src/core/lib/resource_quota/thread_quota.cc +43 -0
- data/src/core/lib/resource_quota/thread_quota.h +57 -0
- data/src/core/lib/resource_quota/trace.cc +19 -0
- data/src/core/lib/resource_quota/trace.h +24 -0
- data/src/core/lib/security/authorization/evaluate_args.cc +37 -38
- data/src/core/lib/security/authorization/evaluate_args.h +3 -2
- data/src/core/lib/security/authorization/grpc_authorization_engine.cc +60 -0
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +62 -0
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +109 -0
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +51 -0
- data/src/core/lib/security/authorization/matchers.cc +227 -0
- data/src/core/lib/security/authorization/matchers.h +211 -0
- data/src/core/lib/security/authorization/rbac_policy.cc +442 -0
- data/src/core/lib/security/authorization/rbac_policy.h +171 -0
- data/src/core/lib/security/context/security_context.cc +4 -2
- data/src/core/lib/security/context/security_context.h +1 -1
- data/src/core/lib/security/credentials/alts/alts_credentials.h +6 -0
- data/src/core/lib/security/credentials/call_creds_util.cc +87 -0
- data/src/core/lib/security/credentials/call_creds_util.h +42 -0
- data/src/core/lib/security/credentials/channel_creds_registry.h +97 -0
- data/src/core/lib/security/credentials/channel_creds_registry_init.cc +70 -0
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +17 -81
- data/src/core/lib/security/credentials/composite/composite_credentials.h +21 -9
- data/src/core/lib/security/credentials/credentials.cc +2 -3
- data/src/core/lib/security/credentials/credentials.h +68 -57
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +48 -33
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +1 -0
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +52 -35
- data/src/core/lib/security/credentials/external/external_account_credentials.h +5 -9
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +0 -1
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +33 -14
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +1 -0
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +18 -18
- data/src/core/lib/security/credentials/fake/fake_credentials.h +14 -16
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +17 -16
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +6 -0
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +19 -27
- data/src/core/lib/security/credentials/iam/iam_credentials.h +11 -9
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +13 -7
- data/src/core/lib/security/credentials/jwt/json_token.cc +4 -6
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +28 -44
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +12 -12
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +54 -43
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +1 -1
- data/src/core/lib/security/credentials/local/local_credentials.h +6 -0
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +148 -173
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +52 -33
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +95 -153
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +54 -27
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +1 -10
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +6 -3
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +11 -12
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +7 -8
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.cc +201 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +106 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +33 -87
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +36 -83
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +21 -10
- data/src/core/lib/security/credentials/tls/tls_credentials.h +6 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +28 -33
- data/src/core/lib/security/credentials/xds/xds_credentials.h +6 -1
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +11 -17
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +3 -3
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +7 -16
- data/src/core/lib/security/security_connector/fake/fake_security_connector.h +0 -2
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +8 -18
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +11 -16
- data/src/core/lib/security/security_connector/load_system_roots_linux.cc +1 -2
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +12 -17
- data/src/core/lib/security/security_connector/security_connector.cc +3 -15
- data/src/core/lib/security/security_connector/security_connector.h +16 -21
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +6 -11
- data/src/core/lib/security/security_connector/ssl_utils.cc +38 -32
- data/src/core/lib/security/security_connector/ssl_utils.h +14 -18
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +361 -204
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +70 -47
- data/src/core/lib/security/transport/auth_filters.h +37 -4
- data/src/core/lib/security/transport/client_auth_filter.cc +87 -358
- data/src/core/lib/security/transport/security_handshaker.cc +16 -8
- data/src/core/lib/security/transport/server_auth_filter.cc +41 -35
- data/src/core/lib/service_config/service_config.h +82 -0
- data/src/core/{ext → lib}/service_config/service_config_call_data.h +5 -5
- data/src/core/{ext/service_config/service_config.cc → lib/service_config/service_config_impl.cc} +20 -17
- data/src/core/{ext/service_config/service_config.h → lib/service_config/service_config_impl.h} +16 -18
- data/src/core/{ext → lib}/service_config/service_config_parser.cc +31 -27
- data/src/core/{ext → lib}/service_config/service_config_parser.h +39 -30
- data/src/core/lib/slice/percent_encoding.cc +30 -86
- data/src/core/lib/slice/percent_encoding.h +5 -11
- data/src/core/lib/slice/slice.cc +78 -181
- data/src/core/lib/slice/slice.h +384 -0
- data/src/core/lib/slice/slice_buffer.cc +4 -0
- data/src/core/lib/slice/slice_internal.h +12 -31
- data/src/core/lib/slice/slice_refcount.cc +18 -0
- data/src/core/lib/slice/slice_refcount.h +8 -83
- data/src/core/lib/slice/slice_refcount_base.h +21 -133
- data/src/core/lib/surface/builtins.cc +6 -6
- data/src/core/lib/surface/call.cc +204 -413
- data/src/core/lib/surface/call.h +5 -5
- data/src/core/lib/surface/channel.cc +67 -99
- data/src/core/lib/surface/channel.h +12 -23
- data/src/core/lib/surface/channel_init.cc +1 -1
- data/src/core/lib/surface/channel_init.h +4 -4
- data/src/core/lib/surface/completion_queue.cc +12 -11
- data/src/core/lib/surface/init.cc +78 -10
- data/src/core/lib/surface/init.h +0 -2
- data/src/core/lib/surface/lame_client.cc +26 -19
- data/src/core/lib/surface/server.cc +44 -72
- data/src/core/lib/surface/server.h +13 -14
- data/src/core/lib/surface/validate_metadata.cc +2 -2
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.cc +10 -11
- data/src/core/lib/transport/bdp_estimator.h +2 -2
- data/src/core/lib/transport/byte_stream.cc +4 -0
- data/src/core/lib/transport/error_utils.cc +5 -3
- data/src/core/lib/transport/error_utils.h +2 -1
- data/src/core/lib/transport/metadata_batch.h +1128 -793
- data/src/core/lib/transport/parsed_metadata.cc +37 -0
- data/src/core/lib/transport/parsed_metadata.h +228 -90
- data/src/core/lib/transport/pid_controller.cc +4 -4
- data/src/core/lib/transport/status_conversion.cc +2 -2
- data/src/core/lib/transport/status_conversion.h +1 -1
- data/src/core/lib/transport/timeout_encoding.cc +204 -67
- data/src/core/lib/transport/timeout_encoding.h +40 -10
- data/src/core/lib/transport/transport.cc +7 -27
- data/src/core/lib/transport/transport.h +88 -4
- data/src/core/lib/transport/transport_impl.h +13 -0
- data/src/core/lib/transport/transport_op_string.cc +5 -47
- data/src/core/lib/uri/uri_parser.cc +237 -63
- data/src/core/lib/uri/uri_parser.h +39 -23
- data/src/core/plugin_registry/grpc_plugin_registry.cc +22 -88
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +85 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +28 -23
- data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +9 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +19 -11
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +2 -2
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +1 -1
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +2 -2
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +2 -2
- data/src/core/tsi/local_transport_security.cc +16 -24
- data/src/core/tsi/local_transport_security.h +1 -4
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +141 -0
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.h +81 -0
- data/src/core/tsi/ssl/session_cache/ssl_session.h +2 -4
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +3 -5
- data/src/core/tsi/ssl_transport_security.cc +135 -15
- data/src/core/tsi/ssl_transport_security.h +39 -6
- data/src/ruby/ext/grpc/extconf.rb +10 -3
- data/src/ruby/ext/grpc/rb_channel.c +5 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +26 -34
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +39 -51
- data/src/ruby/ext/grpc/rb_server.c +7 -4
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -1
- data/third_party/abseil-cpp/absl/algorithm/container.h +101 -91
- data/third_party/abseil-cpp/absl/base/attributes.h +64 -31
- data/third_party/abseil-cpp/absl/base/config.h +67 -37
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +1 -26
- data/third_party/abseil-cpp/absl/base/internal/fast_type_id.h +48 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +3 -1
- data/third_party/abseil-cpp/absl/base/internal/spinlock_wait.h +2 -0
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +69 -0
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +4 -4
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +16 -0
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.h +4 -4
- data/third_party/abseil-cpp/absl/base/options.h +1 -1
- data/third_party/abseil-cpp/absl/container/fixed_array.h +0 -5
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +105 -97
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +17 -15
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +18 -102
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +37 -78
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +388 -423
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +3 -2
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +14 -8
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +251 -120
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +11 -1
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +12 -11
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +6 -2
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h +12 -5
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_emscripten-inl.inc +110 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_riscv-inl.inc +234 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +25 -7
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +8 -2
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.cc +21 -3
- data/third_party/abseil-cpp/absl/debugging/stacktrace.cc +2 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize.cc +2 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +14 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_emscripten.inc +72 -0
- data/third_party/abseil-cpp/absl/functional/function_ref.h +4 -1
- data/third_party/abseil-cpp/absl/hash/hash.h +22 -0
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +15 -16
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +88 -37
- data/third_party/abseil-cpp/absl/hash/internal/{wyhash.cc → low_level_hash.cc} +23 -11
- data/third_party/abseil-cpp/absl/hash/internal/{wyhash.h → low_level_hash.h} +14 -12
- data/third_party/abseil-cpp/absl/memory/memory.h +1 -1
- data/third_party/abseil-cpp/absl/meta/type_traits.h +32 -2
- data/third_party/abseil-cpp/absl/numeric/int128.cc +3 -10
- data/third_party/abseil-cpp/absl/numeric/int128.h +146 -73
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +19 -25
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +73 -70
- data/third_party/abseil-cpp/absl/{base → profiling}/internal/exponential_biased.cc +4 -4
- data/third_party/abseil-cpp/absl/{base → profiling}/internal/exponential_biased.h +6 -6
- data/third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h +230 -0
- data/third_party/abseil-cpp/absl/random/bernoulli_distribution.h +200 -0
- data/third_party/abseil-cpp/absl/random/beta_distribution.h +427 -0
- data/third_party/abseil-cpp/absl/random/discrete_distribution.cc +98 -0
- data/third_party/abseil-cpp/absl/random/discrete_distribution.h +247 -0
- data/third_party/abseil-cpp/absl/random/distributions.h +452 -0
- data/third_party/abseil-cpp/absl/random/exponential_distribution.h +165 -0
- data/third_party/abseil-cpp/absl/random/gaussian_distribution.cc +104 -0
- data/third_party/abseil-cpp/absl/random/gaussian_distribution.h +275 -0
- data/third_party/abseil-cpp/absl/random/internal/distribution_caller.h +92 -0
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +268 -0
- data/third_party/abseil-cpp/absl/random/internal/fastmath.h +57 -0
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +144 -0
- data/third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h +245 -0
- data/third_party/abseil-cpp/absl/random/internal/nonsecure_base.h +150 -0
- data/third_party/abseil-cpp/absl/random/internal/pcg_engine.h +308 -0
- data/third_party/abseil-cpp/absl/random/internal/platform.h +171 -0
- data/third_party/abseil-cpp/absl/random/internal/pool_urbg.cc +253 -0
- data/third_party/abseil-cpp/absl/random/internal/pool_urbg.h +131 -0
- data/third_party/abseil-cpp/absl/random/internal/randen.cc +91 -0
- data/third_party/abseil-cpp/absl/random/internal/randen.h +102 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +221 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.h +33 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +239 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +526 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.h +50 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_round_keys.cc +462 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_slow.cc +471 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_slow.h +40 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_traits.h +88 -0
- data/third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h +167 -0
- data/third_party/abseil-cpp/absl/random/internal/seed_material.cc +267 -0
- data/third_party/abseil-cpp/absl/random/internal/seed_material.h +104 -0
- data/third_party/abseil-cpp/absl/random/internal/traits.h +101 -0
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +244 -0
- data/third_party/abseil-cpp/absl/random/internal/wide_multiply.h +111 -0
- data/third_party/abseil-cpp/absl/random/log_uniform_int_distribution.h +257 -0
- data/third_party/abseil-cpp/absl/random/poisson_distribution.h +258 -0
- data/third_party/abseil-cpp/absl/random/random.h +189 -0
- data/third_party/abseil-cpp/absl/random/seed_gen_exception.cc +46 -0
- data/third_party/abseil-cpp/absl/random/seed_gen_exception.h +55 -0
- data/third_party/abseil-cpp/absl/random/seed_sequences.cc +29 -0
- data/third_party/abseil-cpp/absl/random/seed_sequences.h +110 -0
- data/third_party/abseil-cpp/absl/random/uniform_int_distribution.h +275 -0
- data/third_party/abseil-cpp/absl/random/uniform_real_distribution.h +202 -0
- data/third_party/abseil-cpp/absl/random/zipf_distribution.h +271 -0
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +5 -5
- data/third_party/abseil-cpp/absl/status/status.cc +9 -17
- data/third_party/abseil-cpp/absl/status/status.h +19 -15
- data/third_party/abseil-cpp/absl/status/statusor.cc +34 -2
- data/third_party/abseil-cpp/absl/status/statusor.h +31 -21
- data/third_party/abseil-cpp/absl/strings/charconv.cc +3 -3
- data/third_party/abseil-cpp/absl/strings/charconv.h +3 -2
- data/third_party/abseil-cpp/absl/strings/cord.cc +453 -359
- data/third_party/abseil-cpp/absl/strings/cord.h +197 -70
- data/third_party/abseil-cpp/absl/strings/internal/charconv_parse.cc +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +6 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +140 -63
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.cc +1128 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +939 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_navigator.cc +185 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_navigator.h +265 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_reader.cc +68 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree_reader.h +211 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc +129 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.h +50 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +7 -7
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +55 -181
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +42 -24
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring_reader.h +4 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.cc +96 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_functions.h +85 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +139 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.h +131 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +445 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.h +298 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_statistics.h +87 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_update_scope.h +71 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_update_tracker.h +121 -0
- data/third_party/abseil-cpp/absl/strings/internal/resize_uninitialized.h +48 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +3 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.cc +6 -6
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +36 -18
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.cc +62 -73
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +24 -16
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +35 -35
- data/third_party/abseil-cpp/absl/strings/numbers.cc +1 -1
- data/third_party/abseil-cpp/absl/strings/numbers.h +34 -0
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +4 -4
- data/third_party/abseil-cpp/absl/strings/str_format.h +1 -2
- data/third_party/abseil-cpp/absl/strings/string_view.cc +16 -21
- data/third_party/abseil-cpp/absl/strings/string_view.h +120 -39
- data/third_party/abseil-cpp/absl/strings/substitute.cc +2 -1
- data/third_party/abseil-cpp/absl/strings/substitute.h +99 -74
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.cc +25 -15
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.h +5 -3
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +1 -1
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +3 -3
- data/third_party/abseil-cpp/absl/time/civil_time.cc +1 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h +93 -20
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.h +2 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +83 -21
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +49 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +2 -3
- data/third_party/abseil-cpp/absl/time/time.h +67 -36
- data/third_party/abseil-cpp/absl/types/bad_optional_access.h +1 -1
- data/third_party/abseil-cpp/absl/types/bad_variant_access.h +2 -2
- data/third_party/abseil-cpp/absl/types/span.h +3 -3
- data/third_party/boringssl-with-bazel/err_data.c +681 -677
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bitstr.c +19 -11
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_object.c +41 -30
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +59 -47
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn_pack.c +24 -28
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_int.c +5 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +28 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +48 -272
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_typ.c +8 -6
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +13 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +3 -1
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +21 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_asn1.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +12 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +7 -7
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +18 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7.c +29 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/pool/internal.h +5 -1
- data/third_party/boringssl-with-bazel/src/crypto/pool/pool.c +59 -23
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +2 -18
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +8 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +216 -11
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_cache.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_data.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_lib.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_map.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_node.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_tree.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +1 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +21 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +971 -253
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1t.h +3 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +0 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/base64.h +8 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +13 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +4 -12
- data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +27 -41
- data/third_party/boringssl-with-bazel/src/include/openssl/ec_key.h +12 -27
- data/third_party/boringssl-with-bazel/src/include/openssl/ecdsa.h +8 -10
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +29 -55
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs7.h +12 -13
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs8.h +6 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/pool.h +7 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/rsa.h +24 -28
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +29 -11
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +12 -43
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +4 -3
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +3 -3
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +4 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +4 -0
- data/third_party/cares/cares/{ares.h → include/ares.h} +73 -1
- data/third_party/cares/cares/{ares_dns.h → include/ares_dns.h} +9 -0
- data/third_party/cares/cares/{ares_rules.h → include/ares_rules.h} +0 -0
- data/third_party/cares/cares/{ares_version.h → include/ares_version.h} +3 -3
- data/third_party/cares/cares/{ares__close_sockets.c → src/lib/ares__close_sockets.c} +2 -2
- data/third_party/cares/cares/{ares__get_hostent.c → src/lib/ares__get_hostent.c} +1 -2
- data/third_party/cares/cares/src/lib/ares__parse_into_addrinfo.c +260 -0
- data/third_party/cares/cares/{ares__read_line.c → src/lib/ares__read_line.c} +0 -0
- data/third_party/cares/cares/src/lib/ares__readaddrinfo.c +264 -0
- data/third_party/cares/cares/src/lib/ares__sortaddrinfo.c +499 -0
- data/third_party/cares/cares/{ares__timeval.c → src/lib/ares__timeval.c} +0 -0
- data/third_party/cares/cares/src/lib/ares_android.c +444 -0
- data/third_party/cares/cares/src/lib/ares_android.h +27 -0
- data/third_party/cares/cares/{ares_cancel.c → src/lib/ares_cancel.c} +0 -0
- data/third_party/cares/cares/{ares_create_query.c → src/lib/ares_create_query.c} +8 -17
- data/third_party/cares/cares/{ares_data.c → src/lib/ares_data.c} +18 -0
- data/third_party/cares/cares/{ares_data.h → src/lib/ares_data.h} +2 -0
- data/third_party/cares/cares/{ares_destroy.c → src/lib/ares_destroy.c} +0 -0
- data/third_party/cares/cares/{ares_expand_name.c → src/lib/ares_expand_name.c} +114 -23
- data/third_party/cares/cares/{ares_expand_string.c → src/lib/ares_expand_string.c} +2 -5
- data/third_party/cares/cares/{ares_fds.c → src/lib/ares_fds.c} +0 -0
- data/third_party/cares/cares/{ares_free_hostent.c → src/lib/ares_free_hostent.c} +6 -4
- data/third_party/cares/cares/{ares_free_string.c → src/lib/ares_free_string.c} +0 -0
- data/third_party/cares/cares/src/lib/ares_freeaddrinfo.c +59 -0
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +772 -0
- data/third_party/cares/cares/{ares_getenv.c → src/lib/ares_getenv.c} +0 -2
- data/third_party/cares/cares/{ares_getenv.h → src/lib/ares_getenv.h} +0 -0
- data/third_party/cares/cares/{ares_gethostbyaddr.c → src/lib/ares_gethostbyaddr.c} +2 -9
- data/third_party/cares/cares/{ares_gethostbyname.c → src/lib/ares_gethostbyname.c} +25 -20
- data/third_party/cares/cares/{ares_getnameinfo.c → src/lib/ares_getnameinfo.c} +4 -10
- data/third_party/cares/cares/{ares_getsock.c → src/lib/ares_getsock.c} +0 -0
- data/third_party/cares/cares/{ares_inet_net_pton.h → src/lib/ares_inet_net_pton.h} +0 -0
- data/third_party/cares/cares/{ares_init.c → src/lib/ares_init.c} +79 -40
- data/third_party/cares/cares/{ares_iphlpapi.h → src/lib/ares_iphlpapi.h} +0 -0
- data/third_party/cares/cares/{ares_ipv6.h → src/lib/ares_ipv6.h} +7 -0
- data/third_party/cares/cares/{ares_library_init.c → src/lib/ares_library_init.c} +7 -2
- data/third_party/cares/cares/{ares_library_init.h → src/lib/ares_library_init.h} +1 -1
- data/third_party/cares/cares/{ares_llist.c → src/lib/ares_llist.c} +0 -0
- data/third_party/cares/cares/{ares_llist.h → src/lib/ares_llist.h} +0 -0
- data/third_party/cares/cares/{ares_mkquery.c → src/lib/ares_mkquery.c} +0 -0
- data/third_party/cares/cares/src/lib/ares_nameser.h +482 -0
- data/third_party/cares/cares/{ares_nowarn.c → src/lib/ares_nowarn.c} +0 -0
- data/third_party/cares/cares/{ares_nowarn.h → src/lib/ares_nowarn.h} +0 -0
- data/third_party/cares/cares/{ares_options.c → src/lib/ares_options.c} +0 -0
- data/third_party/cares/cares/src/lib/ares_parse_a_reply.c +209 -0
- data/third_party/cares/cares/src/lib/ares_parse_aaaa_reply.c +212 -0
- data/third_party/cares/cares/src/lib/ares_parse_caa_reply.c +199 -0
- data/third_party/cares/cares/{ares_parse_mx_reply.c → src/lib/ares_parse_mx_reply.c} +2 -8
- data/third_party/cares/cares/{ares_parse_naptr_reply.c → src/lib/ares_parse_naptr_reply.c} +2 -13
- data/third_party/cares/cares/{ares_parse_ns_reply.c → src/lib/ares_parse_ns_reply.c} +5 -11
- data/third_party/cares/cares/{ares_parse_ptr_reply.c → src/lib/ares_parse_ptr_reply.c} +53 -46
- data/third_party/cares/cares/src/lib/ares_parse_soa_reply.c +179 -0
- data/third_party/cares/cares/{ares_parse_srv_reply.c → src/lib/ares_parse_srv_reply.c} +2 -13
- data/third_party/cares/cares/{ares_parse_txt_reply.c → src/lib/ares_parse_txt_reply.c} +3 -9
- data/third_party/cares/cares/{ares_platform.c → src/lib/ares_platform.c} +0 -0
- data/third_party/cares/cares/{ares_platform.h → src/lib/ares_platform.h} +0 -0
- data/third_party/cares/cares/{ares_private.h → src/lib/ares_private.h} +52 -11
- data/third_party/cares/cares/{ares_process.c → src/lib/ares_process.c} +127 -52
- data/third_party/cares/cares/{ares_query.c → src/lib/ares_query.c} +3 -9
- data/third_party/cares/cares/{ares_search.c → src/lib/ares_search.c} +5 -7
- data/third_party/cares/cares/{ares_send.c → src/lib/ares_send.c} +2 -8
- data/third_party/cares/cares/{ares_setup.h → src/lib/ares_setup.h} +4 -1
- data/third_party/cares/cares/{ares_strcasecmp.c → src/lib/ares_strcasecmp.c} +0 -0
- data/third_party/cares/cares/{ares_strcasecmp.h → src/lib/ares_strcasecmp.h} +0 -0
- data/third_party/cares/cares/{ares_strdup.c → src/lib/ares_strdup.c} +0 -0
- data/third_party/cares/cares/{ares_strdup.h → src/lib/ares_strdup.h} +0 -0
- data/third_party/cares/cares/{ares_strerror.c → src/lib/ares_strerror.c} +0 -0
- data/third_party/cares/cares/{ares_strsplit.c → src/lib/ares_strsplit.c} +4 -0
- data/third_party/cares/cares/{ares_strsplit.h → src/lib/ares_strsplit.h} +0 -0
- data/third_party/cares/cares/{ares_timeout.c → src/lib/ares_timeout.c} +0 -0
- data/third_party/cares/cares/{ares_version.c → src/lib/ares_version.c} +0 -0
- data/third_party/cares/cares/{ares_writev.c → src/lib/ares_writev.c} +0 -0
- data/third_party/cares/cares/src/lib/ares_writev.h +36 -0
- data/third_party/cares/cares/{bitncmp.c → src/lib/bitncmp.c} +0 -0
- data/third_party/cares/cares/{bitncmp.h → src/lib/bitncmp.h} +0 -0
- data/third_party/cares/cares/src/lib/config-dos.h +115 -0
- data/third_party/cares/cares/{config-win32.h → src/lib/config-win32.h} +0 -0
- data/third_party/cares/cares/{inet_net_pton.c → src/lib/inet_net_pton.c} +2 -8
- data/third_party/cares/cares/{inet_ntop.c → src/lib/inet_ntop.c} +2 -8
- data/third_party/cares/cares/{setup_once.h → src/lib/setup_once.h} +0 -0
- data/third_party/cares/cares/{windows_port.c → src/lib/windows_port.c} +0 -0
- data/third_party/upb/third_party/utf8_range/naive.c +92 -0
- data/third_party/upb/third_party/utf8_range/range2-neon.c +157 -0
- data/third_party/upb/third_party/utf8_range/range2-sse.c +170 -0
- data/third_party/upb/third_party/utf8_range/utf8_range.h +9 -0
- data/third_party/upb/upb/decode.c +716 -378
- data/third_party/upb/upb/decode.h +43 -17
- data/third_party/upb/upb/decode_fast.c +303 -301
- data/third_party/upb/upb/decode_fast.h +18 -18
- data/third_party/upb/upb/decode_internal.h +73 -55
- data/third_party/upb/upb/def.c +2009 -979
- data/third_party/upb/upb/def.h +321 -258
- data/third_party/upb/upb/def.hpp +139 -169
- data/third_party/upb/upb/encode.c +261 -174
- data/third_party/upb/upb/encode.h +15 -17
- data/third_party/upb/upb/msg.c +154 -121
- data/third_party/upb/upb/msg.h +40 -33
- data/third_party/upb/upb/msg_internal.h +381 -250
- data/third_party/upb/upb/reflection.c +292 -212
- data/third_party/upb/upb/reflection.h +91 -67
- data/third_party/upb/upb/reflection.hpp +6 -6
- data/third_party/upb/upb/table.c +222 -142
- data/third_party/upb/upb/table_internal.h +128 -96
- data/third_party/upb/upb/text_encode.c +114 -91
- data/third_party/upb/upb/text_encode.h +10 -10
- data/third_party/upb/upb/upb.c +118 -71
- data/third_party/upb/upb/upb.h +120 -144
- data/third_party/upb/upb/upb.hpp +31 -28
- data/third_party/upb/upb/upb_internal.h +21 -11
- data/third_party/xxhash/xxhash.h +607 -352
- metadata +476 -213
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +0 -44
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +0 -83
- data/src/core/ext/filters/client_channel/resolver_registry.cc +0 -195
- data/src/core/ext/filters/client_channel/resolver_registry.h +0 -89
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +0 -119
- data/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc +0 -95
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +0 -189
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +0 -53
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +0 -83
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +0 -125
- data/src/core/ext/transport/chttp2/transport/chttp2_plugin.cc +0 -37
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_index.h +0 -107
- data/src/core/ext/transport/chttp2/transport/hpack_utils.cc +0 -46
- data/src/core/ext/transport/chttp2/transport/popularity_count.h +0 -60
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.h +0 -62
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.h +0 -62
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.h +0 -62
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.h +0 -62
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.c +0 -27
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.h +0 -62
- data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.c +0 -72
- data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.c +0 -73
- data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.c +0 -72
- data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.c +0 -80
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.h +0 -35
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.c +0 -74
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.h +0 -35
- data/src/core/lib/avl/avl.cc +0 -306
- data/src/core/lib/compression/algorithm_metadata.h +0 -62
- data/src/core/lib/compression/compression_args.cc +0 -138
- data/src/core/lib/compression/compression_args.h +0 -56
- data/src/core/lib/compression/stream_compression.cc +0 -81
- data/src/core/lib/compression/stream_compression.h +0 -117
- data/src/core/lib/compression/stream_compression_gzip.cc +0 -231
- data/src/core/lib/compression/stream_compression_gzip.h +0 -28
- data/src/core/lib/compression/stream_compression_identity.cc +0 -91
- data/src/core/lib/compression/stream_compression_identity.h +0 -29
- data/src/core/lib/gprpp/match.h +0 -73
- data/src/core/lib/gprpp/overload.h +0 -59
- data/src/core/lib/iomgr/event_engine/iomgr.h +0 -42
- data/src/core/lib/iomgr/iomgr_custom.cc +0 -79
- data/src/core/lib/iomgr/iomgr_custom.h +0 -49
- data/src/core/lib/iomgr/pollset_custom.cc +0 -105
- data/src/core/lib/iomgr/pollset_custom.h +0 -37
- data/src/core/lib/iomgr/pollset_set_custom.cc +0 -47
- data/src/core/lib/iomgr/pollset_set_custom.h +0 -26
- data/src/core/lib/iomgr/resolve_address_custom.cc +0 -169
- data/src/core/lib/iomgr/resolve_address_custom.h +0 -44
- data/src/core/lib/iomgr/resource_quota.cc +0 -1106
- data/src/core/lib/iomgr/resource_quota.h +0 -226
- data/src/core/lib/iomgr/tcp_client_custom.cc +0 -152
- data/src/core/lib/iomgr/tcp_custom.cc +0 -377
- data/src/core/lib/iomgr/tcp_custom.h +0 -86
- data/src/core/lib/iomgr/tcp_server_custom.cc +0 -467
- data/src/core/lib/iomgr/timer_custom.cc +0 -96
- data/src/core/lib/iomgr/timer_custom.h +0 -43
- data/src/core/lib/security/authorization/sdk_server_authz_filter.cc +0 -171
- data/src/core/lib/security/authorization/sdk_server_authz_filter.h +0 -67
- data/src/core/lib/security/credentials/credentials_metadata.cc +0 -61
- data/src/core/lib/slice/slice_intern.cc +0 -367
- data/src/core/lib/slice/slice_utils.h +0 -200
- data/src/core/lib/slice/static_slice.cc +0 -529
- data/src/core/lib/slice/static_slice.h +0 -331
- data/src/core/lib/surface/init_secure.cc +0 -103
- data/src/core/lib/transport/metadata.cc +0 -714
- data/src/core/lib/transport/metadata.h +0 -449
- data/src/core/lib/transport/metadata_batch.cc +0 -94
- data/src/core/lib/transport/static_metadata.cc +0 -1117
- data/src/core/lib/transport/static_metadata.h +0 -340
- data/src/core/lib/transport/status_metadata.cc +0 -63
- data/src/core/lib/transport/status_metadata.h +0 -48
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_enum.c +0 -93
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_int.h +0 -217
- data/third_party/cares/cares/ares_getopt.c +0 -122
- data/third_party/cares/cares/ares_getopt.h +0 -53
- data/third_party/cares/cares/ares_parse_a_reply.c +0 -264
- data/third_party/cares/cares/ares_parse_aaaa_reply.c +0 -264
- data/third_party/cares/cares/ares_parse_soa_reply.c +0 -133
@@ -0,0 +1,1039 @@
|
|
1
|
+
//
|
2
|
+
// Copyright 2018 gRPC authors.
|
3
|
+
//
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
// you may not use this file except in compliance with the License.
|
6
|
+
// You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
// See the License for the specific language governing permissions and
|
14
|
+
// limitations under the License.
|
15
|
+
//
|
16
|
+
|
17
|
+
#include <grpc/support/port_platform.h>
|
18
|
+
|
19
|
+
#include "src/core/ext/xds/xds_listener.h"
|
20
|
+
|
21
|
+
#include "absl/strings/str_cat.h"
|
22
|
+
#include "absl/strings/str_format.h"
|
23
|
+
#include "absl/strings/str_join.h"
|
24
|
+
#include "absl/strings/str_split.h"
|
25
|
+
#include "envoy/config/core/v3/address.upb.h"
|
26
|
+
#include "envoy/config/core/v3/base.upb.h"
|
27
|
+
#include "envoy/config/core/v3/config_source.upb.h"
|
28
|
+
#include "envoy/config/core/v3/protocol.upb.h"
|
29
|
+
#include "envoy/config/listener/v3/api_listener.upb.h"
|
30
|
+
#include "envoy/config/listener/v3/listener.upb.h"
|
31
|
+
#include "envoy/config/listener/v3/listener.upbdefs.h"
|
32
|
+
#include "envoy/config/listener/v3/listener_components.upb.h"
|
33
|
+
#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h"
|
34
|
+
#include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h"
|
35
|
+
#include "google/protobuf/wrappers.upb.h"
|
36
|
+
#include "upb/text_encode.h"
|
37
|
+
#include "upb/upb.h"
|
38
|
+
#include "upb/upb.hpp"
|
39
|
+
|
40
|
+
#include "src/core/ext/xds/xds_common_types.h"
|
41
|
+
#include "src/core/lib/address_utils/parse_address.h"
|
42
|
+
#include "src/core/lib/address_utils/sockaddr_utils.h"
|
43
|
+
#include "src/core/lib/gprpp/host_port.h"
|
44
|
+
#include "src/core/lib/iomgr/sockaddr.h"
|
45
|
+
|
46
|
+
namespace grpc_core {
|
47
|
+
|
48
|
+
//
|
49
|
+
// XdsListenerResource::DownstreamTlsContext
|
50
|
+
//
|
51
|
+
|
52
|
+
std::string XdsListenerResource::DownstreamTlsContext::ToString() const {
|
53
|
+
return absl::StrFormat("common_tls_context=%s, require_client_certificate=%s",
|
54
|
+
common_tls_context.ToString(),
|
55
|
+
require_client_certificate ? "true" : "false");
|
56
|
+
}
|
57
|
+
|
58
|
+
bool XdsListenerResource::DownstreamTlsContext::Empty() const {
|
59
|
+
return common_tls_context.Empty();
|
60
|
+
}
|
61
|
+
|
62
|
+
//
|
63
|
+
// XdsListenerResource::HttpConnectionManager
|
64
|
+
//
|
65
|
+
|
66
|
+
std::string XdsListenerResource::HttpConnectionManager::ToString() const {
|
67
|
+
absl::InlinedVector<std::string, 4> contents;
|
68
|
+
contents.push_back(absl::StrFormat(
|
69
|
+
"route_config_name=%s",
|
70
|
+
!route_config_name.empty() ? route_config_name.c_str() : "<inlined>"));
|
71
|
+
contents.push_back(absl::StrFormat("http_max_stream_duration=%s",
|
72
|
+
http_max_stream_duration.ToString()));
|
73
|
+
if (rds_update.has_value()) {
|
74
|
+
contents.push_back(
|
75
|
+
absl::StrFormat("rds_update=%s", rds_update->ToString()));
|
76
|
+
}
|
77
|
+
if (!http_filters.empty()) {
|
78
|
+
std::vector<std::string> filter_strings;
|
79
|
+
for (const auto& http_filter : http_filters) {
|
80
|
+
filter_strings.push_back(http_filter.ToString());
|
81
|
+
}
|
82
|
+
contents.push_back(absl::StrCat("http_filters=[",
|
83
|
+
absl::StrJoin(filter_strings, ", "), "]"));
|
84
|
+
}
|
85
|
+
return absl::StrCat("{", absl::StrJoin(contents, ", "), "}");
|
86
|
+
}
|
87
|
+
|
88
|
+
//
|
89
|
+
// XdsListenerResource::HttpFilter
|
90
|
+
//
|
91
|
+
|
92
|
+
std::string XdsListenerResource::HttpConnectionManager::HttpFilter::ToString()
|
93
|
+
const {
|
94
|
+
return absl::StrCat("{name=", name, ", config=", config.ToString(), "}");
|
95
|
+
}
|
96
|
+
|
97
|
+
//
|
98
|
+
// XdsListenerResource::FilterChainData
|
99
|
+
//
|
100
|
+
|
101
|
+
std::string XdsListenerResource::FilterChainData::ToString() const {
|
102
|
+
return absl::StrCat(
|
103
|
+
"{downstream_tls_context=", downstream_tls_context.ToString(),
|
104
|
+
" http_connection_manager=", http_connection_manager.ToString(), "}");
|
105
|
+
}
|
106
|
+
|
107
|
+
//
|
108
|
+
// XdsListenerResource::FilterChainMap::CidrRange
|
109
|
+
//
|
110
|
+
|
111
|
+
std::string XdsListenerResource::FilterChainMap::CidrRange::ToString() const {
|
112
|
+
return absl::StrCat(
|
113
|
+
"{address_prefix=", grpc_sockaddr_to_string(&address, false),
|
114
|
+
", prefix_len=", prefix_len, "}");
|
115
|
+
}
|
116
|
+
|
117
|
+
//
|
118
|
+
// FilterChain
|
119
|
+
//
|
120
|
+
|
121
|
+
struct FilterChain {
|
122
|
+
struct FilterChainMatch {
|
123
|
+
uint32_t destination_port = 0;
|
124
|
+
std::vector<XdsListenerResource::FilterChainMap::CidrRange> prefix_ranges;
|
125
|
+
XdsListenerResource::FilterChainMap::ConnectionSourceType source_type =
|
126
|
+
XdsListenerResource::FilterChainMap::ConnectionSourceType::kAny;
|
127
|
+
std::vector<XdsListenerResource::FilterChainMap::CidrRange>
|
128
|
+
source_prefix_ranges;
|
129
|
+
std::vector<uint32_t> source_ports;
|
130
|
+
std::vector<std::string> server_names;
|
131
|
+
std::string transport_protocol;
|
132
|
+
std::vector<std::string> application_protocols;
|
133
|
+
|
134
|
+
std::string ToString() const;
|
135
|
+
} filter_chain_match;
|
136
|
+
|
137
|
+
std::shared_ptr<XdsListenerResource::FilterChainData> filter_chain_data;
|
138
|
+
};
|
139
|
+
|
140
|
+
std::string FilterChain::FilterChainMatch::ToString() const {
|
141
|
+
absl::InlinedVector<std::string, 8> contents;
|
142
|
+
if (destination_port != 0) {
|
143
|
+
contents.push_back(absl::StrCat("destination_port=", destination_port));
|
144
|
+
}
|
145
|
+
if (!prefix_ranges.empty()) {
|
146
|
+
std::vector<std::string> prefix_ranges_content;
|
147
|
+
for (const auto& range : prefix_ranges) {
|
148
|
+
prefix_ranges_content.push_back(range.ToString());
|
149
|
+
}
|
150
|
+
contents.push_back(absl::StrCat(
|
151
|
+
"prefix_ranges={", absl::StrJoin(prefix_ranges_content, ", "), "}"));
|
152
|
+
}
|
153
|
+
if (source_type == XdsListenerResource::FilterChainMap::ConnectionSourceType::
|
154
|
+
kSameIpOrLoopback) {
|
155
|
+
contents.push_back("source_type=SAME_IP_OR_LOOPBACK");
|
156
|
+
} else if (source_type == XdsListenerResource::FilterChainMap::
|
157
|
+
ConnectionSourceType::kExternal) {
|
158
|
+
contents.push_back("source_type=EXTERNAL");
|
159
|
+
}
|
160
|
+
if (!source_prefix_ranges.empty()) {
|
161
|
+
std::vector<std::string> source_prefix_ranges_content;
|
162
|
+
for (const auto& range : source_prefix_ranges) {
|
163
|
+
source_prefix_ranges_content.push_back(range.ToString());
|
164
|
+
}
|
165
|
+
contents.push_back(
|
166
|
+
absl::StrCat("source_prefix_ranges={",
|
167
|
+
absl::StrJoin(source_prefix_ranges_content, ", "), "}"));
|
168
|
+
}
|
169
|
+
if (!source_ports.empty()) {
|
170
|
+
contents.push_back(
|
171
|
+
absl::StrCat("source_ports={", absl::StrJoin(source_ports, ", "), "}"));
|
172
|
+
}
|
173
|
+
if (!server_names.empty()) {
|
174
|
+
contents.push_back(
|
175
|
+
absl::StrCat("server_names={", absl::StrJoin(server_names, ", "), "}"));
|
176
|
+
}
|
177
|
+
if (!transport_protocol.empty()) {
|
178
|
+
contents.push_back(absl::StrCat("transport_protocol=", transport_protocol));
|
179
|
+
}
|
180
|
+
if (!application_protocols.empty()) {
|
181
|
+
contents.push_back(absl::StrCat("application_protocols={",
|
182
|
+
absl::StrJoin(application_protocols, ", "),
|
183
|
+
"}"));
|
184
|
+
}
|
185
|
+
return absl::StrCat("{", absl::StrJoin(contents, ", "), "}");
|
186
|
+
}
|
187
|
+
|
188
|
+
//
|
189
|
+
// XdsListenerResource::FilterChainMap
|
190
|
+
//
|
191
|
+
|
192
|
+
std::string XdsListenerResource::FilterChainMap::ToString() const {
|
193
|
+
std::vector<std::string> contents;
|
194
|
+
for (const auto& destination_ip : destination_ip_vector) {
|
195
|
+
for (int source_type = 0; source_type < 3; ++source_type) {
|
196
|
+
for (const auto& source_ip :
|
197
|
+
destination_ip.source_types_array[source_type]) {
|
198
|
+
for (const auto& source_port_pair : source_ip.ports_map) {
|
199
|
+
FilterChain::FilterChainMatch filter_chain_match;
|
200
|
+
if (destination_ip.prefix_range.has_value()) {
|
201
|
+
filter_chain_match.prefix_ranges.push_back(
|
202
|
+
*destination_ip.prefix_range);
|
203
|
+
}
|
204
|
+
filter_chain_match.source_type = static_cast<
|
205
|
+
XdsListenerResource::FilterChainMap::ConnectionSourceType>(
|
206
|
+
source_type);
|
207
|
+
if (source_ip.prefix_range.has_value()) {
|
208
|
+
filter_chain_match.source_prefix_ranges.push_back(
|
209
|
+
*source_ip.prefix_range);
|
210
|
+
}
|
211
|
+
if (source_port_pair.first != 0) {
|
212
|
+
filter_chain_match.source_ports.push_back(source_port_pair.first);
|
213
|
+
}
|
214
|
+
contents.push_back(absl::StrCat(
|
215
|
+
"{filter_chain_match=", filter_chain_match.ToString(),
|
216
|
+
", filter_chain=", source_port_pair.second.data->ToString(),
|
217
|
+
"}"));
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
return absl::StrCat("{", absl::StrJoin(contents, ", "), "}");
|
223
|
+
}
|
224
|
+
|
225
|
+
//
|
226
|
+
// XdsListenerResource
|
227
|
+
//
|
228
|
+
|
229
|
+
std::string XdsListenerResource::ToString() const {
|
230
|
+
absl::InlinedVector<std::string, 4> contents;
|
231
|
+
if (type == ListenerType::kTcpListener) {
|
232
|
+
contents.push_back(absl::StrCat("address=", address));
|
233
|
+
contents.push_back(
|
234
|
+
absl::StrCat("filter_chain_map=", filter_chain_map.ToString()));
|
235
|
+
if (default_filter_chain.has_value()) {
|
236
|
+
contents.push_back(absl::StrCat("default_filter_chain=",
|
237
|
+
default_filter_chain->ToString()));
|
238
|
+
}
|
239
|
+
} else if (type == ListenerType::kHttpApiListener) {
|
240
|
+
contents.push_back(absl::StrFormat("http_connection_manager=%s",
|
241
|
+
http_connection_manager.ToString()));
|
242
|
+
}
|
243
|
+
return absl::StrCat("{", absl::StrJoin(contents, ", "), "}");
|
244
|
+
}
|
245
|
+
|
246
|
+
//
|
247
|
+
// XdsListenerResourceType
|
248
|
+
//
|
249
|
+
|
250
|
+
namespace {
|
251
|
+
|
252
|
+
void MaybeLogHttpConnectionManager(
|
253
|
+
const XdsEncodingContext& context,
|
254
|
+
const envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager*
|
255
|
+
http_connection_manager_config) {
|
256
|
+
if (GRPC_TRACE_FLAG_ENABLED(*context.tracer) &&
|
257
|
+
gpr_should_log(GPR_LOG_SEVERITY_DEBUG)) {
|
258
|
+
const upb_MessageDef* msg_type =
|
259
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_getmsgdef(
|
260
|
+
context.symtab);
|
261
|
+
char buf[10240];
|
262
|
+
upb_TextEncode(http_connection_manager_config, msg_type, nullptr, 0, buf,
|
263
|
+
sizeof(buf));
|
264
|
+
gpr_log(GPR_DEBUG, "[xds_client %p] HttpConnectionManager: %s",
|
265
|
+
context.client, buf);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
grpc_error_handle HttpConnectionManagerParse(
|
270
|
+
bool is_client, const XdsEncodingContext& context,
|
271
|
+
const envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager*
|
272
|
+
http_connection_manager_proto,
|
273
|
+
bool is_v2,
|
274
|
+
XdsListenerResource::HttpConnectionManager* http_connection_manager) {
|
275
|
+
MaybeLogHttpConnectionManager(context, http_connection_manager_proto);
|
276
|
+
// NACK a non-zero `xff_num_trusted_hops` and a `non-empty
|
277
|
+
// original_ip_detection_extensions` as mentioned in
|
278
|
+
// https://github.com/grpc/proposal/blob/master/A41-xds-rbac.md
|
279
|
+
if (envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_xff_num_trusted_hops(
|
280
|
+
http_connection_manager_proto) != 0) {
|
281
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
282
|
+
"'xff_num_trusted_hops' must be zero");
|
283
|
+
}
|
284
|
+
if (envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_has_original_ip_detection_extensions(
|
285
|
+
http_connection_manager_proto)) {
|
286
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
287
|
+
"'original_ip_detection_extensions' must be empty");
|
288
|
+
}
|
289
|
+
// Obtain max_stream_duration from Http Protocol Options.
|
290
|
+
const envoy_config_core_v3_HttpProtocolOptions* options =
|
291
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_common_http_protocol_options(
|
292
|
+
http_connection_manager_proto);
|
293
|
+
if (options != nullptr) {
|
294
|
+
const google_protobuf_Duration* duration =
|
295
|
+
envoy_config_core_v3_HttpProtocolOptions_max_stream_duration(options);
|
296
|
+
if (duration != nullptr) {
|
297
|
+
http_connection_manager->http_max_stream_duration =
|
298
|
+
ParseDuration(duration);
|
299
|
+
}
|
300
|
+
}
|
301
|
+
// Parse filters.
|
302
|
+
if (!is_v2) {
|
303
|
+
size_t num_filters = 0;
|
304
|
+
const auto* http_filters =
|
305
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_http_filters(
|
306
|
+
http_connection_manager_proto, &num_filters);
|
307
|
+
std::set<absl::string_view> names_seen;
|
308
|
+
for (size_t i = 0; i < num_filters; ++i) {
|
309
|
+
const auto* http_filter = http_filters[i];
|
310
|
+
absl::string_view name = UpbStringToAbsl(
|
311
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpFilter_name(
|
312
|
+
http_filter));
|
313
|
+
if (name.empty()) {
|
314
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
315
|
+
absl::StrCat("empty filter name at index ", i));
|
316
|
+
}
|
317
|
+
if (names_seen.find(name) != names_seen.end()) {
|
318
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
319
|
+
absl::StrCat("duplicate HTTP filter name: ", name));
|
320
|
+
}
|
321
|
+
names_seen.insert(name);
|
322
|
+
const bool is_optional =
|
323
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpFilter_is_optional(
|
324
|
+
http_filter);
|
325
|
+
const google_protobuf_Any* any =
|
326
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpFilter_typed_config(
|
327
|
+
http_filter);
|
328
|
+
if (any == nullptr) {
|
329
|
+
if (is_optional) continue;
|
330
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
331
|
+
absl::StrCat("no filter config specified for filter name ", name));
|
332
|
+
}
|
333
|
+
absl::string_view filter_type;
|
334
|
+
grpc_error_handle error =
|
335
|
+
ExtractHttpFilterTypeName(context, any, &filter_type);
|
336
|
+
if (error != GRPC_ERROR_NONE) return error;
|
337
|
+
const XdsHttpFilterImpl* filter_impl =
|
338
|
+
XdsHttpFilterRegistry::GetFilterForType(filter_type);
|
339
|
+
if (filter_impl == nullptr) {
|
340
|
+
if (is_optional) continue;
|
341
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
342
|
+
absl::StrCat("no filter registered for config type ", filter_type));
|
343
|
+
}
|
344
|
+
if ((is_client && !filter_impl->IsSupportedOnClients()) ||
|
345
|
+
(!is_client && !filter_impl->IsSupportedOnServers())) {
|
346
|
+
if (is_optional) continue;
|
347
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
348
|
+
absl::StrFormat("Filter %s is not supported on %s", filter_type,
|
349
|
+
is_client ? "clients" : "servers"));
|
350
|
+
}
|
351
|
+
absl::StatusOr<XdsHttpFilterImpl::FilterConfig> filter_config =
|
352
|
+
filter_impl->GenerateFilterConfig(google_protobuf_Any_value(any),
|
353
|
+
context.arena);
|
354
|
+
if (!filter_config.ok()) {
|
355
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(absl::StrCat(
|
356
|
+
"filter config for type ", filter_type,
|
357
|
+
" failed to parse: ", StatusToString(filter_config.status())));
|
358
|
+
}
|
359
|
+
http_connection_manager->http_filters.emplace_back(
|
360
|
+
XdsListenerResource::HttpConnectionManager::HttpFilter{
|
361
|
+
std::string(name), std::move(*filter_config)});
|
362
|
+
}
|
363
|
+
if (http_connection_manager->http_filters.empty()) {
|
364
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
365
|
+
"Expected at least one HTTP filter");
|
366
|
+
}
|
367
|
+
// Make sure that the last filter is terminal and non-last filters are
|
368
|
+
// non-terminal. Note that this check is being performed in a separate loop
|
369
|
+
// to take care of the case where there are two terminal filters in the list
|
370
|
+
// out of which only one gets added in the final list.
|
371
|
+
for (const auto& http_filter : http_connection_manager->http_filters) {
|
372
|
+
const XdsHttpFilterImpl* filter_impl =
|
373
|
+
XdsHttpFilterRegistry::GetFilterForType(
|
374
|
+
http_filter.config.config_proto_type_name);
|
375
|
+
if (&http_filter != &http_connection_manager->http_filters.back()) {
|
376
|
+
// Filters before the last filter must not be terminal.
|
377
|
+
if (filter_impl->IsTerminalFilter()) {
|
378
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
379
|
+
absl::StrCat("terminal filter for config type ",
|
380
|
+
http_filter.config.config_proto_type_name,
|
381
|
+
" must be the last filter in the chain"));
|
382
|
+
}
|
383
|
+
} else {
|
384
|
+
// The last filter must be terminal.
|
385
|
+
if (!filter_impl->IsTerminalFilter()) {
|
386
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
387
|
+
absl::StrCat("non-terminal filter for config type ",
|
388
|
+
http_filter.config.config_proto_type_name,
|
389
|
+
" is the last filter in the chain"));
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
} else {
|
394
|
+
// If using a v2 config, we just hard-code a list containing only the
|
395
|
+
// router filter without actually looking at the config. This ensures
|
396
|
+
// that the right thing happens in the xds resolver without having
|
397
|
+
// to expose whether the resource we received was v2 or v3.
|
398
|
+
http_connection_manager->http_filters.emplace_back(
|
399
|
+
XdsListenerResource::HttpConnectionManager::HttpFilter{
|
400
|
+
"router", {kXdsHttpRouterFilterConfigName, Json()}});
|
401
|
+
}
|
402
|
+
// Guarding parsing of RouteConfig on the server side with the environmental
|
403
|
+
// variable since that's the first feature on the server side that will be
|
404
|
+
// using this.
|
405
|
+
if (is_client || XdsRbacEnabled()) {
|
406
|
+
// Found inlined route_config. Parse it to find the cluster_name.
|
407
|
+
if (envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_has_route_config(
|
408
|
+
http_connection_manager_proto)) {
|
409
|
+
const envoy_config_route_v3_RouteConfiguration* route_config =
|
410
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_route_config(
|
411
|
+
http_connection_manager_proto);
|
412
|
+
XdsRouteConfigResource rds_update;
|
413
|
+
grpc_error_handle error =
|
414
|
+
XdsRouteConfigResource::Parse(context, route_config, &rds_update);
|
415
|
+
if (error != GRPC_ERROR_NONE) return error;
|
416
|
+
http_connection_manager->rds_update = std::move(rds_update);
|
417
|
+
return GRPC_ERROR_NONE;
|
418
|
+
}
|
419
|
+
// Validate that RDS must be used to get the route_config dynamically.
|
420
|
+
const envoy_extensions_filters_network_http_connection_manager_v3_Rds* rds =
|
421
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_rds(
|
422
|
+
http_connection_manager_proto);
|
423
|
+
if (rds == nullptr) {
|
424
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
425
|
+
"HttpConnectionManager neither has inlined route_config nor RDS.");
|
426
|
+
}
|
427
|
+
// Check that the ConfigSource specifies ADS.
|
428
|
+
const envoy_config_core_v3_ConfigSource* config_source =
|
429
|
+
envoy_extensions_filters_network_http_connection_manager_v3_Rds_config_source(
|
430
|
+
rds);
|
431
|
+
if (config_source == nullptr) {
|
432
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
433
|
+
"HttpConnectionManager missing config_source for RDS.");
|
434
|
+
}
|
435
|
+
if (!envoy_config_core_v3_ConfigSource_has_ads(config_source) &&
|
436
|
+
!envoy_config_core_v3_ConfigSource_has_self(config_source)) {
|
437
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
438
|
+
"HttpConnectionManager ConfigSource for RDS does not specify ADS "
|
439
|
+
"or SELF.");
|
440
|
+
}
|
441
|
+
// Get the route_config_name.
|
442
|
+
http_connection_manager->route_config_name = UpbStringToStdString(
|
443
|
+
envoy_extensions_filters_network_http_connection_manager_v3_Rds_route_config_name(
|
444
|
+
rds));
|
445
|
+
}
|
446
|
+
return GRPC_ERROR_NONE;
|
447
|
+
}
|
448
|
+
|
449
|
+
grpc_error_handle LdsResourceParseClient(
|
450
|
+
const XdsEncodingContext& context,
|
451
|
+
const envoy_config_listener_v3_ApiListener* api_listener, bool is_v2,
|
452
|
+
XdsListenerResource* lds_update) {
|
453
|
+
lds_update->type = XdsListenerResource::ListenerType::kHttpApiListener;
|
454
|
+
const upb_StringView encoded_api_listener = google_protobuf_Any_value(
|
455
|
+
envoy_config_listener_v3_ApiListener_api_listener(api_listener));
|
456
|
+
const auto* http_connection_manager =
|
457
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_parse(
|
458
|
+
encoded_api_listener.data, encoded_api_listener.size, context.arena);
|
459
|
+
if (http_connection_manager == nullptr) {
|
460
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
461
|
+
"Could not parse HttpConnectionManager config from ApiListener");
|
462
|
+
}
|
463
|
+
return HttpConnectionManagerParse(true /* is_client */, context,
|
464
|
+
http_connection_manager, is_v2,
|
465
|
+
&lds_update->http_connection_manager);
|
466
|
+
}
|
467
|
+
|
468
|
+
grpc_error_handle DownstreamTlsContextParse(
|
469
|
+
const XdsEncodingContext& context,
|
470
|
+
const envoy_config_core_v3_TransportSocket* transport_socket,
|
471
|
+
XdsListenerResource::DownstreamTlsContext* downstream_tls_context) {
|
472
|
+
absl::string_view name = UpbStringToAbsl(
|
473
|
+
envoy_config_core_v3_TransportSocket_name(transport_socket));
|
474
|
+
if (name != "envoy.transport_sockets.tls") {
|
475
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
476
|
+
absl::StrCat("Unrecognized transport socket: ", name));
|
477
|
+
}
|
478
|
+
auto* typed_config =
|
479
|
+
envoy_config_core_v3_TransportSocket_typed_config(transport_socket);
|
480
|
+
std::vector<grpc_error_handle> errors;
|
481
|
+
if (typed_config != nullptr) {
|
482
|
+
const upb_StringView encoded_downstream_tls_context =
|
483
|
+
google_protobuf_Any_value(typed_config);
|
484
|
+
auto* downstream_tls_context_proto =
|
485
|
+
envoy_extensions_transport_sockets_tls_v3_DownstreamTlsContext_parse(
|
486
|
+
encoded_downstream_tls_context.data,
|
487
|
+
encoded_downstream_tls_context.size, context.arena);
|
488
|
+
if (downstream_tls_context_proto == nullptr) {
|
489
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
490
|
+
"Can't decode downstream tls context.");
|
491
|
+
}
|
492
|
+
auto* common_tls_context =
|
493
|
+
envoy_extensions_transport_sockets_tls_v3_DownstreamTlsContext_common_tls_context(
|
494
|
+
downstream_tls_context_proto);
|
495
|
+
if (common_tls_context != nullptr) {
|
496
|
+
grpc_error_handle error =
|
497
|
+
CommonTlsContext::Parse(context, common_tls_context,
|
498
|
+
&downstream_tls_context->common_tls_context);
|
499
|
+
if (error != GRPC_ERROR_NONE) errors.push_back(error);
|
500
|
+
}
|
501
|
+
auto* require_client_certificate =
|
502
|
+
envoy_extensions_transport_sockets_tls_v3_DownstreamTlsContext_require_client_certificate(
|
503
|
+
downstream_tls_context_proto);
|
504
|
+
if (require_client_certificate != nullptr) {
|
505
|
+
downstream_tls_context->require_client_certificate =
|
506
|
+
google_protobuf_BoolValue_value(require_client_certificate);
|
507
|
+
}
|
508
|
+
auto* require_sni =
|
509
|
+
envoy_extensions_transport_sockets_tls_v3_DownstreamTlsContext_require_sni(
|
510
|
+
downstream_tls_context_proto);
|
511
|
+
if (require_sni != nullptr &&
|
512
|
+
google_protobuf_BoolValue_value(require_sni)) {
|
513
|
+
errors.push_back(
|
514
|
+
GRPC_ERROR_CREATE_FROM_STATIC_STRING("require_sni: unsupported"));
|
515
|
+
}
|
516
|
+
if (envoy_extensions_transport_sockets_tls_v3_DownstreamTlsContext_ocsp_staple_policy(
|
517
|
+
downstream_tls_context_proto) !=
|
518
|
+
envoy_extensions_transport_sockets_tls_v3_DownstreamTlsContext_LENIENT_STAPLING) {
|
519
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
520
|
+
"ocsp_staple_policy: Only LENIENT_STAPLING supported"));
|
521
|
+
}
|
522
|
+
}
|
523
|
+
if (downstream_tls_context->common_tls_context
|
524
|
+
.tls_certificate_provider_instance.instance_name.empty()) {
|
525
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
526
|
+
"TLS configuration provided but no "
|
527
|
+
"tls_certificate_provider_instance found."));
|
528
|
+
}
|
529
|
+
if (downstream_tls_context->require_client_certificate &&
|
530
|
+
downstream_tls_context->common_tls_context.certificate_validation_context
|
531
|
+
.ca_certificate_provider_instance.instance_name.empty()) {
|
532
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
533
|
+
"TLS configuration requires client certificates but no certificate "
|
534
|
+
"provider instance specified for validation."));
|
535
|
+
}
|
536
|
+
if (!downstream_tls_context->common_tls_context.certificate_validation_context
|
537
|
+
.match_subject_alt_names.empty()) {
|
538
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
539
|
+
"match_subject_alt_names not supported on servers"));
|
540
|
+
}
|
541
|
+
return GRPC_ERROR_CREATE_FROM_VECTOR("Error parsing DownstreamTlsContext",
|
542
|
+
&errors);
|
543
|
+
}
|
544
|
+
|
545
|
+
grpc_error_handle CidrRangeParse(
|
546
|
+
const envoy_config_core_v3_CidrRange* cidr_range_proto,
|
547
|
+
XdsListenerResource::FilterChainMap::CidrRange* cidr_range) {
|
548
|
+
std::string address_prefix = UpbStringToStdString(
|
549
|
+
envoy_config_core_v3_CidrRange_address_prefix(cidr_range_proto));
|
550
|
+
grpc_error_handle error =
|
551
|
+
grpc_string_to_sockaddr(&cidr_range->address, address_prefix.c_str(), 0);
|
552
|
+
if (error != GRPC_ERROR_NONE) return error;
|
553
|
+
cidr_range->prefix_len = 0;
|
554
|
+
auto* prefix_len_proto =
|
555
|
+
envoy_config_core_v3_CidrRange_prefix_len(cidr_range_proto);
|
556
|
+
if (prefix_len_proto != nullptr) {
|
557
|
+
cidr_range->prefix_len = std::min(
|
558
|
+
google_protobuf_UInt32Value_value(prefix_len_proto),
|
559
|
+
(reinterpret_cast<const grpc_sockaddr*>(cidr_range->address.addr))
|
560
|
+
->sa_family == GRPC_AF_INET
|
561
|
+
? uint32_t(32)
|
562
|
+
: uint32_t(128));
|
563
|
+
}
|
564
|
+
// Normalize the network address by masking it with prefix_len
|
565
|
+
grpc_sockaddr_mask_bits(&cidr_range->address, cidr_range->prefix_len);
|
566
|
+
return GRPC_ERROR_NONE;
|
567
|
+
}
|
568
|
+
|
569
|
+
grpc_error_handle FilterChainMatchParse(
|
570
|
+
const envoy_config_listener_v3_FilterChainMatch* filter_chain_match_proto,
|
571
|
+
FilterChain::FilterChainMatch* filter_chain_match) {
|
572
|
+
auto* destination_port =
|
573
|
+
envoy_config_listener_v3_FilterChainMatch_destination_port(
|
574
|
+
filter_chain_match_proto);
|
575
|
+
if (destination_port != nullptr) {
|
576
|
+
filter_chain_match->destination_port =
|
577
|
+
google_protobuf_UInt32Value_value(destination_port);
|
578
|
+
}
|
579
|
+
size_t size = 0;
|
580
|
+
auto* prefix_ranges = envoy_config_listener_v3_FilterChainMatch_prefix_ranges(
|
581
|
+
filter_chain_match_proto, &size);
|
582
|
+
filter_chain_match->prefix_ranges.reserve(size);
|
583
|
+
for (size_t i = 0; i < size; i++) {
|
584
|
+
XdsListenerResource::FilterChainMap::CidrRange cidr_range;
|
585
|
+
grpc_error_handle error = CidrRangeParse(prefix_ranges[i], &cidr_range);
|
586
|
+
if (error != GRPC_ERROR_NONE) return error;
|
587
|
+
filter_chain_match->prefix_ranges.push_back(cidr_range);
|
588
|
+
}
|
589
|
+
filter_chain_match->source_type =
|
590
|
+
static_cast<XdsListenerResource::FilterChainMap::ConnectionSourceType>(
|
591
|
+
envoy_config_listener_v3_FilterChainMatch_source_type(
|
592
|
+
filter_chain_match_proto));
|
593
|
+
auto* source_prefix_ranges =
|
594
|
+
envoy_config_listener_v3_FilterChainMatch_source_prefix_ranges(
|
595
|
+
filter_chain_match_proto, &size);
|
596
|
+
filter_chain_match->source_prefix_ranges.reserve(size);
|
597
|
+
for (size_t i = 0; i < size; i++) {
|
598
|
+
XdsListenerResource::FilterChainMap::CidrRange cidr_range;
|
599
|
+
grpc_error_handle error =
|
600
|
+
CidrRangeParse(source_prefix_ranges[i], &cidr_range);
|
601
|
+
if (error != GRPC_ERROR_NONE) return error;
|
602
|
+
filter_chain_match->source_prefix_ranges.push_back(cidr_range);
|
603
|
+
}
|
604
|
+
auto* source_ports = envoy_config_listener_v3_FilterChainMatch_source_ports(
|
605
|
+
filter_chain_match_proto, &size);
|
606
|
+
filter_chain_match->source_ports.reserve(size);
|
607
|
+
for (size_t i = 0; i < size; i++) {
|
608
|
+
filter_chain_match->source_ports.push_back(source_ports[i]);
|
609
|
+
}
|
610
|
+
auto* server_names = envoy_config_listener_v3_FilterChainMatch_server_names(
|
611
|
+
filter_chain_match_proto, &size);
|
612
|
+
for (size_t i = 0; i < size; i++) {
|
613
|
+
filter_chain_match->server_names.push_back(
|
614
|
+
UpbStringToStdString(server_names[i]));
|
615
|
+
}
|
616
|
+
filter_chain_match->transport_protocol = UpbStringToStdString(
|
617
|
+
envoy_config_listener_v3_FilterChainMatch_transport_protocol(
|
618
|
+
filter_chain_match_proto));
|
619
|
+
auto* application_protocols =
|
620
|
+
envoy_config_listener_v3_FilterChainMatch_application_protocols(
|
621
|
+
filter_chain_match_proto, &size);
|
622
|
+
for (size_t i = 0; i < size; i++) {
|
623
|
+
filter_chain_match->application_protocols.push_back(
|
624
|
+
UpbStringToStdString(application_protocols[i]));
|
625
|
+
}
|
626
|
+
return GRPC_ERROR_NONE;
|
627
|
+
}
|
628
|
+
|
629
|
+
grpc_error_handle FilterChainParse(
|
630
|
+
const XdsEncodingContext& context,
|
631
|
+
const envoy_config_listener_v3_FilterChain* filter_chain_proto, bool is_v2,
|
632
|
+
FilterChain* filter_chain) {
|
633
|
+
std::vector<grpc_error_handle> errors;
|
634
|
+
auto* filter_chain_match =
|
635
|
+
envoy_config_listener_v3_FilterChain_filter_chain_match(
|
636
|
+
filter_chain_proto);
|
637
|
+
if (filter_chain_match != nullptr) {
|
638
|
+
grpc_error_handle error = FilterChainMatchParse(
|
639
|
+
filter_chain_match, &filter_chain->filter_chain_match);
|
640
|
+
if (error != GRPC_ERROR_NONE) errors.push_back(error);
|
641
|
+
}
|
642
|
+
filter_chain->filter_chain_data =
|
643
|
+
std::make_shared<XdsListenerResource::FilterChainData>();
|
644
|
+
// Parse the filters list. Currently we only support HttpConnectionManager.
|
645
|
+
size_t size = 0;
|
646
|
+
auto* filters =
|
647
|
+
envoy_config_listener_v3_FilterChain_filters(filter_chain_proto, &size);
|
648
|
+
if (size != 1) {
|
649
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
650
|
+
"FilterChain should have exactly one filter: HttpConnectionManager; no "
|
651
|
+
"other filter is supported at the moment"));
|
652
|
+
} else {
|
653
|
+
auto* typed_config =
|
654
|
+
envoy_config_listener_v3_Filter_typed_config(filters[0]);
|
655
|
+
if (typed_config == nullptr) {
|
656
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
657
|
+
"No typed_config found in filter."));
|
658
|
+
} else {
|
659
|
+
absl::string_view type_url =
|
660
|
+
UpbStringToAbsl(google_protobuf_Any_type_url(typed_config));
|
661
|
+
if (type_url !=
|
662
|
+
"type.googleapis.com/"
|
663
|
+
"envoy.extensions.filters.network.http_connection_manager.v3."
|
664
|
+
"HttpConnectionManager") {
|
665
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_CPP_STRING(
|
666
|
+
absl::StrCat("Unsupported filter type ", type_url)));
|
667
|
+
} else {
|
668
|
+
const upb_StringView encoded_http_connection_manager =
|
669
|
+
google_protobuf_Any_value(typed_config);
|
670
|
+
const auto* http_connection_manager =
|
671
|
+
envoy_extensions_filters_network_http_connection_manager_v3_HttpConnectionManager_parse(
|
672
|
+
encoded_http_connection_manager.data,
|
673
|
+
encoded_http_connection_manager.size, context.arena);
|
674
|
+
if (http_connection_manager == nullptr) {
|
675
|
+
errors.push_back(GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
676
|
+
"Could not parse HttpConnectionManager config from filter "
|
677
|
+
"typed_config"));
|
678
|
+
} else {
|
679
|
+
grpc_error_handle error = HttpConnectionManagerParse(
|
680
|
+
false /* is_client */, context, http_connection_manager, is_v2,
|
681
|
+
&filter_chain->filter_chain_data->http_connection_manager);
|
682
|
+
if (error != GRPC_ERROR_NONE) errors.push_back(error);
|
683
|
+
}
|
684
|
+
}
|
685
|
+
}
|
686
|
+
}
|
687
|
+
auto* transport_socket =
|
688
|
+
envoy_config_listener_v3_FilterChain_transport_socket(filter_chain_proto);
|
689
|
+
if (transport_socket != nullptr) {
|
690
|
+
grpc_error_handle error = DownstreamTlsContextParse(
|
691
|
+
context, transport_socket,
|
692
|
+
&filter_chain->filter_chain_data->downstream_tls_context);
|
693
|
+
if (error != GRPC_ERROR_NONE) errors.push_back(error);
|
694
|
+
}
|
695
|
+
return GRPC_ERROR_CREATE_FROM_VECTOR("Error parsing FilterChain", &errors);
|
696
|
+
}
|
697
|
+
|
698
|
+
grpc_error_handle AddressParse(
|
699
|
+
const envoy_config_core_v3_Address* address_proto, std::string* address) {
|
700
|
+
const auto* socket_address =
|
701
|
+
envoy_config_core_v3_Address_socket_address(address_proto);
|
702
|
+
if (socket_address == nullptr) {
|
703
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
704
|
+
"Address does not have socket_address");
|
705
|
+
}
|
706
|
+
if (envoy_config_core_v3_SocketAddress_protocol(socket_address) !=
|
707
|
+
envoy_config_core_v3_SocketAddress_TCP) {
|
708
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
709
|
+
"SocketAddress protocol is not TCP");
|
710
|
+
}
|
711
|
+
uint32_t port = envoy_config_core_v3_SocketAddress_port_value(socket_address);
|
712
|
+
if (port > 65535) {
|
713
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING("Invalid port");
|
714
|
+
}
|
715
|
+
*address = JoinHostPort(
|
716
|
+
UpbStringToAbsl(
|
717
|
+
envoy_config_core_v3_SocketAddress_address(socket_address)),
|
718
|
+
port);
|
719
|
+
return GRPC_ERROR_NONE;
|
720
|
+
}
|
721
|
+
|
722
|
+
// An intermediate map for filter chains that we create to validate the list of
|
723
|
+
// filter chains received from the control plane and to finally create
|
724
|
+
// XdsListenerResource::FilterChainMap
|
725
|
+
struct InternalFilterChainMap {
|
726
|
+
using SourceIpMap =
|
727
|
+
std::map<std::string, XdsListenerResource::FilterChainMap::SourceIp>;
|
728
|
+
using ConnectionSourceTypesArray = std::array<SourceIpMap, 3>;
|
729
|
+
struct DestinationIp {
|
730
|
+
absl::optional<XdsListenerResource::FilterChainMap::CidrRange> prefix_range;
|
731
|
+
bool transport_protocol_raw_buffer_provided = false;
|
732
|
+
ConnectionSourceTypesArray source_types_array;
|
733
|
+
};
|
734
|
+
using DestinationIpMap = std::map<std::string, DestinationIp>;
|
735
|
+
DestinationIpMap destination_ip_map;
|
736
|
+
};
|
737
|
+
|
738
|
+
grpc_error_handle AddFilterChainDataForSourcePort(
|
739
|
+
const FilterChain& filter_chain,
|
740
|
+
XdsListenerResource::FilterChainMap::SourcePortsMap* ports_map,
|
741
|
+
uint32_t port) {
|
742
|
+
auto insert_result = ports_map->emplace(
|
743
|
+
port, XdsListenerResource::FilterChainMap::FilterChainDataSharedPtr{
|
744
|
+
filter_chain.filter_chain_data});
|
745
|
+
if (!insert_result.second) {
|
746
|
+
return GRPC_ERROR_CREATE_FROM_CPP_STRING(absl::StrCat(
|
747
|
+
"Duplicate matching rules detected when adding filter chain: ",
|
748
|
+
filter_chain.filter_chain_match.ToString()));
|
749
|
+
}
|
750
|
+
return GRPC_ERROR_NONE;
|
751
|
+
}
|
752
|
+
|
753
|
+
grpc_error_handle AddFilterChainDataForSourcePorts(
|
754
|
+
const FilterChain& filter_chain,
|
755
|
+
XdsListenerResource::FilterChainMap::SourcePortsMap* ports_map) {
|
756
|
+
if (filter_chain.filter_chain_match.source_ports.empty()) {
|
757
|
+
return AddFilterChainDataForSourcePort(filter_chain, ports_map, 0);
|
758
|
+
} else {
|
759
|
+
for (uint32_t port : filter_chain.filter_chain_match.source_ports) {
|
760
|
+
grpc_error_handle error =
|
761
|
+
AddFilterChainDataForSourcePort(filter_chain, ports_map, port);
|
762
|
+
if (error != GRPC_ERROR_NONE) return error;
|
763
|
+
}
|
764
|
+
}
|
765
|
+
return GRPC_ERROR_NONE;
|
766
|
+
}
|
767
|
+
|
768
|
+
grpc_error_handle AddFilterChainDataForSourceIpRange(
|
769
|
+
const FilterChain& filter_chain,
|
770
|
+
InternalFilterChainMap::SourceIpMap* source_ip_map) {
|
771
|
+
if (filter_chain.filter_chain_match.source_prefix_ranges.empty()) {
|
772
|
+
auto insert_result = source_ip_map->emplace(
|
773
|
+
"", XdsListenerResource::FilterChainMap::SourceIp());
|
774
|
+
return AddFilterChainDataForSourcePorts(
|
775
|
+
filter_chain, &insert_result.first->second.ports_map);
|
776
|
+
} else {
|
777
|
+
for (const auto& prefix_range :
|
778
|
+
filter_chain.filter_chain_match.source_prefix_ranges) {
|
779
|
+
auto insert_result = source_ip_map->emplace(
|
780
|
+
absl::StrCat(grpc_sockaddr_to_string(&prefix_range.address, false),
|
781
|
+
"/", prefix_range.prefix_len),
|
782
|
+
XdsListenerResource::FilterChainMap::SourceIp());
|
783
|
+
if (insert_result.second) {
|
784
|
+
insert_result.first->second.prefix_range.emplace(prefix_range);
|
785
|
+
}
|
786
|
+
grpc_error_handle error = AddFilterChainDataForSourcePorts(
|
787
|
+
filter_chain, &insert_result.first->second.ports_map);
|
788
|
+
if (error != GRPC_ERROR_NONE) return error;
|
789
|
+
}
|
790
|
+
}
|
791
|
+
return GRPC_ERROR_NONE;
|
792
|
+
}
|
793
|
+
|
794
|
+
grpc_error_handle AddFilterChainDataForSourceType(
|
795
|
+
const FilterChain& filter_chain,
|
796
|
+
InternalFilterChainMap::DestinationIp* destination_ip) {
|
797
|
+
GPR_ASSERT(static_cast<unsigned int>(
|
798
|
+
filter_chain.filter_chain_match.source_type) < 3);
|
799
|
+
return AddFilterChainDataForSourceIpRange(
|
800
|
+
filter_chain, &destination_ip->source_types_array[static_cast<int>(
|
801
|
+
filter_chain.filter_chain_match.source_type)]);
|
802
|
+
}
|
803
|
+
|
804
|
+
grpc_error_handle AddFilterChainDataForApplicationProtocols(
|
805
|
+
const FilterChain& filter_chain,
|
806
|
+
InternalFilterChainMap::DestinationIp* destination_ip) {
|
807
|
+
// Only allow filter chains that do not mention application protocols
|
808
|
+
if (!filter_chain.filter_chain_match.application_protocols.empty()) {
|
809
|
+
return GRPC_ERROR_NONE;
|
810
|
+
}
|
811
|
+
return AddFilterChainDataForSourceType(filter_chain, destination_ip);
|
812
|
+
}
|
813
|
+
|
814
|
+
grpc_error_handle AddFilterChainDataForTransportProtocol(
|
815
|
+
const FilterChain& filter_chain,
|
816
|
+
InternalFilterChainMap::DestinationIp* destination_ip) {
|
817
|
+
const std::string& transport_protocol =
|
818
|
+
filter_chain.filter_chain_match.transport_protocol;
|
819
|
+
// Only allow filter chains with no transport protocol or "raw_buffer"
|
820
|
+
if (!transport_protocol.empty() && transport_protocol != "raw_buffer") {
|
821
|
+
return GRPC_ERROR_NONE;
|
822
|
+
}
|
823
|
+
// If for this configuration, we've already seen filter chains that mention
|
824
|
+
// the transport protocol as "raw_buffer", we will never match filter chains
|
825
|
+
// that do not mention it.
|
826
|
+
if (destination_ip->transport_protocol_raw_buffer_provided &&
|
827
|
+
transport_protocol.empty()) {
|
828
|
+
return GRPC_ERROR_NONE;
|
829
|
+
}
|
830
|
+
if (!transport_protocol.empty() &&
|
831
|
+
!destination_ip->transport_protocol_raw_buffer_provided) {
|
832
|
+
destination_ip->transport_protocol_raw_buffer_provided = true;
|
833
|
+
// Clear out the previous entries if any since those entries did not mention
|
834
|
+
// "raw_buffer"
|
835
|
+
destination_ip->source_types_array =
|
836
|
+
InternalFilterChainMap::ConnectionSourceTypesArray();
|
837
|
+
}
|
838
|
+
return AddFilterChainDataForApplicationProtocols(filter_chain,
|
839
|
+
destination_ip);
|
840
|
+
}
|
841
|
+
|
842
|
+
grpc_error_handle AddFilterChainDataForServerNames(
|
843
|
+
const FilterChain& filter_chain,
|
844
|
+
InternalFilterChainMap::DestinationIp* destination_ip) {
|
845
|
+
// Don't continue adding filter chains with server names mentioned
|
846
|
+
if (!filter_chain.filter_chain_match.server_names.empty()) {
|
847
|
+
return GRPC_ERROR_NONE;
|
848
|
+
}
|
849
|
+
return AddFilterChainDataForTransportProtocol(filter_chain, destination_ip);
|
850
|
+
}
|
851
|
+
|
852
|
+
grpc_error_handle AddFilterChainDataForDestinationIpRange(
|
853
|
+
const FilterChain& filter_chain,
|
854
|
+
InternalFilterChainMap::DestinationIpMap* destination_ip_map) {
|
855
|
+
if (filter_chain.filter_chain_match.prefix_ranges.empty()) {
|
856
|
+
auto insert_result = destination_ip_map->emplace(
|
857
|
+
"", InternalFilterChainMap::DestinationIp());
|
858
|
+
return AddFilterChainDataForServerNames(filter_chain,
|
859
|
+
&insert_result.first->second);
|
860
|
+
} else {
|
861
|
+
for (const auto& prefix_range :
|
862
|
+
filter_chain.filter_chain_match.prefix_ranges) {
|
863
|
+
auto insert_result = destination_ip_map->emplace(
|
864
|
+
absl::StrCat(grpc_sockaddr_to_string(&prefix_range.address, false),
|
865
|
+
"/", prefix_range.prefix_len),
|
866
|
+
InternalFilterChainMap::DestinationIp());
|
867
|
+
if (insert_result.second) {
|
868
|
+
insert_result.first->second.prefix_range.emplace(prefix_range);
|
869
|
+
}
|
870
|
+
grpc_error_handle error = AddFilterChainDataForServerNames(
|
871
|
+
filter_chain, &insert_result.first->second);
|
872
|
+
if (error != GRPC_ERROR_NONE) return error;
|
873
|
+
}
|
874
|
+
}
|
875
|
+
return GRPC_ERROR_NONE;
|
876
|
+
}
|
877
|
+
|
878
|
+
XdsListenerResource::FilterChainMap BuildFromInternalFilterChainMap(
|
879
|
+
InternalFilterChainMap* internal_filter_chain_map) {
|
880
|
+
XdsListenerResource::FilterChainMap filter_chain_map;
|
881
|
+
for (auto& destination_ip_pair :
|
882
|
+
internal_filter_chain_map->destination_ip_map) {
|
883
|
+
XdsListenerResource::FilterChainMap::DestinationIp destination_ip;
|
884
|
+
destination_ip.prefix_range = destination_ip_pair.second.prefix_range;
|
885
|
+
for (int i = 0; i < 3; i++) {
|
886
|
+
auto& source_ip_map = destination_ip_pair.second.source_types_array[i];
|
887
|
+
for (auto& source_ip_pair : source_ip_map) {
|
888
|
+
destination_ip.source_types_array[i].push_back(
|
889
|
+
std::move(source_ip_pair.second));
|
890
|
+
}
|
891
|
+
}
|
892
|
+
filter_chain_map.destination_ip_vector.push_back(std::move(destination_ip));
|
893
|
+
}
|
894
|
+
return filter_chain_map;
|
895
|
+
}
|
896
|
+
|
897
|
+
grpc_error_handle BuildFilterChainMap(
|
898
|
+
const std::vector<FilterChain>& filter_chains,
|
899
|
+
XdsListenerResource::FilterChainMap* filter_chain_map) {
|
900
|
+
InternalFilterChainMap internal_filter_chain_map;
|
901
|
+
for (const auto& filter_chain : filter_chains) {
|
902
|
+
// Discard filter chain entries that specify destination port
|
903
|
+
if (filter_chain.filter_chain_match.destination_port != 0) continue;
|
904
|
+
grpc_error_handle error = AddFilterChainDataForDestinationIpRange(
|
905
|
+
filter_chain, &internal_filter_chain_map.destination_ip_map);
|
906
|
+
if (error != GRPC_ERROR_NONE) return error;
|
907
|
+
}
|
908
|
+
*filter_chain_map =
|
909
|
+
BuildFromInternalFilterChainMap(&internal_filter_chain_map);
|
910
|
+
return GRPC_ERROR_NONE;
|
911
|
+
}
|
912
|
+
|
913
|
+
grpc_error_handle LdsResourceParseServer(
|
914
|
+
const XdsEncodingContext& context,
|
915
|
+
const envoy_config_listener_v3_Listener* listener, bool is_v2,
|
916
|
+
XdsListenerResource* lds_update) {
|
917
|
+
lds_update->type = XdsListenerResource::ListenerType::kTcpListener;
|
918
|
+
grpc_error_handle error =
|
919
|
+
AddressParse(envoy_config_listener_v3_Listener_address(listener),
|
920
|
+
&lds_update->address);
|
921
|
+
if (error != GRPC_ERROR_NONE) return error;
|
922
|
+
const auto* use_original_dst =
|
923
|
+
envoy_config_listener_v3_Listener_use_original_dst(listener);
|
924
|
+
if (use_original_dst != nullptr) {
|
925
|
+
if (google_protobuf_BoolValue_value(use_original_dst)) {
|
926
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
927
|
+
"Field \'use_original_dst\' is not supported.");
|
928
|
+
}
|
929
|
+
}
|
930
|
+
size_t size = 0;
|
931
|
+
auto* filter_chains =
|
932
|
+
envoy_config_listener_v3_Listener_filter_chains(listener, &size);
|
933
|
+
std::vector<FilterChain> parsed_filter_chains;
|
934
|
+
parsed_filter_chains.reserve(size);
|
935
|
+
for (size_t i = 0; i < size; i++) {
|
936
|
+
FilterChain filter_chain;
|
937
|
+
error = FilterChainParse(context, filter_chains[i], is_v2, &filter_chain);
|
938
|
+
if (error != GRPC_ERROR_NONE) return error;
|
939
|
+
parsed_filter_chains.push_back(std::move(filter_chain));
|
940
|
+
}
|
941
|
+
error =
|
942
|
+
BuildFilterChainMap(parsed_filter_chains, &lds_update->filter_chain_map);
|
943
|
+
if (error != GRPC_ERROR_NONE) return error;
|
944
|
+
auto* default_filter_chain =
|
945
|
+
envoy_config_listener_v3_Listener_default_filter_chain(listener);
|
946
|
+
if (default_filter_chain != nullptr) {
|
947
|
+
FilterChain filter_chain;
|
948
|
+
error =
|
949
|
+
FilterChainParse(context, default_filter_chain, is_v2, &filter_chain);
|
950
|
+
if (error != GRPC_ERROR_NONE) return error;
|
951
|
+
if (filter_chain.filter_chain_data != nullptr) {
|
952
|
+
lds_update->default_filter_chain =
|
953
|
+
std::move(*filter_chain.filter_chain_data);
|
954
|
+
}
|
955
|
+
}
|
956
|
+
if (size == 0 && default_filter_chain == nullptr) {
|
957
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING("No filter chain provided.");
|
958
|
+
}
|
959
|
+
return GRPC_ERROR_NONE;
|
960
|
+
}
|
961
|
+
|
962
|
+
grpc_error_handle LdsResourceParse(
|
963
|
+
const XdsEncodingContext& context,
|
964
|
+
const envoy_config_listener_v3_Listener* listener, bool is_v2,
|
965
|
+
XdsListenerResource* lds_update) {
|
966
|
+
// Check whether it's a client or server listener.
|
967
|
+
const envoy_config_listener_v3_ApiListener* api_listener =
|
968
|
+
envoy_config_listener_v3_Listener_api_listener(listener);
|
969
|
+
const envoy_config_core_v3_Address* address =
|
970
|
+
envoy_config_listener_v3_Listener_address(listener);
|
971
|
+
if (api_listener != nullptr && address != nullptr) {
|
972
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
973
|
+
"Listener has both address and ApiListener");
|
974
|
+
}
|
975
|
+
if (api_listener == nullptr && address == nullptr) {
|
976
|
+
return GRPC_ERROR_CREATE_FROM_STATIC_STRING(
|
977
|
+
"Listener has neither address nor ApiListener");
|
978
|
+
}
|
979
|
+
// Validate Listener fields.
|
980
|
+
grpc_error_handle error = GRPC_ERROR_NONE;
|
981
|
+
if (api_listener != nullptr) {
|
982
|
+
error = LdsResourceParseClient(context, api_listener, is_v2, lds_update);
|
983
|
+
} else {
|
984
|
+
error = LdsResourceParseServer(context, listener, is_v2, lds_update);
|
985
|
+
}
|
986
|
+
return error;
|
987
|
+
}
|
988
|
+
|
989
|
+
void MaybeLogListener(const XdsEncodingContext& context,
|
990
|
+
const envoy_config_listener_v3_Listener* listener) {
|
991
|
+
if (GRPC_TRACE_FLAG_ENABLED(*context.tracer) &&
|
992
|
+
gpr_should_log(GPR_LOG_SEVERITY_DEBUG)) {
|
993
|
+
const upb_MessageDef* msg_type =
|
994
|
+
envoy_config_listener_v3_Listener_getmsgdef(context.symtab);
|
995
|
+
char buf[10240];
|
996
|
+
upb_TextEncode(listener, msg_type, nullptr, 0, buf, sizeof(buf));
|
997
|
+
gpr_log(GPR_DEBUG, "[xds_client %p] Listener: %s", context.client, buf);
|
998
|
+
}
|
999
|
+
}
|
1000
|
+
|
1001
|
+
} // namespace
|
1002
|
+
|
1003
|
+
absl::StatusOr<XdsResourceType::DecodeResult> XdsListenerResourceType::Decode(
|
1004
|
+
const XdsEncodingContext& context, absl::string_view serialized_resource,
|
1005
|
+
bool is_v2) const {
|
1006
|
+
// Parse serialized proto.
|
1007
|
+
auto* resource = envoy_config_listener_v3_Listener_parse(
|
1008
|
+
serialized_resource.data(), serialized_resource.size(), context.arena);
|
1009
|
+
if (resource == nullptr) {
|
1010
|
+
return absl::InvalidArgumentError("Can't parse Listener resource.");
|
1011
|
+
}
|
1012
|
+
MaybeLogListener(context, resource);
|
1013
|
+
// Validate resource.
|
1014
|
+
DecodeResult result;
|
1015
|
+
result.name =
|
1016
|
+
UpbStringToStdString(envoy_config_listener_v3_Listener_name(resource));
|
1017
|
+
auto listener_data = absl::make_unique<ResourceDataSubclass>();
|
1018
|
+
grpc_error_handle error =
|
1019
|
+
LdsResourceParse(context, resource, is_v2, &listener_data->resource);
|
1020
|
+
if (error != GRPC_ERROR_NONE) {
|
1021
|
+
std::string error_str = grpc_error_std_string(error);
|
1022
|
+
GRPC_ERROR_UNREF(error);
|
1023
|
+
if (GRPC_TRACE_FLAG_ENABLED(*context.tracer)) {
|
1024
|
+
gpr_log(GPR_ERROR, "[xds_client %p] invalid Listener %s: %s",
|
1025
|
+
context.client, result.name.c_str(), error_str.c_str());
|
1026
|
+
}
|
1027
|
+
result.resource = absl::InvalidArgumentError(error_str);
|
1028
|
+
} else {
|
1029
|
+
if (GRPC_TRACE_FLAG_ENABLED(*context.tracer)) {
|
1030
|
+
gpr_log(GPR_INFO, "[xds_client %p] parsed Listener %s: %s",
|
1031
|
+
context.client, result.name.c_str(),
|
1032
|
+
listener_data->resource.ToString().c_str());
|
1033
|
+
}
|
1034
|
+
result.resource = std::move(listener_data);
|
1035
|
+
}
|
1036
|
+
return std::move(result);
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
} // namespace grpc_core
|