grpc 1.84.1 → 1.86.0.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +48 -31
- data/etc/roots.pem +0 -583
- data/include/grpc/channel_factory.h +78 -0
- data/include/grpc/credentials.h +21 -0
- data/include/grpc/event_engine/memory_allocator.h +1 -0
- data/include/grpc/grpc.h +10 -0
- data/include/grpc/grpc_security_constants.h +4 -0
- data/include/grpc/impl/channel_arg_names.h +4 -0
- data/include/grpc/module.modulemap +1 -0
- data/src/core/call/call_filters.cc +4 -1
- data/src/core/call/call_filters.h +13 -11
- data/src/core/call/call_spine.h +12 -6
- data/src/core/call/call_state.h +3 -3
- data/src/core/call/client_call.cc +4 -1
- data/src/core/call/client_call.h +1 -0
- data/src/core/{lib/security/authorization → call}/evaluate_args.cc +34 -12
- data/src/core/{lib/security/authorization → call}/evaluate_args.h +19 -5
- data/src/core/call/filter_fusion.h +17 -30
- data/src/core/call/interception_chain.h +5 -10
- data/src/core/call/metadata_batch.cc +6 -0
- data/src/core/call/metadata_batch.h +79 -36
- data/src/core/call/parsed_metadata.h +3 -3
- data/src/core/call/request_buffer.cc +7 -7
- data/src/core/call/request_buffer.h +1 -1
- data/src/core/call/server_call.cc +3 -3
- data/src/core/call/server_call.h +15 -0
- data/src/core/channelz/channel_trace.cc +5 -5
- data/src/core/channelz/channel_trace.h +1 -1
- data/src/core/channelz/channelz.cc +9 -9
- data/src/core/channelz/channelz.h +12 -12
- data/src/core/channelz/channelz_registry.cc +14 -14
- data/src/core/channelz/ztrace_collector.h +16 -7
- data/src/core/client_channel/backup_poller.cc +1 -2
- data/src/core/client_channel/channel_factory.cc +110 -0
- data/src/core/client_channel/channel_factory.h +45 -0
- data/src/core/client_channel/client_channel.cc +4 -4
- data/src/core/client_channel/client_channel_filter.cc +14 -14
- data/src/core/client_channel/global_subchannel_pool.cc +6 -6
- data/src/core/client_channel/lame_channel.cc +59 -0
- data/src/core/client_channel/lame_channel.h +86 -0
- data/src/core/client_channel/subchannel.cc +24 -23
- data/src/core/client_channel/subchannel_stream_client.cc +5 -5
- data/src/core/credentials/call/external/aws_external_account_credentials.cc +7 -7
- data/src/core/credentials/call/external/aws_request_signer.cc +18 -1
- data/src/core/credentials/call/external/external_account_credentials.cc +4 -4
- data/src/core/credentials/call/external/url_external_account_credentials.cc +6 -17
- data/src/core/credentials/call/external/url_external_account_credentials.h +0 -1
- data/src/core/credentials/call/jwt/jwt_verifier.cc +25 -13
- data/src/core/credentials/call/oauth2/oauth2_credentials.cc +6 -4
- data/src/core/credentials/call/regional_access_boundary_fetcher.cc +25 -9
- data/src/core/credentials/call/regional_access_boundary_fetcher.h +6 -2
- data/src/core/credentials/call/token_fetcher/token_fetcher_credentials.cc +4 -4
- data/src/core/credentials/transport/google_default/google_default_credentials.cc +3 -3
- data/src/core/credentials/transport/ssl/ssl_security_connector.cc +1 -1
- data/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.cc +9 -9
- data/src/core/credentials/transport/tls/grpc_tls_certificate_distributor.h +1 -1
- data/src/core/credentials/transport/tls/grpc_tls_certificate_provider.cc +6 -6
- data/src/core/credentials/transport/tls/grpc_tls_certificate_verifier.cc +3 -3
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.cc +14 -0
- data/src/core/credentials/transport/tls/grpc_tls_credentials_options.h +12 -2
- data/src/core/credentials/transport/tls/grpc_tls_crl_provider.cc +4 -4
- data/src/core/credentials/transport/tls/ssl_utils.cc +30 -0
- data/src/core/credentials/transport/tls/ssl_utils.h +4 -0
- data/src/core/credentials/transport/tls/tls_security_connector.cc +16 -12
- data/src/core/credentials/transport/tls/tls_security_connector.h +6 -6
- data/src/core/credentials/transport/tls/tls_utils.h +9 -0
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +1 -1
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +1 -1
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.cc +2 -2
- data/src/core/ext/filters/gcp_authentication/gcp_authentication_filter.h +1 -1
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +15 -0
- data/src/core/ext/filters/http/server/http_server_filter.cc +6 -1
- data/src/core/ext/filters/rbac/rbac_filter.cc +3 -41
- data/src/core/ext/filters/rbac/rbac_filter.h +3 -12
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +7 -7
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +61 -45
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +6 -13
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +80 -110
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +1 -1
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +1 -0
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -6
- data/src/core/ext/transport/chttp2/transport/flow_control_manager.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame.cc +15 -19
- data/src/core/ext/transport/chttp2/transport/frame.h +10 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +18 -61
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +0 -4
- data/src/core/ext/transport/chttp2/transport/frame_security.cc +1 -2
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +9 -0
- data/src/core/ext/transport/chttp2/transport/goaway.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/goaway.h +0 -5
- data/src/core/ext/transport/chttp2/transport/header_assembler.h +1 -5
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +3 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +8 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +45 -9
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +4 -2
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +50 -37
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +7 -3
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +407 -267
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.h +70 -32
- data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +4 -3
- data/src/core/ext/transport/chttp2/transport/http2_transport.cc +21 -57
- data/src/core/ext/transport/chttp2/transport/http2_transport.h +4 -35
- data/src/core/ext/transport/chttp2/transport/http2_transport_stats.h +60 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +8 -3
- data/src/core/ext/transport/chttp2/transport/keepalive.h +1 -4
- data/src/core/ext/transport/chttp2/transport/parsing.cc +7 -10
- data/src/core/ext/transport/chttp2/transport/ping_promise.cc +35 -11
- data/src/core/ext/transport/chttp2/transport/ping_promise.h +52 -47
- data/src/core/ext/transport/chttp2/transport/read_context.h +115 -8
- data/src/core/ext/transport/chttp2/transport/reclaimer.cc +32 -0
- data/src/core/ext/transport/chttp2/transport/reclaimer.h +64 -0
- data/src/core/ext/transport/chttp2/transport/security_frame.h +15 -14
- data/src/core/ext/transport/chttp2/transport/stream_data_queue.h +24 -14
- data/src/core/ext/transport/chttp2/transport/transport_common.cc +47 -0
- data/src/core/ext/transport/chttp2/transport/transport_common.h +29 -0
- data/src/core/ext/transport/chttp2/transport/writable_streams.h +1 -1
- data/src/core/ext/transport/chttp2/transport/write_cycle.h +23 -3
- data/src/core/ext/transport/inproc/inproc_transport.cc +5 -5
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1 -7
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +16 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +4 -3
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +129 -81
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +50 -39
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +411 -163
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +95 -44
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +41 -8
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +427 -222
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +97 -66
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +130 -99
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +29 -27
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +49 -33
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +19 -8
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +95 -3
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +33 -6
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +93 -11
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +8 -5
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +656 -134
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +117 -51
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +45 -23
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +19 -10
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +99 -34
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +12 -7
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +344 -273
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +62 -69
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +1 -3
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +108 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +26 -2
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +809 -231
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +183 -77
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +151 -26
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +17 -9
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +24 -8
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +6 -5
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2 -1
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb.h +224 -16
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.c +83 -10
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/composite/v3/composite.upb_minitable.h +2 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb.h +95 -79
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upb_minitable.c +23 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +34 -18
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +10 -9
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb.h +243 -2
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.c +53 -5
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upb_minitable.h +3 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +53 -22
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +9 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +9 -4
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +516 -215
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +99 -60
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +60 -28
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +12 -10
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +32 -2
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb.h +37 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upb_minitable.c +7 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +65 -47
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +29 -12
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +20 -4
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +6 -3
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb.h +776 -88
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.c +195 -35
- data/src/core/ext/upb-gen/envoy/service/ext_proc/v3/external_processor.upb_minitable.h +5 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb.h +23 -7
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/address.upb_minitable.c +10 -3
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +44 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +11 -2
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +1 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb.h +218 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/v3/scope.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/grpc/channelz/v1/channelz.upb.h +137 -73
- data/src/core/ext/upb-gen/grpc/channelz/v1/channelz.upb_minitable.c +45 -25
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/altscontext.upb.h +6 -6
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/altscontext.upb_minitable.c +4 -4
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/altscontext.upb_minitable.h +5 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/handshaker.upb.h +46 -26
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/handshaker.upb_minitable.c +17 -14
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/handshaker.upb_minitable.h +5 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/transport_security_common.upb.h +5 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/transport_security_common.upb_minitable.c +3 -3
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/gcp/transport_security_common.upb_minitable.h +5 -5
- data/src/core/ext/upb-gen/grpc/health/v1/health.upb.h +329 -0
- data/src/core/ext/upb-gen/grpc/health/v1/health.upb_minitable.c +128 -0
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/health/v1/health.upb_minitable.h +8 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lb/v1/load_balancer.upb.h +5 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lb/v1/load_balancer.upb_minitable.c +3 -3
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lb/v1/load_balancer.upb_minitable.h +5 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lookup/v1/rls.upb.h +185 -23
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lookup/v1/rls.upb_minitable.c +20 -12
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lookup/v1/rls.upb_minitable.h +5 -5
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lookup/v1/rls_config.upb.h +58 -42
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lookup/v1/rls_config.upb_minitable.c +17 -12
- data/src/core/ext/upb-gen/{src/proto/grpc → grpc}/lookup/v1/rls_config.upb_minitable.h +5 -5
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +30 -24
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +166 -152
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +467 -422
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +120 -110
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +912 -857
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +26 -19
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +59 -54
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +356 -346
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +49 -37
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +599 -483
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +65 -49
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +165 -161
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +369 -327
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +5 -15
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +129 -121
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +224 -204
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +2046 -1932
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +70 -37
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +7 -3
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +5 -3
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.c +121 -78
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/composite/v3/composite.upbdefs.h +10 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/ext_proc/v3/ext_proc.upbdefs.c +165 -160
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +121 -118
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.c +68 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/gcp_authn/v3/gcp_authn.upbdefs.h +15 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +48 -40
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +44 -37
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +919 -870
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/http_11_proxy/v3/upstream_http_11_connect.upbdefs.c +26 -14
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +44 -36
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +372 -371
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +32 -28
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/address.upbdefs.c +17 -15
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +4 -1
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +5 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/scope.upbdefs.h +37 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +1 -1
- data/src/core/ext/upbdefs-gen/grpc/channelz/v1/channelz.upbdefs.c +567 -549
- data/src/core/ext/upbdefs-gen/grpc/lookup/v1/rls_config.upbdefs.c +182 -0
- data/src/core/ext/upbdefs-gen/{src/proto/grpc → grpc}/lookup/v1/rls_config.upbdefs.h +14 -14
- data/src/core/filter/ext_proc/ext_proc_filter.cc +1883 -48
- data/src/core/filter/ext_proc/ext_proc_filter.h +88 -22
- data/src/core/filter/ext_proc/ext_proc_messages.cc +141 -65
- data/src/core/filter/ext_proc/ext_proc_messages.h +55 -16
- data/src/core/filter/filter_args.h +5 -60
- data/src/core/handshaker/handshaker.cc +4 -4
- data/src/core/handshaker/http_connect/http_connect_client_handshaker.cc +4 -4
- data/src/core/handshaker/security/pipelined_secure_endpoint.cc +33 -32
- data/src/core/handshaker/security/secure_endpoint.cc +29 -29
- data/src/core/handshaker/security/security_handshaker.cc +6 -6
- data/src/core/handshaker/tcp_connect/tcp_connect_handshaker.cc +4 -4
- data/src/core/lib/channel/channel_args.cc +20 -0
- data/src/core/lib/channel/channel_args.h +17 -17
- data/src/core/lib/channel/channel_stack.cc +0 -12
- data/src/core/lib/channel/channel_stack.h +0 -8
- data/src/core/lib/channel/promise_based_filter.cc +59 -46
- data/src/core/lib/channel/promise_based_filter.h +94 -67
- data/src/core/lib/debug/trace_flags.cc +2 -0
- data/src/core/lib/debug/trace_flags.h +1 -0
- data/src/core/lib/event_engine/ares_resolver.cc +24 -18
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +7 -7
- data/src/core/lib/event_engine/cf_engine/cfsocket_listener.cc +4 -4
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +1 -1
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +3 -3
- data/src/core/lib/event_engine/default_event_engine.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +10 -14
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +26 -26
- data/src/core/lib/event_engine/posix_engine/file_descriptor_collection.cc +8 -22
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +24 -4
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +6 -6
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +7 -7
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +27 -29
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +3 -3
- data/src/core/lib/event_engine/posix_engine/posix_interface.h +1 -1
- data/src/core/lib/event_engine/posix_engine/timer.cc +7 -7
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +3 -3
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.h +1 -1
- data/src/core/lib/event_engine/shim.cc +1 -6
- data/src/core/lib/event_engine/shim.h +0 -5
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +1 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.h +3 -3
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +50 -21
- data/src/core/lib/event_engine/thready_event_engine/thready_event_engine.cc +3 -3
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +3 -3
- data/src/core/lib/event_engine/windows/windows_engine.cc +19 -19
- data/src/core/lib/event_engine/windows/windows_listener.cc +7 -7
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +6 -6
- data/src/core/lib/experiments/experiments.cc +177 -246
- data/src/core/lib/experiments/experiments.h +61 -109
- data/src/core/lib/iomgr/buffer_list.cc +3 -3
- data/src/core/lib/iomgr/buffer_list.h +1 -1
- data/src/core/lib/iomgr/combiner.cc +0 -1
- data/src/core/lib/iomgr/ev_apple.cc +4 -4
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +2 -2
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -6
- data/src/core/lib/iomgr/tcp_client_posix.cc +3 -3
- data/src/core/lib/iomgr/tcp_posix.cc +28 -28
- data/src/core/lib/iomgr/tcp_server_posix.cc +64 -242
- data/src/core/lib/iomgr/tcp_server_windows.cc +0 -469
- data/src/core/lib/promise/activity.cc +9 -9
- data/src/core/lib/promise/activity.h +6 -6
- data/src/core/lib/promise/arena_promise.h +7 -7
- data/src/core/lib/promise/detail/promise_factory.h +8 -8
- data/src/core/lib/promise/detail/promise_like.h +4 -4
- data/src/core/lib/promise/inter_activity_latch.h +6 -6
- data/src/core/lib/promise/inter_activity_pipe.h +4 -4
- data/src/core/lib/promise/observable.h +3 -3
- data/src/core/lib/promise/party.cc +6 -6
- data/src/core/lib/promise/status_flag.h +7 -2
- data/src/core/lib/promise/try_seq.h +2 -2
- data/src/core/lib/resource_quota/arena.h +3 -3
- data/src/core/lib/resource_quota/memory_quota.cc +18 -18
- data/src/core/lib/resource_quota/memory_quota.h +1 -1
- data/src/core/lib/resource_quota/thread_quota.cc +3 -3
- data/src/core/lib/security/authorization/audit_logging.cc +5 -5
- data/src/core/lib/security/authorization/authorization_engine.h +1 -1
- data/src/core/lib/security/authorization/grpc_authorization_engine.h +1 -1
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +1 -1
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +1 -1
- data/src/core/lib/security/authorization/matchers.h +1 -1
- data/src/core/lib/security/authorization/rbac_policy.h +2 -2
- data/src/core/lib/surface/call.cc +20 -9
- data/src/core/lib/surface/call.h +24 -7
- data/src/core/lib/surface/call_utils.h +4 -0
- data/src/core/lib/surface/channel.cc +1 -1
- data/src/core/lib/surface/channel.h +1 -1
- data/src/core/lib/surface/channel_create.cc +7 -1
- data/src/core/lib/surface/channel_init.cc +1 -1
- data/src/core/lib/surface/channel_init.h +1 -8
- data/src/core/lib/surface/filter_stack_call.cc +16 -0
- data/src/core/lib/surface/filter_stack_call.h +1 -0
- data/src/core/lib/surface/init.cc +10 -10
- data/src/core/lib/surface/lame_client.cc +1 -1
- data/src/core/lib/surface/legacy_channel.cc +6 -3
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/transport/transport.cc +15 -8
- data/src/core/lib/transport/transport_framing_endpoint_extension.h +9 -3
- data/src/core/load_balancing/autosharding/autosharding.cc +931 -0
- data/src/core/load_balancing/autosharding/autosharding.h +78 -0
- data/src/core/load_balancing/grpclb/grpclb_client_stats.cc +2 -2
- data/src/core/load_balancing/grpclb/load_balancer_api.cc +1 -1
- data/src/core/load_balancing/grpclb/load_balancer_api.h +3 -1
- data/src/core/load_balancing/health_check_client.cc +7 -7
- data/src/core/load_balancing/lb_policy.cc +1 -1
- data/src/core/load_balancing/oob_backend_metric.cc +5 -5
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +101 -10
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.cc +38 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection_metrics.h +55 -0
- data/src/core/load_balancing/ring_hash/ring_hash.cc +111 -38
- data/src/core/load_balancing/rls/rls.cc +44 -18
- data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +10 -10
- data/src/core/load_balancing/xds/cds.cc +10 -56
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +2 -2
- data/src/core/load_balancing/xds/xds_override_host.cc +10 -10
- data/src/core/mitigation_engine/mitigation_engine.h +28 -4
- data/src/core/plugin_registry/grpc_plugin_registry.cc +12 -13
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -7
- data/src/core/resolver/dns/dns_resolver.cc +7 -7
- data/src/core/resolver/fake/fake_resolver.cc +5 -5
- data/src/core/resolver/google_c2p/google_c2p_resolver.cc +38 -30
- data/src/core/resolver/xds/xds_resolver.cc +1 -1
- data/src/core/server/server.cc +88 -32
- data/src/core/server/server.h +4 -3
- data/src/core/server/server_config_selector.h +4 -18
- data/src/core/server/server_config_selector_filter.cc +20 -146
- data/src/core/server/server_config_selector_filter.h +2 -2
- data/src/core/server/xds_server_config_fetcher.cc +5 -20
- data/src/core/telemetry/default_tcp_tracer.cc +1 -1
- data/src/core/telemetry/instrument.cc +30 -16
- data/src/core/telemetry/instrument.h +3 -3
- data/src/core/transport/auth_context.cc +15 -5
- data/src/core/transport/auth_context.h +5 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +3 -3
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +4 -4
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +2 -2
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +1 -1
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +1 -1
- data/src/core/tsi/ssl/key_logging/ssl_key_logging.cc +5 -5
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +3 -3
- data/src/core/tsi/ssl_telemetry_utils.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +203 -64
- data/src/core/tsi/ssl_transport_security.h +25 -2
- data/src/core/tsi/ssl_transport_security_utils.cc +139 -18
- data/src/core/tsi/ssl_transport_security_utils.h +19 -0
- data/src/core/util/event_log.cc +3 -3
- data/src/core/util/http_client/httpcli.cc +5 -5
- data/src/core/util/http_client/httpcli.h +1 -1
- data/src/core/util/json/json_object_loader.cc +7 -0
- data/src/core/util/json/json_object_loader.h +17 -2
- data/src/core/util/latent_see.cc +188 -39
- data/src/core/util/latent_see.h +71 -13
- data/src/core/util/linux/cpu.cc +12 -6
- data/src/core/util/mpscq.cc +3 -3
- data/src/core/util/notification.h +4 -4
- data/src/core/util/sync.h +20 -6
- data/src/core/util/sync_abseil.cc +3 -3
- data/src/core/util/table.h +20 -22
- data/src/core/util/trie_lookup.h +5 -1
- data/src/core/util/windows/env.cc +1 -0
- data/src/core/util/work_serializer.cc +3 -3
- data/src/core/xds/grpc/blackboard.cc +4 -3
- data/src/core/xds/grpc/certificate_provider_store.cc +2 -2
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.cc +10 -9
- data/src/core/xds/grpc/file_watcher_certificate_provider_factory.h +3 -3
- data/src/core/xds/grpc/streaming_call_promise_wrapper.cc +184 -0
- data/src/core/xds/grpc/streaming_call_promise_wrapper.h +210 -0
- data/src/core/xds/grpc/xds_audit_logger_registry.cc +0 -54
- data/src/core/xds/grpc/xds_audit_logger_registry.h +0 -8
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.cc +4 -30
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.h +0 -20
- data/src/core/xds/grpc/xds_client_grpc.cc +12 -12
- data/src/core/xds/grpc/xds_client_grpc.h +1 -1
- data/src/core/xds/grpc/xds_cluster_parser.cc +5 -1
- data/src/core/xds/grpc/xds_cluster_specifier_plugin.cc +2 -2
- data/src/core/xds/grpc/xds_common_types_parser.cc +12 -0
- data/src/core/xds/grpc/xds_endpoint.cc +1 -1
- data/src/core/xds/grpc/xds_endpoint_parser.cc +14 -3
- data/src/core/xds/grpc/xds_grpc_service_parser.cc +12 -10
- data/src/core/xds/grpc/xds_http_composite_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_composite_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_ext_proc_filter.cc +18 -19
- data/src/core/xds/grpc/xds_http_ext_proc_filter.h +3 -29
- data/src/core/xds/grpc/xds_http_fault_filter.cc +0 -4
- data/src/core/xds/grpc/xds_http_fault_filter.h +0 -26
- data/src/core/xds/grpc/xds_http_filter.h +1 -63
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_gcp_authn_filter.h +1 -27
- data/src/core/xds/grpc/xds_http_rbac_filter.cc +0 -527
- data/src/core/xds/grpc/xds_http_rbac_filter.h +0 -15
- data/src/core/xds/grpc/xds_http_stateful_session_filter.cc +0 -5
- data/src/core/xds/grpc/xds_http_stateful_session_filter.h +0 -26
- data/src/core/xds/grpc/xds_listener.cc +0 -2
- data/src/core/xds/grpc/xds_listener.h +0 -2
- data/src/core/xds/grpc/xds_listener_parser.cc +0 -7
- data/src/core/xds/grpc/xds_matcher.cc +17 -11
- data/src/core/xds/grpc/xds_matcher.h +4 -3
- data/src/core/xds/grpc/xds_matcher_context.cc +11 -0
- data/src/core/xds/grpc/xds_matcher_context.h +3 -2
- data/src/core/xds/grpc/xds_matcher_input.cc +19 -1
- data/src/core/xds/grpc/xds_matcher_parse.cc +3 -2
- data/src/core/xds/grpc/xds_route_config.cc +0 -2
- data/src/core/xds/grpc/xds_route_config.h +0 -2
- data/src/core/xds/grpc/xds_route_config_parser.cc +0 -5
- data/src/core/xds/grpc/xds_routing.cc +22 -112
- data/src/core/xds/grpc/xds_routing.h +2 -27
- data/src/core/xds/grpc/xds_transport_factory_grpc.cc +236 -0
- data/src/core/xds/grpc/xds_transport_factory_grpc.h +95 -0
- data/src/core/xds/grpc/xds_transport_grpc.cc +176 -299
- data/src/core/xds/grpc/xds_transport_grpc.h +60 -55
- data/src/core/xds/xds_client/lrs_client.cc +23 -22
- data/src/core/xds/xds_client/lrs_client.h +2 -1
- data/src/core/xds/xds_client/xds_client.cc +53 -37
- data/src/core/xds/xds_client/xds_client.h +6 -5
- data/src/core/xds/xds_client/xds_transport.h +113 -65
- data/src/core/xds/xds_client/xds_transport_factory.h +43 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +6 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +9 -0
- data/src/ruby/lib/grpc/generic/rpc_server.rb +2 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/README.md +1 -1
- data/src/ruby/pb/generate_proto_ruby.sh +1 -1
- data/third_party/abseil-cpp/absl/algorithm/algorithm.h +34 -2
- data/third_party/abseil-cpp/absl/algorithm/container.h +345 -147
- data/third_party/abseil-cpp/absl/base/attributes.h +67 -44
- data/third_party/abseil-cpp/absl/base/call_once.h +1 -0
- data/third_party/abseil-cpp/absl/base/casts.cc +61 -0
- data/third_party/abseil-cpp/absl/base/casts.h +135 -2
- data/third_party/abseil-cpp/absl/base/config.h +63 -41
- data/third_party/abseil-cpp/absl/base/fast_type_id.h +30 -2
- data/third_party/abseil-cpp/absl/base/internal/dynamic_annotations.h +1 -1
- data/third_party/abseil-cpp/absl/base/internal/hardening.h +136 -0
- data/third_party/abseil-cpp/absl/base/internal/iterator_traits.h +6 -2
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +39 -4
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +6 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_scheduling.h +77 -15
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +3 -4
- data/third_party/abseil-cpp/absl/base/internal/spinlock.cc +26 -24
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +74 -29
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +1 -11
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +52 -0
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +5 -1
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.h +5 -0
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h +1 -1
- data/third_party/abseil-cpp/absl/base/macros.h +76 -37
- data/third_party/abseil-cpp/absl/base/nullability.h +5 -5
- data/third_party/abseil-cpp/absl/base/optimization.h +4 -5
- data/third_party/abseil-cpp/absl/base/options.h +46 -18
- data/third_party/abseil-cpp/absl/base/policy_checks.h +5 -5
- data/third_party/abseil-cpp/absl/base/{internal/throw_delegate.cc → throw_delegate.cc} +9 -7
- data/third_party/abseil-cpp/absl/base/{internal/throw_delegate.h → throw_delegate.h} +4 -14
- data/third_party/abseil-cpp/absl/cleanup/cleanup.h +7 -2
- data/third_party/abseil-cpp/absl/cleanup/internal/cleanup.h +3 -2
- data/third_party/abseil-cpp/absl/container/btree_map.h +60 -10
- data/third_party/abseil-cpp/absl/container/btree_set.h +61 -15
- data/third_party/abseil-cpp/absl/container/fixed_array.h +19 -21
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +49 -27
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +50 -26
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +42 -36
- data/third_party/abseil-cpp/absl/container/internal/btree.h +32 -24
- data/third_party/abseil-cpp/absl/container/internal/btree_container.h +30 -22
- data/third_party/abseil-cpp/absl/container/internal/common.h +57 -5
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +1 -1
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +40 -36
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +119 -39
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +14 -2
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +14 -22
- data/third_party/abseil-cpp/absl/container/internal/hashtable_control_bytes.h +52 -52
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +7 -7
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +7 -7
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +32 -40
- data/third_party/abseil-cpp/absl/container/internal/layout.h +13 -13
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +95 -72
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +633 -365
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1016 -749
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set_resize_impl.h +0 -1
- data/third_party/abseil-cpp/absl/container/node_hash_map.h +58 -35
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +23 -6
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.h +7 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc.cc +4 -6
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +41 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_internal.h +0 -16
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_arm_combined.cc +5 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +304 -188
- data/third_party/abseil-cpp/absl/crc/internal/non_temporal_arm_intrinsics.h +4 -2
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +2 -2
- data/third_party/abseil-cpp/absl/debugging/internal/demangle_rust.h +8 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +4 -4
- data/third_party/abseil-cpp/absl/debugging/internal/examine_stack.cc +15 -1
- data/third_party/abseil-cpp/absl/debugging/internal/examine_stack.h +7 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +12 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h +6 -5
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_emscripten-inl.inc +13 -11
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_generic-inl.inc +14 -7
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +3 -2
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_riscv-inl.inc +6 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +14 -8
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +48 -38
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.cc +4 -0
- data/third_party/abseil-cpp/absl/debugging/stacktrace.cc +63 -118
- data/third_party/abseil-cpp/absl/debugging/stacktrace.h +7 -47
- data/third_party/abseil-cpp/absl/debugging/symbolize.cc +20 -2
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +83 -149
- data/third_party/abseil-cpp/absl/debugging/symbolize_emscripten.inc +4 -17
- data/third_party/abseil-cpp/absl/debugging/symbolize_unimplemented.inc +4 -4
- data/third_party/abseil-cpp/absl/debugging/symbolize_win32.inc +2 -4
- data/third_party/abseil-cpp/absl/flags/commandlineflag.h +8 -6
- data/third_party/abseil-cpp/absl/flags/declare.h +9 -0
- data/third_party/abseil-cpp/absl/flags/flag.h +2 -1
- data/third_party/abseil-cpp/absl/flags/internal/commandlineflag.h +1 -1
- data/third_party/abseil-cpp/absl/flags/internal/flag.cc +19 -18
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +33 -34
- data/third_party/abseil-cpp/absl/flags/internal/program_name.cc +2 -2
- data/third_party/abseil-cpp/absl/flags/marshalling.cc +1 -16
- data/third_party/abseil-cpp/absl/flags/marshalling.h +2 -28
- data/third_party/abseil-cpp/absl/flags/reflection.cc +11 -7
- data/third_party/abseil-cpp/absl/flags/usage_config.cc +2 -2
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +22 -19
- data/third_party/abseil-cpp/absl/functional/bind_front.h +7 -1
- data/third_party/abseil-cpp/absl/functional/function_ref.h +125 -20
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +43 -31
- data/third_party/abseil-cpp/absl/functional/internal/front_binder.h +4 -4
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +44 -6
- data/third_party/abseil-cpp/absl/hash/hash.h +1 -1
- data/third_party/abseil-cpp/absl/hash/internal/city.cc +39 -51
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +379 -14
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +457 -353
- data/third_party/abseil-cpp/absl/log/absl_vlog_is_on.h +0 -2
- data/third_party/abseil-cpp/absl/log/internal/check_impl.h +2 -1
- data/third_party/abseil-cpp/absl/log/internal/check_op.cc +4 -0
- data/third_party/abseil-cpp/absl/log/internal/check_op.h +128 -50
- data/third_party/abseil-cpp/absl/log/internal/conditions.h +38 -35
- data/third_party/abseil-cpp/absl/log/internal/log_impl.h +108 -110
- data/third_party/abseil-cpp/absl/log/internal/log_message.cc +10 -6
- data/third_party/abseil-cpp/absl/log/internal/log_message.h +19 -1
- data/third_party/abseil-cpp/absl/log/internal/log_sink_set.cc +4 -4
- data/third_party/abseil-cpp/absl/log/internal/nullstream.h +1 -1
- data/third_party/abseil-cpp/absl/log/internal/proto.cc +13 -0
- data/third_party/abseil-cpp/absl/log/internal/strip.h +30 -31
- data/third_party/abseil-cpp/absl/log/internal/structured_proto.cc +5 -5
- data/third_party/abseil-cpp/absl/log/internal/structured_proto.h +6 -5
- data/third_party/abseil-cpp/absl/log/internal/vlog_config.cc +30 -30
- data/third_party/abseil-cpp/absl/log/internal/vlog_config.h +0 -1
- data/third_party/abseil-cpp/absl/log/log.h +2 -2
- data/third_party/abseil-cpp/absl/log/log_entry.cc +263 -0
- data/third_party/abseil-cpp/absl/log/log_entry.h +2 -0
- data/third_party/abseil-cpp/absl/log/vlog_is_on.h +0 -2
- data/third_party/abseil-cpp/absl/memory/memory.h +55 -5
- data/third_party/abseil-cpp/absl/meta/type_traits.h +161 -56
- data/third_party/abseil-cpp/absl/numeric/int128.h +41 -21
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +16 -22
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +5 -7
- data/third_party/abseil-cpp/absl/numeric/internal/bits.h +32 -4
- data/third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h +9 -9
- data/third_party/abseil-cpp/absl/random/beta_distribution.h +2 -2
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +26 -53
- data/third_party/abseil-cpp/absl/random/discrete_distribution.h +1 -1
- data/third_party/abseil-cpp/absl/random/distributions.h +17 -17
- data/third_party/abseil-cpp/absl/random/exponential_distribution.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/distribution_caller.h +8 -21
- data/third_party/abseil-cpp/absl/random/internal/entropy_pool.cc +2 -2
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h +2 -2
- data/third_party/abseil-cpp/absl/random/internal/nonsecure_base.h +2 -2
- data/third_party/abseil-cpp/absl/random/internal/pcg_engine.h +6 -6
- data/third_party/abseil-cpp/absl/random/internal/platform.h +0 -13
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +6 -6
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +2 -2
- data/third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h +6 -5
- data/third_party/abseil-cpp/absl/random/internal/seed_material.cc +5 -31
- data/third_party/abseil-cpp/absl/random/internal/seed_material.h +2 -1
- data/third_party/abseil-cpp/absl/random/internal/traits.h +21 -0
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +23 -23
- data/third_party/abseil-cpp/absl/random/mocking_access.h +74 -0
- data/third_party/abseil-cpp/absl/random/uniform_real_distribution.h +1 -1
- data/third_party/abseil-cpp/absl/status/internal/status_internal.cc +63 -18
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +30 -4
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +225 -63
- data/third_party/abseil-cpp/absl/status/status.cc +66 -70
- data/third_party/abseil-cpp/absl/status/status.h +254 -23
- data/third_party/abseil-cpp/absl/status/status_payload_printer.h +3 -2
- data/third_party/abseil-cpp/absl/status/statusor.h +117 -137
- data/third_party/abseil-cpp/absl/strings/ascii.h +10 -6
- data/third_party/abseil-cpp/absl/strings/cord.cc +41 -17
- data/third_party/abseil-cpp/absl/strings/cord.h +26 -17
- data/third_party/abseil-cpp/absl/strings/cord_buffer.h +4 -2
- data/third_party/abseil-cpp/absl/strings/escaping.cc +305 -125
- data/third_party/abseil-cpp/absl/strings/escaping.h +12 -2
- data/third_party/abseil-cpp/absl/strings/internal/append_and_overwrite.h +93 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +6 -6
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +27 -21
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.h +11 -19
- data/third_party/abseil-cpp/absl/strings/internal/damerau_levenshtein_distance.cc +6 -0
- data/third_party/abseil-cpp/absl/strings/internal/damerau_levenshtein_distance.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +0 -141
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +2 -24
- data/third_party/abseil-cpp/absl/strings/internal/resize_uninitialized.h +31 -36
- data/third_party/abseil-cpp/absl/strings/internal/stl_type_traits.h +39 -39
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +14 -22
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +2 -2
- data/third_party/abseil-cpp/absl/strings/internal/str_format/checker.h +2 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +921 -231
- data/third_party/abseil-cpp/absl/strings/internal/str_join_internal.h +18 -16
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +16 -12
- data/third_party/abseil-cpp/absl/strings/internal/stringify_sink.h +12 -0
- data/third_party/abseil-cpp/absl/strings/numbers.cc +477 -8
- data/third_party/abseil-cpp/absl/strings/numbers.h +29 -12
- data/third_party/abseil-cpp/absl/strings/resize_and_overwrite.h +198 -0
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +96 -91
- data/third_party/abseil-cpp/absl/strings/str_cat.h +53 -13
- data/third_party/abseil-cpp/absl/strings/str_split.h +14 -9
- data/third_party/abseil-cpp/absl/strings/string_view.h +10 -716
- data/third_party/abseil-cpp/absl/strings/substitute.cc +24 -24
- data/third_party/abseil-cpp/absl/strings/substitute.h +2 -2
- data/third_party/abseil-cpp/absl/synchronization/barrier.cc +1 -1
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.cc +2 -2
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +24 -3
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +30 -33
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +2 -2
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +5 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +41 -29
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +199 -94
- data/third_party/abseil-cpp/absl/synchronization/notification.cc +5 -5
- data/third_party/abseil-cpp/absl/synchronization/notification.h +1 -1
- data/third_party/abseil-cpp/absl/time/clock.cc +29 -30
- data/third_party/abseil-cpp/absl/time/clock.h +3 -0
- data/third_party/abseil-cpp/absl/time/duration.cc +2 -2
- data/third_party/abseil-cpp/absl/time/format.cc +3 -10
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +12 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +131 -91
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +6 -103
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_name_win.cc +185 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_name_win.h +37 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +10 -15
- data/third_party/abseil-cpp/absl/time/time.cc +4 -4
- data/third_party/abseil-cpp/absl/time/time.h +14 -13
- data/third_party/abseil-cpp/absl/types/compare.h +64 -63
- data/third_party/abseil-cpp/absl/types/internal/span.h +6 -6
- data/third_party/abseil-cpp/absl/types/optional.h +31 -4
- data/third_party/abseil-cpp/absl/types/optional_ref.h +295 -0
- data/third_party/{boringssl-with-bazel/crypto/x509/x_val.cc → abseil-cpp/absl/types/source_location.cc} +4 -14
- data/third_party/abseil-cpp/absl/types/source_location.h +172 -0
- data/third_party/abseil-cpp/absl/types/span.h +67 -38
- data/third_party/abseil-cpp/absl/types/variant.h +75 -18
- data/third_party/abseil-cpp/absl/utility/utility.h +112 -16
- data/third_party/boringssl-with-bazel/crypto/aes/aes.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/armv8_feature_parsing.h +67 -0
- data/third_party/boringssl-with-bazel/crypto/asn1/a_bitstr.cc +143 -105
- data/third_party/boringssl-with-bazel/crypto/asn1/a_bool.cc +5 -8
- data/third_party/boringssl-with-bazel/crypto/asn1/a_d2i_fp.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/asn1/a_dup.cc +6 -6
- data/third_party/boringssl-with-bazel/crypto/asn1/a_gentm.cc +33 -12
- data/third_party/boringssl-with-bazel/crypto/asn1/a_i2d_fp.cc +7 -6
- data/third_party/boringssl-with-bazel/crypto/asn1/a_int.cc +80 -52
- data/third_party/boringssl-with-bazel/crypto/asn1/a_mbstr.cc +7 -4
- data/third_party/boringssl-with-bazel/crypto/asn1/a_object.cc +70 -72
- data/third_party/boringssl-with-bazel/crypto/asn1/a_strex.cc +38 -42
- data/third_party/boringssl-with-bazel/crypto/asn1/a_strnid.cc +41 -39
- data/third_party/boringssl-with-bazel/crypto/asn1/a_time.cc +59 -35
- data/third_party/boringssl-with-bazel/crypto/asn1/a_type.cc +325 -30
- data/third_party/boringssl-with-bazel/crypto/asn1/a_utctm.cc +32 -13
- data/third_party/boringssl-with-bazel/crypto/asn1/asn1_lib.cc +129 -31
- data/third_party/boringssl-with-bazel/crypto/asn1/asn_pack.cc +10 -10
- data/third_party/boringssl-with-bazel/crypto/asn1/f_int.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/f_string.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/internal.h +307 -115
- data/third_party/boringssl-with-bazel/crypto/asn1/posix_time.cc +8 -5
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_dec.cc +376 -728
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_enc.cc +215 -528
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_fre.cc +30 -31
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_new.cc +50 -52
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_typ.cc +18 -6
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_utl.cc +63 -74
- data/third_party/boringssl-with-bazel/crypto/base64/base64.cc +14 -15
- data/third_party/boringssl-with-bazel/crypto/bcm_support.h +7 -29
- data/third_party/boringssl-with-bazel/crypto/bio/bio.cc +234 -177
- data/third_party/boringssl-with-bazel/crypto/bio/bio_mem.cc +78 -86
- data/third_party/boringssl-with-bazel/crypto/bio/connect.cc +154 -200
- data/third_party/boringssl-with-bazel/crypto/bio/errno.cc +3 -1
- data/third_party/boringssl-with-bazel/crypto/bio/fd.cc +55 -55
- data/third_party/boringssl-with-bazel/crypto/bio/file.cc +69 -78
- data/third_party/boringssl-with-bazel/crypto/bio/hexdump.cc +6 -4
- data/third_party/boringssl-with-bazel/crypto/bio/internal.h +69 -18
- data/third_party/boringssl-with-bazel/crypto/bio/pair.cc +116 -136
- data/third_party/boringssl-with-bazel/crypto/bio/printf.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/bio/socket.cc +116 -50
- data/third_party/boringssl-with-bazel/crypto/bio/socket_helper.cc +53 -5
- data/third_party/boringssl-with-bazel/crypto/blake2/blake2.cc +9 -5
- data/third_party/boringssl-with-bazel/crypto/bn/bn_asn1.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/bn/convert.cc +56 -70
- data/third_party/boringssl-with-bazel/crypto/bn/div.cc +102 -0
- data/third_party/boringssl-with-bazel/crypto/bn/exponentiation.cc +26 -42
- data/third_party/boringssl-with-bazel/crypto/bn/sqrt.cc +93 -0
- data/third_party/boringssl-with-bazel/crypto/buf/buf.cc +6 -5
- data/third_party/boringssl-with-bazel/crypto/bytestring/asn1_compat.cc +6 -5
- data/third_party/boringssl-with-bazel/crypto/bytestring/ber.cc +22 -20
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbb.cc +182 -97
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbs.cc +114 -49
- data/third_party/boringssl-with-bazel/crypto/bytestring/internal.h +84 -24
- data/third_party/boringssl-with-bazel/crypto/bytestring/unicode.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/chacha/chacha.cc +5 -3
- data/third_party/boringssl-with-bazel/crypto/chacha/internal.h +23 -22
- data/third_party/boringssl-with-bazel/crypto/cipher/derive_key.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aesctrhmac.cc +73 -58
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aeseax.cc +132 -70
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aesgcmsiv.cc +363 -367
- data/third_party/boringssl-with-bazel/crypto/cipher/e_chacha20poly1305.cc +200 -137
- data/third_party/boringssl-with-bazel/crypto/cipher/e_des.cc +45 -29
- data/third_party/boringssl-with-bazel/crypto/cipher/e_null.cc +9 -5
- data/third_party/boringssl-with-bazel/crypto/cipher/e_rc2.cc +43 -28
- data/third_party/boringssl-with-bazel/crypto/cipher/e_rc4.cc +7 -5
- data/third_party/boringssl-with-bazel/crypto/cipher/e_tls.cc +253 -237
- data/third_party/boringssl-with-bazel/crypto/cipher/get_cipher.cc +12 -12
- data/third_party/boringssl-with-bazel/crypto/cipher/internal.h +217 -58
- data/third_party/boringssl-with-bazel/crypto/cipher/tls_cbc.cc +111 -111
- data/third_party/boringssl-with-bazel/crypto/cms/cms.cc +48 -42
- data/third_party/boringssl-with-bazel/crypto/conf/conf.cc +69 -63
- data/third_party/boringssl-with-bazel/crypto/conf/internal.h +11 -12
- data/third_party/boringssl-with-bazel/crypto/cpu_aarch64_apple.cc +8 -5
- data/third_party/boringssl-with-bazel/crypto/cpu_aarch64_fuchsia.cc +6 -1
- data/third_party/boringssl-with-bazel/crypto/cpu_aarch64_linux.cc +7 -1
- data/third_party/boringssl-with-bazel/crypto/cpu_aarch64_openbsd.cc +7 -21
- data/third_party/boringssl-with-bazel/crypto/cpu_aarch64_sysreg.cc +15 -41
- data/third_party/boringssl-with-bazel/crypto/cpu_aarch64_win.cc +16 -3
- data/third_party/boringssl-with-bazel/crypto/cpu_arm_freebsd.cc +4 -2
- data/third_party/boringssl-with-bazel/crypto/cpu_arm_linux.cc +54 -31
- data/third_party/boringssl-with-bazel/crypto/cpu_arm_linux.h +79 -101
- data/third_party/boringssl-with-bazel/crypto/cpu_intel.cc +51 -45
- data/third_party/boringssl-with-bazel/crypto/crypto.cc +26 -55
- data/third_party/boringssl-with-bazel/crypto/curve25519/curve25519.cc +323 -41
- data/third_party/boringssl-with-bazel/crypto/curve25519/curve25519_tables.h +6 -6
- data/third_party/boringssl-with-bazel/crypto/curve25519/internal.h +39 -29
- data/third_party/boringssl-with-bazel/crypto/curve25519/spake25519.cc +23 -20
- data/third_party/boringssl-with-bazel/crypto/des/des.cc +27 -19
- data/third_party/boringssl-with-bazel/crypto/des/internal.h +4 -9
- data/third_party/boringssl-with-bazel/crypto/dh/dh_asn1.cc +34 -49
- data/third_party/boringssl-with-bazel/crypto/dh/params.cc +45 -42
- data/third_party/boringssl-with-bazel/crypto/digest/digest_extra.cc +87 -40
- data/third_party/boringssl-with-bazel/crypto/dsa/dsa.cc +237 -260
- data/third_party/boringssl-with-bazel/crypto/dsa/dsa_asn1.cc +100 -173
- data/third_party/boringssl-with-bazel/crypto/dsa/internal.h +23 -21
- data/third_party/boringssl-with-bazel/crypto/ec/ec_asn1.cc +181 -209
- data/third_party/boringssl-with-bazel/crypto/ec/ec_derive.cc +26 -28
- data/third_party/boringssl-with-bazel/crypto/ec/hash_to_curve.cc +459 -196
- data/third_party/boringssl-with-bazel/crypto/ec/internal.h +54 -18
- data/third_party/boringssl-with-bazel/crypto/ecdh/ecdh.cc +7 -5
- data/third_party/boringssl-with-bazel/crypto/ecdsa/ecdsa_asn1.cc +50 -70
- data/third_party/boringssl-with-bazel/crypto/ecdsa/ecdsa_p1363.cc +54 -0
- data/third_party/boringssl-with-bazel/crypto/engine/engine.cc +7 -7
- data/third_party/boringssl-with-bazel/crypto/err/err.cc +119 -107
- data/third_party/boringssl-with-bazel/crypto/err/internal.h +8 -21
- data/third_party/boringssl-with-bazel/crypto/evp/evp.cc +241 -166
- data/third_party/boringssl-with-bazel/crypto/evp/evp_asn1.cc +202 -234
- data/third_party/boringssl-with-bazel/crypto/evp/evp_ctx.cc +260 -159
- data/third_party/boringssl-with-bazel/crypto/evp/evp_kem.cc +101 -0
- data/third_party/boringssl-with-bazel/crypto/evp/internal.h +296 -137
- data/third_party/boringssl-with-bazel/crypto/evp/p_dh.cc +198 -25
- data/third_party/boringssl-with-bazel/crypto/evp/p_dsa.cc +333 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_ec.cc +548 -42
- data/third_party/boringssl-with-bazel/crypto/evp/p_ed25519.cc +270 -14
- data/third_party/boringssl-with-bazel/crypto/evp/p_hkdf.cc +70 -102
- data/third_party/boringssl-with-bazel/crypto/evp/p_mldsa.cc +549 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_mlkem.cc +510 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_rsa.cc +734 -158
- data/third_party/boringssl-with-bazel/crypto/evp/p_x25519.cc +290 -28
- data/third_party/boringssl-with-bazel/crypto/evp/p_xwing.cc +300 -0
- data/third_party/boringssl-with-bazel/crypto/evp/pbkdf.cc +14 -7
- data/third_party/boringssl-with-bazel/crypto/evp/print.cc +34 -89
- data/third_party/boringssl-with-bazel/crypto/evp/scrypt.cc +23 -21
- data/third_party/boringssl-with-bazel/crypto/evp/sign.cc +23 -42
- data/third_party/boringssl-with-bazel/crypto/ex_data.cc +40 -41
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/aes.cc.inc +34 -28
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/aes_nohw.cc.inc +120 -122
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/cbc.cc.inc +16 -14
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/cfb.cc.inc +12 -10
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/ctr.cc.inc +7 -5
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/gcm.cc.inc +41 -31
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/gcm_nohw.cc.inc +15 -13
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/internal.h +193 -177
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/key_wrap.cc.inc +5 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/mode_wrappers.cc.inc +7 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/ofb.cc.inc +7 -5
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bcm.cc +24 -18
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bcm_interface.h +512 -384
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/add.cc.inc +16 -9
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/asm/x86_64-gcc.cc.inc +64 -45
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/bn.cc.inc +40 -37
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/bytes.cc.inc +27 -22
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/cmp.cc.inc +9 -7
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/ctx.cc.inc +62 -126
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/div.cc.inc +92 -167
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/div_extra.cc.inc +15 -12
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/exponentiation.cc.inc +98 -95
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/gcd.cc.inc +73 -92
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/gcd_extra.cc.inc +59 -71
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/generic.cc.inc +54 -57
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/internal.h +339 -255
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/jacobi.cc.inc +13 -20
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/montgomery.cc.inc +80 -95
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/montgomery_inv.cc.inc +55 -98
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/mul.cc.inc +58 -419
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/prime.cc.inc +167 -216
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/random.cc.inc +27 -26
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/rsaz_exp.cc.inc +18 -16
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/rsaz_exp.h +47 -49
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/shift.cc.inc +14 -17
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/sqrt.cc.inc +40 -129
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/aead.cc.inc +429 -105
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/cipher.cc.inc +381 -216
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/e_aes.cc.inc +230 -225
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/e_aesccm.cc.inc +115 -84
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/internal.h +375 -27
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cmac/cmac.cc.inc +28 -23
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/delocate.h +36 -40
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/check.cc.inc +68 -78
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/dh.cc.inc +157 -199
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/internal.h +24 -24
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/digest/digest.cc.inc +40 -69
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/digest/digests.cc.inc +13 -7
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/digest/internal.h +13 -11
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/digest/md32_common.h +86 -81
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/digestsign/digestsign.cc.inc +38 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec.cc.inc +254 -203
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec_key.cc.inc +196 -154
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec_montgomery.cc.inc +78 -138
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/felem.cc.inc +151 -5
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/internal.h +332 -289
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/oct.cc.inc +45 -166
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.cc.inc +44 -45
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.h +18 -18
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256.cc.inc +75 -246
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/scalar.cc.inc +44 -39
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/simple.cc.inc +73 -106
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/simple_mul.cc.inc +39 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/util.cc.inc +6 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/wnaf.cc.inc +23 -20
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdh/ecdh.cc.inc +6 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdsa/ecdsa.cc.inc +48 -38
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdsa/internal.h +5 -10
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/internal.h +38 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/jitter.cc.inc +463 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/sha512.cc.inc +329 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/fips_shared_support.cc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/hkdf/hkdf.cc.inc +8 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/hmac/hmac.cc.inc +19 -16
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/internal.h +109 -14
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/keccak.cc.inc +424 -56
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mldsa/fips_known_values.inc +5 -5
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mldsa/mldsa.cc.inc +1796 -773
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mlkem/fips_known_values.inc +5 -5
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mlkem/mlkem.cc.inc +902 -443
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rand/android_entropy_client.cc.inc +82 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rand/ctrdrbg.cc.inc +240 -53
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rand/internal.h +41 -26
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rand/rand.cc.inc +221 -218
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/internal.h +64 -67
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/padding.cc.inc +49 -57
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/rsa.cc.inc +247 -234
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/rsa_impl.cc.inc +395 -695
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/self_check/fips.cc.inc +10 -10
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/self_check/self_check.cc.inc +479 -449
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/service_indicator/internal.h +34 -11
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/service_indicator/service_indicator.cc.inc +46 -43
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/internal.h +61 -70
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha1.cc.inc +29 -15
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha256.cc.inc +46 -30
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha512.cc.inc +47 -47
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/address.h +98 -73
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/fors.cc.inc +108 -98
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/fors.h +14 -24
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/merkle.cc.inc +94 -91
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/merkle.h +19 -31
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/params.h +156 -56
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/slhdsa.cc.inc +318 -132
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/thash.cc.inc +234 -81
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/thash.h +20 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/wots.cc.inc +97 -96
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/wots.h +10 -20
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/tls/internal.h +2 -16
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/tls/kdf.cc.inc +26 -26
- data/third_party/boringssl-with-bazel/crypto/fuzzer_mode.cc +5 -5
- data/third_party/boringssl-with-bazel/crypto/hpke/hpke.cc +531 -112
- data/third_party/boringssl-with-bazel/crypto/hrss/hrss.cc +165 -161
- data/third_party/boringssl-with-bazel/crypto/hrss/internal.h +9 -13
- data/third_party/boringssl-with-bazel/crypto/internal.h +594 -394
- data/third_party/boringssl-with-bazel/crypto/lhash/internal.h +38 -37
- data/third_party/boringssl-with-bazel/crypto/lhash/lhash.cc +68 -65
- data/third_party/boringssl-with-bazel/crypto/md4/md4.cc +19 -6
- data/third_party/boringssl-with-bazel/crypto/md5/internal.h +6 -9
- data/third_party/boringssl-with-bazel/crypto/md5/md5.cc +18 -6
- data/third_party/boringssl-with-bazel/crypto/mem.cc +61 -65
- data/third_party/boringssl-with-bazel/crypto/mem_internal.h +706 -0
- data/third_party/boringssl-with-bazel/crypto/mldsa/mldsa.cc +238 -32
- data/third_party/boringssl-with-bazel/crypto/mlkem/mlkem.cc +21 -65
- data/third_party/boringssl-with-bazel/crypto/obj/obj.cc +132 -157
- data/third_party/boringssl-with-bazel/crypto/obj/obj_dat.h +175 -1
- data/third_party/boringssl-with-bazel/crypto/obj/obj_xref.cc +14 -11
- data/third_party/boringssl-with-bazel/crypto/params_internal.h +30 -0
- data/third_party/boringssl-with-bazel/crypto/pem/internal.h +106 -15
- data/third_party/boringssl-with-bazel/crypto/pem/pem_all.cc +28 -24
- data/third_party/boringssl-with-bazel/crypto/pem/pem_info.cc +72 -76
- data/third_party/boringssl-with-bazel/crypto/pem/pem_lib.cc +239 -273
- data/third_party/boringssl-with-bazel/crypto/pem/pem_oth.cc +6 -6
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pk8.cc +16 -13
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pkey.cc +21 -15
- data/third_party/boringssl-with-bazel/crypto/pem/pem_x509.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_xaux.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pkcs7/internal.h +12 -17
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7.cc +29 -27
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7_x509.cc +55 -49
- data/third_party/boringssl-with-bazel/crypto/pkcs8/internal.h +21 -26
- data/third_party/boringssl-with-bazel/crypto/pkcs8/p5_pbev2.cc +33 -31
- data/third_party/boringssl-with-bazel/crypto/pkcs8/pkcs8.cc +73 -81
- data/third_party/boringssl-with-bazel/crypto/pkcs8/pkcs8_x509.cc +140 -139
- data/third_party/boringssl-with-bazel/crypto/poly1305/internal.h +20 -7
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305.cc +5 -4
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_arm.cc +43 -59
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_vec.cc +32 -29
- data/third_party/boringssl-with-bazel/crypto/pool/internal.h +64 -20
- data/third_party/boringssl-with-bazel/crypto/pool/pool.cc +177 -157
- data/third_party/boringssl-with-bazel/crypto/rand/deterministic.cc +9 -16
- data/third_party/boringssl-with-bazel/crypto/rand/fork_detect.cc +70 -42
- data/third_party/boringssl-with-bazel/crypto/rand/forkunsafe.cc +7 -7
- data/third_party/boringssl-with-bazel/crypto/rand/getentropy.cc +6 -13
- data/third_party/boringssl-with-bazel/crypto/rand/internal.h +16 -4
- data/third_party/boringssl-with-bazel/crypto/rand/ios.cc +4 -11
- data/third_party/boringssl-with-bazel/crypto/rand/rand.cc +11 -9
- data/third_party/boringssl-with-bazel/crypto/rand/trusty.cc +4 -11
- data/third_party/boringssl-with-bazel/crypto/rand/urandom.cc +16 -195
- data/third_party/boringssl-with-bazel/crypto/rand/windows.cc +12 -19
- data/third_party/boringssl-with-bazel/crypto/refcount.cc +7 -17
- data/third_party/boringssl-with-bazel/crypto/rsa/internal.h +22 -7
- data/third_party/boringssl-with-bazel/crypto/rsa/rsa_asn1.cc +199 -78
- data/third_party/boringssl-with-bazel/crypto/rsa/rsa_crypt.cc +49 -50
- data/third_party/boringssl-with-bazel/crypto/rsa/rsa_extra.cc +11 -0
- data/third_party/boringssl-with-bazel/crypto/rsa/rsa_print.cc +4 -6
- data/third_party/boringssl-with-bazel/crypto/sha/sha1.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/sha/sha256.cc +3 -1
- data/third_party/boringssl-with-bazel/crypto/sha/sha512.cc +6 -4
- data/third_party/boringssl-with-bazel/crypto/siphash/siphash.cc +2 -0
- data/third_party/boringssl-with-bazel/crypto/slhdsa/slhdsa.cc +60 -6
- data/third_party/boringssl-with-bazel/crypto/spake2plus/internal.h +31 -31
- data/third_party/boringssl-with-bazel/crypto/spake2plus/spake2plus.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/stack/stack.cc +96 -130
- data/third_party/boringssl-with-bazel/crypto/thread.cc +14 -14
- data/third_party/boringssl-with-bazel/crypto/thread_none.cc +10 -13
- data/third_party/boringssl-with-bazel/crypto/thread_pthread.cc +22 -35
- data/third_party/boringssl-with-bazel/crypto/thread_win.cc +29 -40
- data/third_party/boringssl-with-bazel/crypto/trust_token/internal.h +81 -88
- data/third_party/boringssl-with-bazel/crypto/trust_token/pmbtoken.cc +160 -144
- data/third_party/boringssl-with-bazel/crypto/trust_token/trust_token.cc +96 -80
- data/third_party/boringssl-with-bazel/crypto/trust_token/voprf.cc +90 -87
- data/third_party/boringssl-with-bazel/crypto/x509/a_digest.cc +5 -5
- data/third_party/boringssl-with-bazel/crypto/x509/a_sign.cc +51 -48
- data/third_party/boringssl-with-bazel/crypto/x509/a_verify.cc +39 -36
- data/third_party/boringssl-with-bazel/crypto/x509/algorithm.cc +47 -16
- data/third_party/boringssl-with-bazel/crypto/x509/asn1_gen.cc +41 -43
- data/third_party/boringssl-with-bazel/crypto/x509/by_dir.cc +183 -237
- data/third_party/boringssl-with-bazel/crypto/x509/by_file.cc +29 -30
- data/third_party/boringssl-with-bazel/crypto/x509/internal.h +346 -216
- data/third_party/boringssl-with-bazel/crypto/x509/name_print.cc +15 -13
- data/third_party/boringssl-with-bazel/crypto/x509/policy.cc +415 -525
- data/third_party/boringssl-with-bazel/crypto/x509/rsa_pss.cc +95 -272
- data/third_party/boringssl-with-bazel/crypto/x509/t_crl.cc +11 -8
- data/third_party/boringssl-with-bazel/crypto/x509/t_req.cc +26 -23
- data/third_party/boringssl-with-bazel/crypto/x509/t_x509.cc +27 -22
- data/third_party/boringssl-with-bazel/crypto/x509/t_x509a.cc +3 -1
- data/third_party/boringssl-with-bazel/crypto/x509/v3_akey.cc +69 -76
- data/third_party/boringssl-with-bazel/crypto/x509/v3_akeya.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/x509/v3_alt.cc +112 -69
- data/third_party/boringssl-with-bazel/crypto/x509/v3_bcons.cc +15 -14
- data/third_party/boringssl-with-bazel/crypto/x509/v3_bitst.cc +16 -18
- data/third_party/boringssl-with-bazel/crypto/x509/v3_conf.cc +62 -67
- data/third_party/boringssl-with-bazel/crypto/x509/v3_cpols.cc +143 -170
- data/third_party/boringssl-with-bazel/crypto/x509/v3_crld.cc +123 -209
- data/third_party/boringssl-with-bazel/crypto/x509/v3_enum.cc +13 -12
- data/third_party/boringssl-with-bazel/crypto/x509/v3_extku.cc +17 -34
- data/third_party/boringssl-with-bazel/crypto/x509/v3_genn.cc +20 -10
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ia5.cc +22 -18
- data/third_party/boringssl-with-bazel/crypto/x509/v3_info.cc +45 -47
- data/third_party/boringssl-with-bazel/crypto/x509/v3_int.cc +35 -33
- data/third_party/boringssl-with-bazel/crypto/x509/v3_lib.cc +106 -61
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ncons.cc +642 -358
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ocsp.cc +25 -22
- data/third_party/boringssl-with-bazel/crypto/x509/v3_pcons.cc +15 -14
- data/third_party/boringssl-with-bazel/crypto/x509/v3_pmaps.cc +16 -15
- data/third_party/boringssl-with-bazel/crypto/x509/v3_prn.cc +6 -6
- data/third_party/boringssl-with-bazel/crypto/x509/v3_purp.cc +149 -159
- data/third_party/boringssl-with-bazel/crypto/x509/v3_skey.cc +23 -26
- data/third_party/boringssl-with-bazel/crypto/x509/v3_utl.cc +161 -192
- data/third_party/boringssl-with-bazel/crypto/x509/x509.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x509_att.cc +32 -30
- data/third_party/boringssl-with-bazel/crypto/x509/x509_cmp.cc +95 -90
- data/third_party/boringssl-with-bazel/crypto/x509/x509_d2.cc +9 -9
- data/third_party/boringssl-with-bazel/crypto/x509/x509_def.cc +6 -8
- data/third_party/boringssl-with-bazel/crypto/x509/x509_ext.cc +46 -24
- data/third_party/boringssl-with-bazel/crypto/x509/x509_lu.cc +211 -195
- data/third_party/boringssl-with-bazel/crypto/x509/x509_mtc.cc +598 -0
- data/third_party/boringssl-with-bazel/crypto/x509/x509_obj.cc +23 -18
- data/third_party/boringssl-with-bazel/crypto/x509/x509_req.cc +37 -46
- data/third_party/boringssl-with-bazel/crypto/x509/x509_set.cc +58 -90
- data/third_party/boringssl-with-bazel/crypto/x509/x509_trs.cc +18 -13
- data/third_party/boringssl-with-bazel/crypto/x509/x509_v3.cc +33 -33
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vfy.cc +398 -474
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vpm.cc +57 -48
- data/third_party/boringssl-with-bazel/crypto/x509/x509cset.cc +27 -40
- data/third_party/boringssl-with-bazel/crypto/x509/x509name.cc +91 -79
- data/third_party/boringssl-with-bazel/crypto/x509/x509rset.cc +5 -17
- data/third_party/boringssl-with-bazel/crypto/x509/x509spki.cc +13 -13
- data/third_party/boringssl-with-bazel/crypto/x509/x_algor.cc +131 -24
- data/third_party/boringssl-with-bazel/crypto/x509/x_all.cc +73 -39
- data/third_party/boringssl-with-bazel/crypto/x509/x_attrib.cc +10 -4
- data/third_party/boringssl-with-bazel/crypto/x509/x_crl.cc +76 -93
- data/third_party/boringssl-with-bazel/crypto/x509/x_exten.cc +6 -0
- data/third_party/boringssl-with-bazel/crypto/x509/x_name.cc +294 -388
- data/third_party/boringssl-with-bazel/crypto/x509/x_pubkey.cc +113 -84
- data/third_party/boringssl-with-bazel/crypto/x509/x_req.cc +12 -6
- data/third_party/boringssl-with-bazel/crypto/x509/x_sig.cc +4 -4
- data/third_party/boringssl-with-bazel/crypto/x509/x_spki.cc +11 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x_x509.cc +282 -277
- data/third_party/boringssl-with-bazel/crypto/x509/x_x509a.cc +60 -60
- data/third_party/boringssl-with-bazel/crypto/xwing/xwing.cc +257 -0
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_64_win_asm.inc +325 -0
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_win_asm.inc +325 -0
- data/third_party/boringssl-with-bazel/gen/crypto/err_data.cc +538 -500
- data/third_party/boringssl-with-bazel/include/openssl/aead.h +279 -119
- data/third_party/boringssl-with-bazel/include/openssl/aes.h +43 -43
- data/third_party/boringssl-with-bazel/include/openssl/asm_base.h +30 -17
- data/third_party/boringssl-with-bazel/include/openssl/asn1.h +641 -635
- data/third_party/boringssl-with-bazel/include/openssl/asn1t.h +7 -9
- data/third_party/boringssl-with-bazel/include/openssl/base.h +76 -69
- data/third_party/boringssl-with-bazel/include/openssl/base64.h +30 -30
- data/third_party/boringssl-with-bazel/include/openssl/bio.h +394 -322
- data/third_party/boringssl-with-bazel/include/openssl/blake2.h +15 -11
- data/third_party/boringssl-with-bazel/include/openssl/blowfish.h +10 -3
- data/third_party/boringssl-with-bazel/include/openssl/bn.h +298 -306
- data/third_party/boringssl-with-bazel/include/openssl/buf.h +14 -14
- data/third_party/boringssl-with-bazel/include/openssl/bytestring.h +305 -208
- data/third_party/boringssl-with-bazel/include/openssl/cast.h +45 -8
- data/third_party/boringssl-with-bazel/include/openssl/chacha.h +3 -3
- data/third_party/boringssl-with-bazel/include/openssl/cipher.h +345 -161
- data/third_party/boringssl-with-bazel/include/openssl/cmac.h +13 -13
- data/third_party/boringssl-with-bazel/include/openssl/cms.h +35 -34
- data/third_party/boringssl-with-bazel/include/openssl/conf.h +15 -14
- data/third_party/boringssl-with-bazel/include/openssl/configuration.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/crypto.h +15 -13
- data/third_party/boringssl-with-bazel/include/openssl/ctrdrbg.h +49 -15
- data/third_party/boringssl-with-bazel/include/openssl/curve25519.h +60 -24
- data/third_party/boringssl-with-bazel/include/openssl/des.h +22 -16
- data/third_party/boringssl-with-bazel/include/openssl/dh.h +95 -95
- data/third_party/boringssl-with-bazel/include/openssl/digest.h +144 -75
- data/third_party/boringssl-with-bazel/include/openssl/dsa.h +101 -101
- data/third_party/boringssl-with-bazel/include/openssl/ec.h +178 -120
- data/third_party/boringssl-with-bazel/include/openssl/ec_key.h +99 -99
- data/third_party/boringssl-with-bazel/include/openssl/ecdh.h +9 -9
- data/third_party/boringssl-with-bazel/include/openssl/ecdsa.h +89 -46
- data/third_party/boringssl-with-bazel/include/openssl/engine.h +5 -5
- data/third_party/boringssl-with-bazel/include/openssl/err.h +73 -71
- data/third_party/boringssl-with-bazel/include/openssl/evp.h +941 -344
- data/third_party/boringssl-with-bazel/include/openssl/evp_errors.h +10 -2
- data/third_party/boringssl-with-bazel/include/openssl/ex_data.h +27 -32
- data/third_party/boringssl-with-bazel/include/openssl/hkdf.h +6 -6
- data/third_party/boringssl-with-bazel/include/openssl/hmac.h +33 -33
- data/third_party/boringssl-with-bazel/include/openssl/hpke.h +170 -123
- data/third_party/boringssl-with-bazel/include/openssl/hrss.h +14 -8
- data/third_party/boringssl-with-bazel/include/openssl/kdf.h +20 -19
- data/third_party/boringssl-with-bazel/include/openssl/lhash.h +4 -25
- data/third_party/boringssl-with-bazel/include/openssl/md4.h +14 -7
- data/third_party/boringssl-with-bazel/include/openssl/md5.h +7 -7
- data/third_party/boringssl-with-bazel/include/openssl/mem.h +42 -42
- data/third_party/boringssl-with-bazel/include/openssl/mldsa.h +380 -24
- data/third_party/boringssl-with-bazel/include/openssl/mlkem.h +43 -43
- data/third_party/boringssl-with-bazel/include/openssl/nid.h +1339 -2
- data/third_party/boringssl-with-bazel/include/openssl/obj.h +49 -49
- data/third_party/boringssl-with-bazel/include/openssl/opensslconf.h +30 -0
- data/third_party/boringssl-with-bazel/include/openssl/params.h +42 -0
- data/third_party/boringssl-with-bazel/include/openssl/pem.h +669 -361
- data/third_party/boringssl-with-bazel/include/openssl/pkcs7.h +40 -40
- data/third_party/boringssl-with-bazel/include/openssl/pkcs8.h +69 -63
- data/third_party/boringssl-with-bazel/include/openssl/poly1305.h +8 -5
- data/third_party/boringssl-with-bazel/include/openssl/pool.h +54 -25
- data/third_party/boringssl-with-bazel/include/openssl/posix_time.h +8 -8
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols.h +7992 -0
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_S.h +633 -0
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_c.h +329 -0
- data/third_party/boringssl-with-bazel/include/openssl/rand.h +18 -18
- data/third_party/boringssl-with-bazel/include/openssl/rc4.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/ripemd.h +15 -10
- data/third_party/boringssl-with-bazel/include/openssl/rsa.h +272 -235
- data/third_party/boringssl-with-bazel/include/openssl/service_indicator.h +4 -81
- data/third_party/boringssl-with-bazel/include/openssl/sha.h +43 -166
- data/third_party/boringssl-with-bazel/include/openssl/sha2.h +201 -0
- data/third_party/boringssl-with-bazel/include/openssl/slhdsa.h +125 -49
- data/third_party/boringssl-with-bazel/include/openssl/span.h +190 -75
- data/third_party/boringssl-with-bazel/include/openssl/ssl.h +2403 -1633
- data/third_party/boringssl-with-bazel/include/openssl/ssl3.h +11 -69
- data/third_party/boringssl-with-bazel/include/openssl/stack.h +144 -80
- data/third_party/boringssl-with-bazel/include/openssl/target.h +13 -1
- data/third_party/boringssl-with-bazel/include/openssl/thread.h +0 -10
- data/third_party/boringssl-with-bazel/include/openssl/tls1.h +31 -310
- data/third_party/boringssl-with-bazel/include/openssl/tls_prf.h +47 -0
- data/third_party/boringssl-with-bazel/include/openssl/trust_token.h +97 -92
- data/third_party/boringssl-with-bazel/include/openssl/type_check.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/types.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/x509.h +1839 -1872
- data/third_party/boringssl-with-bazel/include/openssl/x509v3.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/xwing.h +115 -0
- data/third_party/boringssl-with-bazel/ssl/bio_ssl.cc +22 -19
- data/third_party/boringssl-with-bazel/ssl/d1_both.cc +202 -135
- data/third_party/boringssl-with-bazel/ssl/d1_lib.cc +84 -68
- data/third_party/boringssl-with-bazel/ssl/d1_pkt.cc +10 -10
- data/third_party/boringssl-with-bazel/ssl/d1_srtp.cc +12 -10
- data/third_party/boringssl-with-bazel/ssl/dtls_method.cc +14 -14
- data/third_party/boringssl-with-bazel/ssl/dtls_record.cc +21 -20
- data/third_party/boringssl-with-bazel/ssl/encrypted_client_hello.cc +102 -96
- data/third_party/boringssl-with-bazel/ssl/extensions.cc +1083 -500
- data/third_party/boringssl-with-bazel/ssl/handoff.cc +154 -100
- data/third_party/boringssl-with-bazel/ssl/handshake.cc +76 -44
- data/third_party/boringssl-with-bazel/ssl/handshake_client.cc +153 -152
- data/third_party/boringssl-with-bazel/ssl/handshake_server.cc +180 -212
- data/third_party/boringssl-with-bazel/ssl/internal.h +1368 -1481
- data/third_party/boringssl-with-bazel/ssl/s3_both.cc +40 -168
- data/third_party/boringssl-with-bazel/ssl/s3_lib.cc +5 -5
- data/third_party/boringssl-with-bazel/ssl/s3_pkt.cc +22 -21
- data/third_party/boringssl-with-bazel/ssl/ssl_aead_ctx.cc +5 -5
- data/third_party/boringssl-with-bazel/ssl/ssl_asn1.cc +123 -68
- data/third_party/boringssl-with-bazel/ssl/ssl_buffer.cc +25 -26
- data/third_party/boringssl-with-bazel/ssl/ssl_cert.cc +156 -84
- data/third_party/boringssl-with-bazel/ssl/ssl_cipher.cc +341 -160
- data/third_party/boringssl-with-bazel/ssl/ssl_credential.cc +349 -124
- data/third_party/boringssl-with-bazel/ssl/ssl_file.cc +134 -225
- data/third_party/boringssl-with-bazel/ssl/ssl_key_share.cc +80 -101
- data/third_party/boringssl-with-bazel/ssl/ssl_lib.cc +1403 -694
- data/third_party/boringssl-with-bazel/ssl/ssl_privkey.cc +173 -105
- data/third_party/boringssl-with-bazel/ssl/ssl_session.cc +287 -235
- data/third_party/boringssl-with-bazel/ssl/ssl_stat.cc +6 -3
- data/third_party/boringssl-with-bazel/ssl/ssl_transcript.cc +4 -4
- data/third_party/boringssl-with-bazel/ssl/ssl_versions.cc +47 -41
- data/third_party/boringssl-with-bazel/ssl/ssl_x509.cc +321 -273
- data/third_party/boringssl-with-bazel/ssl/t1_enc.cc +40 -29
- data/third_party/boringssl-with-bazel/ssl/tls13_both.cc +109 -75
- data/third_party/boringssl-with-bazel/ssl/tls13_client.cc +201 -115
- data/third_party/boringssl-with-bazel/ssl/tls13_enc.cc +179 -124
- data/third_party/boringssl-with-bazel/ssl/tls13_server.cc +241 -158
- data/third_party/boringssl-with-bazel/ssl/tls_method.cc +35 -35
- data/third_party/boringssl-with-bazel/ssl/tls_record.cc +40 -34
- data/third_party/boringssl-with-bazel/third_party/fiat/bedrock_unverified_bareminimum.c.inc +47 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/bedrock_unverified_platform.c.inc +137 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/curve25519_64_adx.h +37 -33
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64.h +29 -80
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64_msvc.h +6 -69
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_field.c.inc +26 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_field_32.br.c.inc +71 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_field_64.br.c.inc +84 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_point.br.c.inc +112 -0
- data/third_party/cares/cares/include/ares.h +8 -0
- data/third_party/cares/cares/include/ares_dns_record.h +3 -2
- data/third_party/cares/cares/include/ares_version.h +3 -3
- data/third_party/cares/cares/src/lib/ares_addrinfo_localhost.c +20 -20
- data/third_party/cares/cares/src/lib/ares_cancel.c +17 -8
- data/third_party/cares/cares/src/lib/ares_close_sockets.c +81 -16
- data/third_party/cares/cares/src/lib/ares_conn.c +256 -10
- data/third_party/cares/cares/src/lib/ares_conn.h +40 -3
- data/third_party/cares/cares/src/lib/ares_cookie.c +2 -2
- data/third_party/cares/cares/src/lib/ares_destroy.c +75 -10
- data/third_party/cares/cares/src/lib/ares_getaddrinfo.c +85 -10
- data/third_party/cares/cares/src/lib/ares_gethostbyaddr.c +5 -0
- data/third_party/cares/cares/src/lib/ares_gethostbyname.c +4 -0
- data/third_party/cares/cares/src/lib/ares_getnameinfo.c +10 -2
- data/third_party/cares/cares/src/lib/ares_hosts_file.c +8 -0
- data/third_party/cares/cares/src/lib/ares_inet_net_pton.h +28 -0
- data/third_party/cares/cares/src/lib/ares_init.c +55 -10
- data/third_party/cares/cares/src/lib/ares_library_init.c +25 -7
- data/third_party/cares/cares/src/lib/ares_options.c +38 -10
- data/third_party/cares/cares/src/lib/ares_parse_into_addrinfo.c +1 -1
- data/third_party/cares/cares/src/lib/ares_private.h +186 -27
- data/third_party/cares/cares/src/lib/ares_process.c +604 -112
- data/third_party/cares/cares/src/lib/ares_qcache.c +200 -36
- data/third_party/cares/cares/src/lib/ares_query.c +5 -0
- data/third_party/cares/cares/src/lib/ares_search.c +10 -0
- data/third_party/cares/cares/src/lib/ares_send.c +81 -10
- data/third_party/cares/cares/src/lib/ares_set_socket_functions.c +3 -1
- data/third_party/cares/cares/src/lib/ares_socket.c +28 -0
- data/third_party/cares/cares/src/lib/ares_socket.h +23 -0
- data/third_party/cares/cares/src/lib/ares_sysconfig.c +6 -3
- data/third_party/cares/cares/src/lib/ares_sysconfig_files.c +33 -11
- data/third_party/cares/cares/src/lib/ares_sysconfig_win.c +132 -80
- data/third_party/cares/cares/src/lib/ares_timeout.c +11 -0
- data/third_party/cares/cares/src/lib/ares_update_servers.c +55 -11
- data/third_party/cares/cares/src/lib/dsa/ares_array.c +20 -5
- data/third_party/cares/cares/src/lib/dsa/ares_htable.c +8 -4
- data/third_party/cares/cares/src/lib/dsa/ares_htable_dict.c +2 -0
- data/third_party/cares/cares/src/lib/dsa/ares_llist.c +4 -1
- data/third_party/cares/cares/src/lib/event/ares_event_configchg.c +5 -2
- data/third_party/cares/cares/src/lib/event/ares_event_select.c +14 -1
- data/third_party/cares/cares/src/lib/event/ares_event_thread.c +8 -0
- data/third_party/cares/cares/src/lib/event/ares_event_wake_pipe.c +7 -1
- data/third_party/cares/cares/src/lib/event/ares_event_win32.c +3 -0
- data/third_party/cares/cares/src/lib/include/ares_mem.h +3 -0
- data/third_party/cares/cares/src/lib/include/ares_str.h +17 -0
- data/third_party/cares/cares/src/lib/inet_net_pton.c +37 -28
- data/third_party/cares/cares/src/lib/legacy/ares_expand_name.c +1 -1
- data/third_party/cares/cares/src/lib/legacy/ares_parse_a_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_aaaa_reply.c +5 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ns_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_ptr_reply.c +2 -2
- data/third_party/cares/cares/src/lib/legacy/ares_parse_uri_reply.c +1 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_mapping.c +19 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_multistring.c +3 -1
- data/third_party/cares/cares/src/lib/record/ares_dns_name.c +67 -4
- data/third_party/cares/cares/src/lib/record/ares_dns_parse.c +62 -34
- data/third_party/cares/cares/src/lib/record/ares_dns_private.h +4 -0
- data/third_party/cares/cares/src/lib/record/ares_dns_record.c +47 -7
- data/third_party/cares/cares/src/lib/record/ares_dns_write.c +13 -5
- data/third_party/cares/cares/src/lib/str/ares_buf.c +33 -16
- data/third_party/cares/cares/src/lib/str/ares_str.c +54 -0
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.c +22 -10
- data/third_party/cares/cares/src/lib/util/ares_iface_ips.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_math.c +17 -2
- data/third_party/cares/cares/src/lib/util/ares_math.h +32 -7
- data/third_party/cares/cares/src/lib/util/ares_rand.c +4 -4
- data/third_party/cares/cares/src/lib/util/ares_threads.c +1 -2
- data/third_party/cares/cares/src/lib/util/ares_time.h +1 -0
- data/third_party/cares/cares/src/lib/util/ares_uri.c +9 -3
- data/third_party/zlib/compress.c +34 -10
- data/third_party/zlib/crc32.c +49 -115
- data/third_party/zlib/deflate.c +107 -61
- data/third_party/zlib/deflate.h +7 -1
- data/third_party/zlib/gzguts.h +33 -31
- data/third_party/zlib/infback.c +20 -67
- data/third_party/zlib/inffast.c +7 -6
- data/third_party/zlib/inffixed.h +91 -91
- data/third_party/zlib/inflate.c +38 -151
- data/third_party/zlib/inflate.h +1 -1
- data/third_party/zlib/inftrees.c +134 -9
- data/third_party/zlib/inftrees.h +3 -1
- data/third_party/zlib/trees.c +14 -12
- data/third_party/zlib/uncompr.c +39 -23
- data/third_party/zlib/zconf.h +27 -19
- data/third_party/zlib/zlib.h +215 -96
- data/third_party/zlib/zutil.c +49 -35
- data/third_party/zlib/zutil.h +87 -10
- metadata +4095 -4024
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +0 -916
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +0 -84
- data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +0 -240
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +0 -56
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +0 -157
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +0 -72
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +0 -181
- data/src/core/server/xds_channel_stack_modifier.cc +0 -108
- data/src/core/server/xds_channel_stack_modifier.h +0 -62
- data/src/core/server/xds_server_config_fetcher_legacy.cc +0 -1340
- data/third_party/abseil-cpp/absl/base/internal/identity.h +0 -39
- data/third_party/abseil-cpp/absl/base/internal/nullability_deprecated.h +0 -106
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +0 -105
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.h +0 -50
- data/third_party/abseil-cpp/absl/strings/string_view.cc +0 -257
- data/third_party/boringssl-with-bazel/crypto/evp/p_dh_asn1.cc +0 -142
- data/third_party/boringssl-with-bazel/crypto/evp/p_dsa_asn1.cc +0 -279
- data/third_party/boringssl-with-bazel/crypto/evp/p_ec_asn1.cc +0 -286
- data/third_party/boringssl-with-bazel/crypto/evp/p_ed25519_asn1.cc +0 -225
- data/third_party/boringssl-with-bazel/crypto/evp/p_rsa_asn1.cc +0 -198
- data/third_party/boringssl-with-bazel/crypto/evp/p_x25519_asn1.cc +0 -237
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p224-64.cc.inc +0 -1163
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/blinding.cc.inc +0 -147
- data/third_party/boringssl-with-bazel/crypto/kyber/internal.h +0 -60
- data/third_party/boringssl-with-bazel/crypto/kyber/kyber.cc +0 -869
- data/third_party/boringssl-with-bazel/crypto/rand/getrandom_fillin.h +0 -64
- data/third_party/boringssl-with-bazel/crypto/rand/passive.cc +0 -178
- data/third_party/boringssl-with-bazel/crypto/x509/ext_dat.h +0 -92
- data/third_party/boringssl-with-bazel/include/openssl/bcm_public.h +0 -82
- data/third_party/boringssl-with-bazel/include/openssl/experimental/kyber.h +0 -146
|
@@ -16,33 +16,182 @@
|
|
|
16
16
|
|
|
17
17
|
#include "src/core/filter/ext_proc/ext_proc_filter.h"
|
|
18
18
|
|
|
19
|
+
#include <grpc/event_engine/event_engine.h>
|
|
20
|
+
#include <grpc/impl/channel_arg_names.h>
|
|
21
|
+
|
|
22
|
+
#include <algorithm>
|
|
23
|
+
#include <cstdint>
|
|
19
24
|
#include <memory>
|
|
20
25
|
#include <string>
|
|
21
26
|
#include <utility>
|
|
22
27
|
|
|
23
28
|
#include "src/core/call/call_spine.h"
|
|
29
|
+
#include "src/core/call/evaluate_args.h"
|
|
24
30
|
#include "src/core/call/metadata.h"
|
|
25
|
-
#include "src/core/
|
|
26
|
-
#include "src/core/
|
|
27
|
-
#include "src/core/
|
|
31
|
+
#include "src/core/client_channel/client_channel_args.h"
|
|
32
|
+
#include "src/core/config/core_configuration.h"
|
|
33
|
+
#include "src/core/filter/ext_proc/ext_proc_messages.h"
|
|
28
34
|
#include "src/core/lib/debug/trace_impl.h"
|
|
35
|
+
#include "src/core/lib/promise/activity.h"
|
|
36
|
+
#include "src/core/lib/promise/for_each.h"
|
|
37
|
+
#include "src/core/lib/promise/if.h"
|
|
38
|
+
#include "src/core/lib/promise/inter_activity_latch.h"
|
|
39
|
+
#include "src/core/lib/promise/inter_activity_pipe.h"
|
|
40
|
+
#include "src/core/lib/promise/latch.h"
|
|
41
|
+
#include "src/core/lib/promise/loop.h"
|
|
42
|
+
#include "src/core/lib/promise/promise.h"
|
|
43
|
+
#include "src/core/lib/promise/seq.h"
|
|
44
|
+
#include "src/core/lib/promise/status_flag.h"
|
|
45
|
+
#include "src/core/lib/promise/try_join.h"
|
|
29
46
|
#include "src/core/lib/promise/try_seq.h"
|
|
47
|
+
#include "src/core/lib/surface/call.h"
|
|
48
|
+
#include "src/core/telemetry/metrics.h"
|
|
49
|
+
#include "src/core/transport/auth_context.h"
|
|
30
50
|
#include "src/core/util/down_cast.h"
|
|
31
|
-
#include "src/core/util/
|
|
32
|
-
#include "src/core/util/match.h"
|
|
51
|
+
#include "src/core/util/dual_ref_counted.h"
|
|
33
52
|
#include "src/core/util/ref_counted_ptr.h"
|
|
34
53
|
#include "src/core/util/string.h"
|
|
35
54
|
#include "src/core/util/time.h"
|
|
36
|
-
#include "src/core/xds/grpc/
|
|
37
|
-
#include "src/core/xds/
|
|
55
|
+
#include "src/core/xds/grpc/streaming_call_promise_wrapper.h"
|
|
56
|
+
#include "src/core/xds/grpc/xds_common_types.h"
|
|
38
57
|
#include "src/core/xds/xds_client/xds_transport.h"
|
|
39
|
-
#include "absl/log/log.h"
|
|
40
58
|
#include "absl/status/status.h"
|
|
41
59
|
#include "absl/status/statusor.h"
|
|
42
|
-
#include "absl/strings/
|
|
60
|
+
#include "absl/strings/str_cat.h"
|
|
61
|
+
#include "absl/strings/string_view.h"
|
|
43
62
|
|
|
44
63
|
namespace grpc_core {
|
|
45
64
|
|
|
65
|
+
//
|
|
66
|
+
// ExtProcFilter::ClientTelemetryDomain
|
|
67
|
+
//
|
|
68
|
+
|
|
69
|
+
ExtProcFilter::ClientTelemetryDomain::DoubleHistogramHandle<
|
|
70
|
+
ExponentialDoubleHistogramShape>
|
|
71
|
+
ExtProcFilter::ClientTelemetryDomain::kClientHeadersDuration =
|
|
72
|
+
ExtProcFilter::ClientTelemetryDomain::RegisterDoubleHistogram<
|
|
73
|
+
ExponentialDoubleHistogramShape>(
|
|
74
|
+
"grpc.client_ext_proc.client_headers_duration",
|
|
75
|
+
"Time between when the ext_proc filter sees the client's headers "
|
|
76
|
+
"and when it allows those headers to continue on to the next "
|
|
77
|
+
"filter.",
|
|
78
|
+
"s", 60, 20);
|
|
79
|
+
|
|
80
|
+
ExtProcFilter::ClientTelemetryDomain::DoubleHistogramHandle<
|
|
81
|
+
ExponentialDoubleHistogramShape>
|
|
82
|
+
ExtProcFilter::ClientTelemetryDomain::kClientHalfCloseDuration =
|
|
83
|
+
ExtProcFilter::ClientTelemetryDomain::RegisterDoubleHistogram<
|
|
84
|
+
ExponentialDoubleHistogramShape>(
|
|
85
|
+
"grpc.client_ext_proc.client_half_close_duration",
|
|
86
|
+
"Time between when the ext_proc filter sees the client's "
|
|
87
|
+
"half-close and when it allows that half-close to continue on to "
|
|
88
|
+
"the next filter.",
|
|
89
|
+
"s", 60, 20);
|
|
90
|
+
|
|
91
|
+
ExtProcFilter::ClientTelemetryDomain::DoubleHistogramHandle<
|
|
92
|
+
ExponentialDoubleHistogramShape>
|
|
93
|
+
ExtProcFilter::ClientTelemetryDomain::kServerHeadersDuration =
|
|
94
|
+
ExtProcFilter::ClientTelemetryDomain::RegisterDoubleHistogram<
|
|
95
|
+
ExponentialDoubleHistogramShape>(
|
|
96
|
+
"grpc.client_ext_proc.server_headers_duration",
|
|
97
|
+
"Time between when the ext_proc filter sees the server's headers "
|
|
98
|
+
"and when it allows those headers to continue on to the next "
|
|
99
|
+
"filter.",
|
|
100
|
+
"s", 60, 20);
|
|
101
|
+
|
|
102
|
+
ExtProcFilter::ClientTelemetryDomain::DoubleHistogramHandle<
|
|
103
|
+
ExponentialDoubleHistogramShape>
|
|
104
|
+
ExtProcFilter::ClientTelemetryDomain::kServerTrailersDuration =
|
|
105
|
+
ExtProcFilter::ClientTelemetryDomain::RegisterDoubleHistogram<
|
|
106
|
+
ExponentialDoubleHistogramShape>(
|
|
107
|
+
"grpc.client_ext_proc.server_trailers_duration",
|
|
108
|
+
"Time between when the ext_proc filter sees the server's "
|
|
109
|
+
"trailers and when it allows those trailers to continue on to "
|
|
110
|
+
"the next filter.",
|
|
111
|
+
"s", 60, 20);
|
|
112
|
+
|
|
113
|
+
//
|
|
114
|
+
// ExtProcFilter::ServerTelemetryDomain
|
|
115
|
+
//
|
|
116
|
+
|
|
117
|
+
ExtProcFilter::ServerTelemetryDomain::DoubleHistogramHandle<
|
|
118
|
+
ExponentialDoubleHistogramShape>
|
|
119
|
+
ExtProcFilter::ServerTelemetryDomain::kClientHeadersDuration =
|
|
120
|
+
ExtProcFilter::ServerTelemetryDomain::RegisterDoubleHistogram<
|
|
121
|
+
ExponentialDoubleHistogramShape>(
|
|
122
|
+
"grpc.server_ext_proc.client_headers_duration",
|
|
123
|
+
"Time between when the ext_proc filter sees the client's headers "
|
|
124
|
+
"and when it allows those headers to continue on to the next "
|
|
125
|
+
"filter.",
|
|
126
|
+
"s", 60, 20);
|
|
127
|
+
|
|
128
|
+
ExtProcFilter::ServerTelemetryDomain::DoubleHistogramHandle<
|
|
129
|
+
ExponentialDoubleHistogramShape>
|
|
130
|
+
ExtProcFilter::ServerTelemetryDomain::kClientHalfCloseDuration =
|
|
131
|
+
ExtProcFilter::ServerTelemetryDomain::RegisterDoubleHistogram<
|
|
132
|
+
ExponentialDoubleHistogramShape>(
|
|
133
|
+
"grpc.server_ext_proc.client_half_close_duration",
|
|
134
|
+
"Time between when the ext_proc filter sees the client's "
|
|
135
|
+
"half-close and when it allows that half-close to continue on to "
|
|
136
|
+
"the next filter.",
|
|
137
|
+
"s", 60, 20);
|
|
138
|
+
|
|
139
|
+
ExtProcFilter::ServerTelemetryDomain::DoubleHistogramHandle<
|
|
140
|
+
ExponentialDoubleHistogramShape>
|
|
141
|
+
ExtProcFilter::ServerTelemetryDomain::kServerHeadersDuration =
|
|
142
|
+
ExtProcFilter::ServerTelemetryDomain::RegisterDoubleHistogram<
|
|
143
|
+
ExponentialDoubleHistogramShape>(
|
|
144
|
+
"grpc.server_ext_proc.server_headers_duration",
|
|
145
|
+
"Time between when the ext_proc filter sees the server's headers "
|
|
146
|
+
"and when it allows those headers to continue on to the next "
|
|
147
|
+
"filter.",
|
|
148
|
+
"s", 60, 20);
|
|
149
|
+
|
|
150
|
+
ExtProcFilter::ServerTelemetryDomain::DoubleHistogramHandle<
|
|
151
|
+
ExponentialDoubleHistogramShape>
|
|
152
|
+
ExtProcFilter::ServerTelemetryDomain::kServerTrailersDuration =
|
|
153
|
+
ExtProcFilter::ServerTelemetryDomain::RegisterDoubleHistogram<
|
|
154
|
+
ExponentialDoubleHistogramShape>(
|
|
155
|
+
"grpc.server_ext_proc.server_trailers_duration",
|
|
156
|
+
"Time between when the ext_proc filter sees the server's "
|
|
157
|
+
"trailers and when it allows those trailers to continue on to "
|
|
158
|
+
"the next filter.",
|
|
159
|
+
"s", 60, 20);
|
|
160
|
+
|
|
161
|
+
namespace {
|
|
162
|
+
|
|
163
|
+
bool IsProcessingEnabled(
|
|
164
|
+
const std::optional<ExtProcFilter::ProcessingMode>& processing_mode) {
|
|
165
|
+
if (!processing_mode.has_value()) return false;
|
|
166
|
+
return processing_mode->send_request_headers ||
|
|
167
|
+
processing_mode->send_response_headers ||
|
|
168
|
+
processing_mode->send_response_trailers ||
|
|
169
|
+
processing_mode->send_request_body ||
|
|
170
|
+
processing_mode->send_response_body;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
absl::Status ApplyHeaderMutations(
|
|
174
|
+
const ExtProcResponse::HeaderMutation& mutations,
|
|
175
|
+
const std::optional<HeaderMutationRules>& rules,
|
|
176
|
+
grpc_metadata_batch& metadata) {
|
|
177
|
+
const auto* rules_ptr = rules.has_value() ? &rules.value() : nullptr;
|
|
178
|
+
for (const auto& remove : mutations.remove_headers) {
|
|
179
|
+
auto status = ApplyXdsHeaderMutationsRemoval(remove, rules_ptr, metadata);
|
|
180
|
+
if (!status.ok()) {
|
|
181
|
+
return status;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
for (const auto& add : mutations.set_headers) {
|
|
185
|
+
auto status = ApplyXdsHeaderMutationsAddition(add, rules_ptr, metadata);
|
|
186
|
+
if (!status.ok()) {
|
|
187
|
+
return status;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return absl::OkStatus();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
} // namespace
|
|
194
|
+
|
|
46
195
|
//
|
|
47
196
|
// ExtProcFilter::Config
|
|
48
197
|
//
|
|
@@ -60,7 +209,7 @@ std::string ExtProcFilter::Config::ToString() const {
|
|
|
60
209
|
[&](const RefCountedPtr<ExtProcChannel>& channel) {
|
|
61
210
|
if (channel != nullptr) {
|
|
62
211
|
StrAppend(result, "ext_proc_channel=");
|
|
63
|
-
StrAppend(result, channel->server()
|
|
212
|
+
StrAppend(result, channel->server().Key());
|
|
64
213
|
is_first = false;
|
|
65
214
|
}
|
|
66
215
|
});
|
|
@@ -153,6 +302,1613 @@ bool ExtProcFilter::Config::Equals(const FilterConfig& other) const {
|
|
|
153
302
|
deferred_close_timeout == o.deferred_close_timeout;
|
|
154
303
|
}
|
|
155
304
|
|
|
305
|
+
//
|
|
306
|
+
// ExtProcFilter::ExtProcChannel
|
|
307
|
+
//
|
|
308
|
+
|
|
309
|
+
ExtProcFilter::ExtProcChannel::ExtProcChannel(
|
|
310
|
+
GrpcXdsServerTarget server, RefCountedPtr<XdsTransport> transport)
|
|
311
|
+
: server_(std::move(server)), transport_(std::move(transport)) {
|
|
312
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
313
|
+
<< "creating channel " << this << " for server " << server_.server_uri();
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
ExtProcFilter::ExtProcChannel::~ExtProcChannel() {
|
|
317
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
318
|
+
<< "destroying ext_proc channel " << this << " for server "
|
|
319
|
+
<< server_.server_uri();
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
//
|
|
323
|
+
// ExtProcFilter::ExtProcCall
|
|
324
|
+
//
|
|
325
|
+
|
|
326
|
+
// High-Level Architecture of Concurrent Pipeline Loops across Activities:
|
|
327
|
+
//
|
|
328
|
+
// [ Activity 1: handler_ ]
|
|
329
|
+
// LOOP 1: Read-From-Client Pipeline Loop [HandleReadFromClientLoop()]
|
|
330
|
+
// +-----------------------------------------------------------------------+
|
|
331
|
+
// | TrySeq( |
|
|
332
|
+
// | handler_.PullClientInitialMetadata() |
|
|
333
|
+
// | -> HandleInitialMetadataFromClient(), |
|
|
334
|
+
// | ForEach(MessagesFrom(handler_)) |
|
|
335
|
+
// | -> HandleMessageFromClient(), |
|
|
336
|
+
// | HandleHalfCloseFromClient()) |
|
|
337
|
+
// +-----------------------------------------------------------------------+
|
|
338
|
+
// ||
|
|
339
|
+
// Joined via TryJoin() in Run()
|
|
340
|
+
// ||
|
|
341
|
+
// LOOP 2: Read-From-Server Pipeline Loop [HandleReadFromServerActivityLoop()]
|
|
342
|
+
// +-----------------------------------------------------------------------+
|
|
343
|
+
// | Seq( |
|
|
344
|
+
// | TrySeq( |
|
|
345
|
+
// | server_initial_metadata_latch_.Wait() |
|
|
346
|
+
// | -> HandleInitialMetadataFromServer(), |
|
|
347
|
+
// | If(has_initial_metadata, |
|
|
348
|
+
// | ForEach(server_to_client_messages_.receiver) |
|
|
349
|
+
// | -> HandleMessageFromServer())), |
|
|
350
|
+
// | server_trailing_metadata_latch_.Wait() |
|
|
351
|
+
// | -> HandleTrailingMetadataFromServer()) |
|
|
352
|
+
// +-----------------------------------------------------------------------+
|
|
353
|
+
// ||
|
|
354
|
+
// Joined via TryJoin() in Run()
|
|
355
|
+
// ||
|
|
356
|
+
// LOOP 3: Side-Stream Pull Pipeline Loop [HandleReadFromSideStreamLoop()]
|
|
357
|
+
// +-----------------------------------------------------------------------+
|
|
358
|
+
// | Map( |
|
|
359
|
+
// | TrySeq( |
|
|
360
|
+
// | Loop: streaming_call_->PullMessage() |
|
|
361
|
+
// | -> ProcessSideStreamResponse(), |
|
|
362
|
+
// | streaming_call_->PullServerTrailingMetadata()), |
|
|
363
|
+
// | HandleSideStreamStatus(status)) |
|
|
364
|
+
// +-----------------------------------------------------------------------+
|
|
365
|
+
//
|
|
366
|
+
// [ Activity 2: initiator_ ] (Spawned on child call startup in
|
|
367
|
+
// StartChildCall())
|
|
368
|
+
// LOOP 4: Downstream Server Event Forwarding Loop
|
|
369
|
+
// [SpawnReadFromServerLoop()]
|
|
370
|
+
// +-----------------------------------------------------------------------+
|
|
371
|
+
// | Seq( |
|
|
372
|
+
// | initiator_.CancelIfFails(TrySeq( |
|
|
373
|
+
// | initiator_.PullServerInitialMetadata() |
|
|
374
|
+
// | -> server_initial_metadata_latch_.Set(), |
|
|
375
|
+
// | If(has_initial_metadata, |
|
|
376
|
+
// | ForEach(MessagesFrom(initiator_)) |
|
|
377
|
+
// | -> server_to_client_messages_.sender.Push(), |
|
|
378
|
+
// | server_to_client_messages_.sender.MarkClosed()))), |
|
|
379
|
+
// | initiator_.PullServerTrailingMetadata() |
|
|
380
|
+
// | -> server_trailing_metadata_latch_.Set()) |
|
|
381
|
+
// +-----------------------------------------------------------------------+
|
|
382
|
+
|
|
383
|
+
class ExtProcFilter::ExtProcCall final : public DualRefCounted<ExtProcCall> {
|
|
384
|
+
public:
|
|
385
|
+
ExtProcCall(RefCountedPtr<ExtProcFilter> ext_proc_filter,
|
|
386
|
+
RefCountedPtr<XdsTransport> transport, CallHandler handler);
|
|
387
|
+
|
|
388
|
+
~ExtProcCall() override;
|
|
389
|
+
|
|
390
|
+
// Main entry point for an external processor call. Spawns and manages the
|
|
391
|
+
// concurrent request (client-to-server) and response (server-to-client)
|
|
392
|
+
// processing pipelines alongside side-stream message pulling.
|
|
393
|
+
auto Run();
|
|
394
|
+
|
|
395
|
+
private:
|
|
396
|
+
// Tracks the state of outgoing message sends on the ext_proc side-stream.
|
|
397
|
+
enum class SideStreamSendState {
|
|
398
|
+
// Initial state: no message send is currently in flight.
|
|
399
|
+
kIdle,
|
|
400
|
+
// A message send operation has been claimed and is currently in flight on
|
|
401
|
+
// the underlying transport wrapper.
|
|
402
|
+
kSendInFlight,
|
|
403
|
+
// The stream has been closed or terminated due to an error, preventing
|
|
404
|
+
// subsequent sends.
|
|
405
|
+
kSendFailed,
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
enum class SideStreamRequestEventState {
|
|
409
|
+
// Expecting request headers response from external processor.
|
|
410
|
+
kExpectHeaders,
|
|
411
|
+
// Expecting request body response(s) from external processor.
|
|
412
|
+
kExpectBody,
|
|
413
|
+
// Expecting no further request responses from external processor.
|
|
414
|
+
kExpectNothing,
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
enum class SideStreamResponseEventState {
|
|
418
|
+
// Expecting response headers response from external processor.
|
|
419
|
+
kExpectHeaders,
|
|
420
|
+
// Expecting response body or trailers response from external processor.
|
|
421
|
+
kExpectBodyOrTrailers,
|
|
422
|
+
// Expecting response trailers response from external processor.
|
|
423
|
+
kExpectTrailers,
|
|
424
|
+
// Expecting no further response responses from external processor.
|
|
425
|
+
kExpectNothing,
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
// Shared enum for tracking directional body drain states.
|
|
429
|
+
enum class BodyDrainState : uint8_t {
|
|
430
|
+
// Normal processing.
|
|
431
|
+
kNotDraining,
|
|
432
|
+
// ExtProc requested drain; drain_complete control frame sent, awaiting
|
|
433
|
+
// server ack.
|
|
434
|
+
kDrainInFlight,
|
|
435
|
+
// ExtProc acknowledged drain_complete; data plane messages pass through
|
|
436
|
+
// directly.
|
|
437
|
+
kDrained,
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
// Handle the read-from-client loop on handler_.
|
|
441
|
+
// Called when the ExtProcCall is created.
|
|
442
|
+
//
|
|
443
|
+
// Handles client initial metadata, client messages, and half-close.
|
|
444
|
+
// Sends each event to the ext_proc side-stream and/or to the server,
|
|
445
|
+
// based on the configuration.
|
|
446
|
+
auto HandleReadFromClientLoop();
|
|
447
|
+
|
|
448
|
+
// Handle the read-from-server loop on handler_.
|
|
449
|
+
// Called when the ExtProcCall is created.
|
|
450
|
+
//
|
|
451
|
+
// Handles server initial metadata, server messages, and server
|
|
452
|
+
// trailing metadata received from the initiator_ activity.
|
|
453
|
+
// Sends each event to the ext_proc side-stream and/or to the client,
|
|
454
|
+
// based on the configuration.
|
|
455
|
+
auto HandleReadFromServerActivityLoop();
|
|
456
|
+
|
|
457
|
+
// Handle the read-from-ext_proc-side-stream loop on handler_.
|
|
458
|
+
// Called when the ExtProcCall is created.
|
|
459
|
+
//
|
|
460
|
+
// Handles all events on the call, forwarding data to either handler_
|
|
461
|
+
// (client) or initiator_ (server).
|
|
462
|
+
auto HandleReadFromSideStreamLoop();
|
|
463
|
+
|
|
464
|
+
// Spawns the read-from-server loop on initiator_.
|
|
465
|
+
// Called from StartChildCall().
|
|
466
|
+
//
|
|
467
|
+
// Pulls server initial metadata, messages, and trailing metadata from
|
|
468
|
+
// downstream and immediately forwards them across inter-activity mechanisms
|
|
469
|
+
// to the handler_ activity.
|
|
470
|
+
void SpawnReadFromServerLoop();
|
|
471
|
+
|
|
472
|
+
// Read-from-client event handlers
|
|
473
|
+
auto HandleInitialMetadataFromClient(ClientMetadataHandle metadata);
|
|
474
|
+
auto HandleMessageFromClient(MessageHandle message);
|
|
475
|
+
auto HandleHalfCloseFromClient();
|
|
476
|
+
|
|
477
|
+
// Read-from-server event handlers
|
|
478
|
+
auto HandleInitialMetadataFromServer(
|
|
479
|
+
std::optional<ServerMetadataHandle> metadata);
|
|
480
|
+
auto HandleMessageFromServer(MessageHandle message);
|
|
481
|
+
auto HandleTrailingMetadataFromServer(ServerMetadataHandle metadata);
|
|
482
|
+
|
|
483
|
+
// Read-from-sidestream event handlers
|
|
484
|
+
StatusFlag HandleClientInitialMetadataFromSidestream(
|
|
485
|
+
const ExtProcResponse::RequestHeaders& response);
|
|
486
|
+
StatusFlag HandleClientMessageFromSidestream(
|
|
487
|
+
const ExtProcResponse::RequestBody& response);
|
|
488
|
+
StatusFlag HandleServerInitialMetadataFromSidestream(
|
|
489
|
+
const ExtProcResponse::ResponseHeaders& response);
|
|
490
|
+
StatusFlag HandleServerMessageFromSidestream(
|
|
491
|
+
const ExtProcResponse::ResponseBody& response);
|
|
492
|
+
StatusFlag HandleServerTrailingMetadataFromSidestream(
|
|
493
|
+
const ExtProcResponse::ResponseTrailers& response);
|
|
494
|
+
StatusFlag HandleImmediateResponseFromSidestream(
|
|
495
|
+
const ExtProcResponse::ImmediateResponse& response);
|
|
496
|
+
|
|
497
|
+
// Initializes and starts the child call to the backend server, and spawns
|
|
498
|
+
// the background task for the server-to-client response path.
|
|
499
|
+
void StartChildCall(ClientMetadataHandle metadata);
|
|
500
|
+
|
|
501
|
+
// Sends a message to the external processor side-stream.
|
|
502
|
+
// Coordinates client-side and server-side message sources within the handler_
|
|
503
|
+
// activity so that only one send is in-flight on streaming_call_ at a time,
|
|
504
|
+
// using a single Waker without any queue or vector allocations.
|
|
505
|
+
auto SendMessageToSideStream(std::string payload);
|
|
506
|
+
|
|
507
|
+
// Parses and processes an incoming response message payload from the
|
|
508
|
+
// side-stream, then sends any resulting drain messages.
|
|
509
|
+
auto ProcessSideStreamResponse(absl::string_view payload);
|
|
510
|
+
|
|
511
|
+
// Handles transport status updates/closure on the ext_proc side-stream.
|
|
512
|
+
// Returns true if the call remains active (either status is OK or fail-open
|
|
513
|
+
// is allowed), or false if the call has been cancelled with an error.
|
|
514
|
+
bool HandleSideStreamStatus(absl::Status status);
|
|
515
|
+
|
|
516
|
+
const Config& config() const { return *ext_proc_filter_->config_; }
|
|
517
|
+
|
|
518
|
+
const ProcessingMode& processing_mode() const {
|
|
519
|
+
return *config().processing_mode;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// Returns true if this is the first message being sent on the side-stream,
|
|
523
|
+
// resetting the internal flag. Used to attach ProcessingMode on the first
|
|
524
|
+
// request.
|
|
525
|
+
bool IsFirstMessageOnSideStream() {
|
|
526
|
+
return std::exchange(is_first_message_on_side_stream_, false);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
bool IsFailOpenAllowed() const {
|
|
530
|
+
const bool allow = config().failure_mode_allow.value_or(false);
|
|
531
|
+
if (config().observability_mode) return allow;
|
|
532
|
+
return allow && !first_body_message_sent_;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// Fails the intercepted data plane RPC with the given error status by
|
|
536
|
+
// pushing error trailing metadata downstream to the client.
|
|
537
|
+
void CancelCallWithError(absl::Status status) {
|
|
538
|
+
GRPC_CHECK(!status.ok());
|
|
539
|
+
auto error_md = CancelledServerMetadataFromStatus(status);
|
|
540
|
+
handler_.PushServerTrailingMetadata(std::move(error_md));
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
void Orphaned() override {}
|
|
544
|
+
|
|
545
|
+
static SideStreamRequestEventState InitialRequestEventState(
|
|
546
|
+
const Config& config) {
|
|
547
|
+
if (config.observability_mode) {
|
|
548
|
+
return SideStreamRequestEventState::kExpectNothing;
|
|
549
|
+
}
|
|
550
|
+
if (config.processing_mode.has_value() &&
|
|
551
|
+
config.processing_mode->send_request_headers) {
|
|
552
|
+
return SideStreamRequestEventState::kExpectHeaders;
|
|
553
|
+
}
|
|
554
|
+
if (config.processing_mode.has_value() &&
|
|
555
|
+
config.processing_mode->send_request_body) {
|
|
556
|
+
return SideStreamRequestEventState::kExpectBody;
|
|
557
|
+
}
|
|
558
|
+
return SideStreamRequestEventState::kExpectNothing;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
static SideStreamResponseEventState InitialResponseEventState(
|
|
562
|
+
const Config& config) {
|
|
563
|
+
if (config.observability_mode) {
|
|
564
|
+
return SideStreamResponseEventState::kExpectNothing;
|
|
565
|
+
}
|
|
566
|
+
if (config.processing_mode.has_value() &&
|
|
567
|
+
config.processing_mode->send_response_headers) {
|
|
568
|
+
return SideStreamResponseEventState::kExpectHeaders;
|
|
569
|
+
}
|
|
570
|
+
if (config.processing_mode.has_value() &&
|
|
571
|
+
config.processing_mode->send_response_body) {
|
|
572
|
+
return SideStreamResponseEventState::kExpectBodyOrTrailers;
|
|
573
|
+
}
|
|
574
|
+
if (config.processing_mode.has_value() &&
|
|
575
|
+
config.processing_mode->send_response_trailers) {
|
|
576
|
+
return SideStreamResponseEventState::kExpectTrailers;
|
|
577
|
+
}
|
|
578
|
+
return SideStreamResponseEventState::kExpectNothing;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
std::string DebugTag() const;
|
|
582
|
+
|
|
583
|
+
// Track event states for request and response side-stream messages.
|
|
584
|
+
// Synchronized by the handler_ activity.
|
|
585
|
+
SideStreamRequestEventState request_event_state_;
|
|
586
|
+
SideStreamResponseEventState response_event_state_;
|
|
587
|
+
|
|
588
|
+
// Metadata handles stored during request/response processing.
|
|
589
|
+
// Synchronized by the handler_ activity.
|
|
590
|
+
ClientMetadataHandle client_initial_metadata_;
|
|
591
|
+
ServerMetadataHandle server_initial_metadata_;
|
|
592
|
+
ServerMetadataHandle server_trailing_metadata_;
|
|
593
|
+
|
|
594
|
+
// Inter-activity communication mechanisms between initiator_ and handler_.
|
|
595
|
+
InterActivityLatch<std::optional<ServerMetadataHandle>>
|
|
596
|
+
server_initial_metadata_latch_;
|
|
597
|
+
InterActivityPipe<MessageHandle, 1> server_to_client_messages_;
|
|
598
|
+
InterActivityLatch<ServerMetadataHandle> server_trailing_metadata_latch_;
|
|
599
|
+
|
|
600
|
+
// Timestamps recorded when events arrive from the data plane, used to
|
|
601
|
+
// measure delay introduced by the external processor in normal mode.
|
|
602
|
+
// Synchronized by the handler_ activity.
|
|
603
|
+
Timestamp client_initial_metadata_start_time_;
|
|
604
|
+
Timestamp client_half_close_start_time_;
|
|
605
|
+
Timestamp server_initial_metadata_start_time_;
|
|
606
|
+
Timestamp server_trailing_metadata_start_time_;
|
|
607
|
+
|
|
608
|
+
// Temporary UPB arena holding request attributes until the first client body
|
|
609
|
+
// request is sent to the sidestream. Synchronized by the handler_ activity.
|
|
610
|
+
upb::Arena request_attributes_arena_;
|
|
611
|
+
// Request attributes generated during request header processing to be
|
|
612
|
+
// attached to subsequent request body processing requests. Synchronized by
|
|
613
|
+
// the handler_ activity.
|
|
614
|
+
::google_protobuf_Struct* request_attributes_ = nullptr;
|
|
615
|
+
// Request body drain state. Synchronized by the handler_ activity.
|
|
616
|
+
BodyDrainState request_body_drain_state_ = BodyDrainState::kNotDraining;
|
|
617
|
+
Latch<void> request_body_drain_complete_latch_;
|
|
618
|
+
|
|
619
|
+
// Response body drain state. Synchronized by the handler_ activity.
|
|
620
|
+
BodyDrainState response_body_drain_state_ = BodyDrainState::kNotDraining;
|
|
621
|
+
Latch<void> response_body_drain_complete_latch_;
|
|
622
|
+
// True if no messages have been sent on the external processor side-stream
|
|
623
|
+
// yet. Used to include overall processing_mode in the initial stream header
|
|
624
|
+
// request. Synchronized by the handler_ activity.
|
|
625
|
+
bool is_first_message_on_side_stream_ = true;
|
|
626
|
+
// Tracks whether the first body message has been sent on the side-stream,
|
|
627
|
+
// used for fail-open determination. Synchronized by the handler_ activity.
|
|
628
|
+
bool first_body_message_sent_ = false;
|
|
629
|
+
// TODO(rishesh): Need to remove this once PH2 work is done.
|
|
630
|
+
// Number of messages sent to ext_proc that are awaiting response processing
|
|
631
|
+
// in S2C and C2S directions respectively. Synchronized by the handler_
|
|
632
|
+
// activity.
|
|
633
|
+
size_t outstanding_s2c_messages_ = 0;
|
|
634
|
+
size_t outstanding_c2s_messages_ = 0;
|
|
635
|
+
// Data plane stream state flags tracking directional write completion,
|
|
636
|
+
// half-close, and trailers-only RPC mode. Synchronized by the handler_
|
|
637
|
+
// activity.
|
|
638
|
+
bool c2s_writes_done_ = false;
|
|
639
|
+
bool is_trailers_only_ = false;
|
|
640
|
+
// Set to true when the external processor indicates end of stream for
|
|
641
|
+
// client-to-server messages (early half-close). Synchronized by the
|
|
642
|
+
// handler_ activity.
|
|
643
|
+
bool ext_proc_closed_c2s_ = false;
|
|
644
|
+
// Latch signaled when the side-stream is closed or drained.
|
|
645
|
+
Latch<void> side_stream_closed_latch_;
|
|
646
|
+
// Latch signaled when the child call has been started (i.e., initiator_
|
|
647
|
+
// has been set). Client messages and half-close wait on this before
|
|
648
|
+
// being forwarded to initiator_. This matters only when observability
|
|
649
|
+
// mode is off, the request header mode is SEND, and the request body mode
|
|
650
|
+
// is NONE: in that case the child call is not started until the ext_proc
|
|
651
|
+
// server responds to the request headers, but client messages and
|
|
652
|
+
// half-close can be read from handler_ before then.
|
|
653
|
+
// Synchronized by the handler_ activity.
|
|
654
|
+
Latch<void> child_call_started_latch_;
|
|
655
|
+
|
|
656
|
+
// Send state and waiters for coordinating message sends on the side-stream
|
|
657
|
+
// within the handler_ activity.
|
|
658
|
+
SideStreamSendState ext_proc_send_state_ = SideStreamSendState::kIdle;
|
|
659
|
+
IntraActivityWaiter ext_proc_send_waiter_;
|
|
660
|
+
|
|
661
|
+
CallHandler handler_;
|
|
662
|
+
CallInitiator initiator_;
|
|
663
|
+
RefCountedPtr<XdsStreamingCallPromiseWrapper> streaming_call_;
|
|
664
|
+
RefCountedPtr<ExtProcFilter> ext_proc_filter_;
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
ExtProcFilter::ExtProcCall::ExtProcCall(
|
|
668
|
+
RefCountedPtr<ExtProcFilter> ext_proc_filter,
|
|
669
|
+
RefCountedPtr<XdsTransport> transport, CallHandler handler)
|
|
670
|
+
: request_event_state_(InitialRequestEventState(*ext_proc_filter->config_)),
|
|
671
|
+
response_event_state_(
|
|
672
|
+
InitialResponseEventState(*ext_proc_filter->config_)),
|
|
673
|
+
handler_(handler),
|
|
674
|
+
ext_proc_filter_(std::move(ext_proc_filter)) {
|
|
675
|
+
const char* method = "/envoy.service.ext_proc.v3.ExternalProcessor/Process";
|
|
676
|
+
// Pass the data plane RPC's tracing context, so that the ext_proc call is
|
|
677
|
+
// traced as its child.
|
|
678
|
+
streaming_call_ = MakeRefCounted<XdsStreamingCallPromiseWrapper>(
|
|
679
|
+
*transport, method,
|
|
680
|
+
XdsTransport::CallOptions().set_parent_census_context(
|
|
681
|
+
handler_.arena()->GetContext<census_context>()));
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
std::string ExtProcFilter::ExtProcCall::DebugTag() const {
|
|
685
|
+
std::string tag;
|
|
686
|
+
StrAppend(tag, "[");
|
|
687
|
+
StrAppend(tag, Activity::current() != nullptr
|
|
688
|
+
? Activity::current()->DebugTag()
|
|
689
|
+
: "<unknown>");
|
|
690
|
+
StrAppend(tag, " ext_proc_filter=0x");
|
|
691
|
+
StrAppend(tag, absl::StrCat(absl::Hex(
|
|
692
|
+
reinterpret_cast<uintptr_t>(ext_proc_filter_.get()))));
|
|
693
|
+
StrAppend(tag, " ext_proc_call=0x");
|
|
694
|
+
StrAppend(tag, absl::StrCat(absl::Hex(reinterpret_cast<uintptr_t>(this))));
|
|
695
|
+
StrAppend(tag, "] ");
|
|
696
|
+
return tag;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
ExtProcFilter::ExtProcCall::~ExtProcCall() {
|
|
700
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
701
|
+
<< DebugTag() << "ExtProcCall destroyed";
|
|
702
|
+
if (config().deferred_close_timeout != Duration::Zero() &&
|
|
703
|
+
config().observability_mode) {
|
|
704
|
+
ext_proc_filter_->event_engine_->RunAfter(
|
|
705
|
+
config().deferred_close_timeout,
|
|
706
|
+
[call = std::move(streaming_call_)]() mutable {
|
|
707
|
+
// An ExecCtx is required on EventEngine threads when destroying the
|
|
708
|
+
// underlying streaming call, as its cancellation schedules completion
|
|
709
|
+
// closures.
|
|
710
|
+
ExecCtx exec_ctx;
|
|
711
|
+
call.reset();
|
|
712
|
+
});
|
|
713
|
+
} else {
|
|
714
|
+
streaming_call_.reset();
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
// This function role is to:
|
|
719
|
+
// - send the message to the ext proc server and wait for the send to get
|
|
720
|
+
// complete and then propagate the status
|
|
721
|
+
// - if a message is already in progress then wait for the in flight message to
|
|
722
|
+
// get complete and then send the previous one if the stream is not closed
|
|
723
|
+
// - Handle the failure mode allow
|
|
724
|
+
auto ExtProcFilter::ExtProcCall::SendMessageToSideStream(std::string payload) {
|
|
725
|
+
return Map(
|
|
726
|
+
TrySeq(
|
|
727
|
+
// Wait until send state is kIdle, then mark kSendInFlight.
|
|
728
|
+
[self = WeakRef()]() -> Poll<StatusFlag> {
|
|
729
|
+
if (self->streaming_call_ == nullptr ||
|
|
730
|
+
self->ext_proc_send_state_ ==
|
|
731
|
+
SideStreamSendState::kSendFailed ||
|
|
732
|
+
self->side_stream_closed_latch_.is_set()) {
|
|
733
|
+
return Failure{};
|
|
734
|
+
}
|
|
735
|
+
if (self->ext_proc_send_state_ != SideStreamSendState::kIdle) {
|
|
736
|
+
return self->ext_proc_send_waiter_.pending();
|
|
737
|
+
}
|
|
738
|
+
self->ext_proc_send_state_ = SideStreamSendState::kSendInFlight;
|
|
739
|
+
return Success{};
|
|
740
|
+
},
|
|
741
|
+
// Push the payload.
|
|
742
|
+
[self = WeakRef(), payload = std::move(payload)]() mutable {
|
|
743
|
+
return self->streaming_call_->PushMessage(std::move(payload));
|
|
744
|
+
}),
|
|
745
|
+
// Reset send state and wake up any waiting senders.
|
|
746
|
+
[self = WeakRef()](StatusFlag status) -> StatusFlag {
|
|
747
|
+
self->ext_proc_send_state_ =
|
|
748
|
+
status.ok() && !self->side_stream_closed_latch_.is_set()
|
|
749
|
+
? SideStreamSendState::kIdle
|
|
750
|
+
: SideStreamSendState::kSendFailed;
|
|
751
|
+
self->ext_proc_send_waiter_.Wake();
|
|
752
|
+
// Always return Success{} so that side-stream send failures don't
|
|
753
|
+
// prematurely abort data-plane read loops (which run under TrySeq)
|
|
754
|
+
// when fail-open (failure_mode_allow) is enabled. Side-stream errors
|
|
755
|
+
// and policy decisions are handled by HandleSideStreamStatus.
|
|
756
|
+
return Success{};
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// Spawns the read-from-server loop on initiator_.
|
|
761
|
+
// Called from StartChildCall().
|
|
762
|
+
//
|
|
763
|
+
// Pulls server initial metadata, messages, and trailing metadata from
|
|
764
|
+
// downstream and immediately forwards them across inter-activity mechanisms
|
|
765
|
+
// to the handler_ activity.
|
|
766
|
+
void ExtProcFilter::ExtProcCall::SpawnReadFromServerLoop() {
|
|
767
|
+
initiator_.SpawnInfallible("read_from_server", [self = WeakRef()]() {
|
|
768
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
769
|
+
<< self->DebugTag() << "read_from_server task started";
|
|
770
|
+
return Seq(
|
|
771
|
+
self->initiator_.CancelIfFails(TrySeq(
|
|
772
|
+
self->initiator_.PullServerInitialMetadata(),
|
|
773
|
+
[self](std::optional<ServerMetadataHandle> metadata) {
|
|
774
|
+
const bool has_md = metadata.has_value();
|
|
775
|
+
self->server_initial_metadata_latch_.Set(std::move(metadata));
|
|
776
|
+
return Seq(
|
|
777
|
+
If(
|
|
778
|
+
has_md,
|
|
779
|
+
[self]() {
|
|
780
|
+
return ForEach(
|
|
781
|
+
MessagesFrom(self->initiator_),
|
|
782
|
+
[self](MessageHandle message) {
|
|
783
|
+
return Map(
|
|
784
|
+
self->server_to_client_messages_.sender.Push(
|
|
785
|
+
std::move(message)),
|
|
786
|
+
[](bool x) { return StatusFlag(x); });
|
|
787
|
+
});
|
|
788
|
+
},
|
|
789
|
+
Immediate(StatusFlag(Success{}))),
|
|
790
|
+
[self](StatusFlag status) {
|
|
791
|
+
self->server_to_client_messages_.sender.MarkClosed();
|
|
792
|
+
return status;
|
|
793
|
+
});
|
|
794
|
+
})),
|
|
795
|
+
self->initiator_.PullServerTrailingMetadata(),
|
|
796
|
+
[self](ServerMetadataHandle metadata) {
|
|
797
|
+
self->server_trailing_metadata_latch_.Set(std::move(metadata));
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
void ExtProcFilter::ExtProcCall::StartChildCall(ClientMetadataHandle metadata) {
|
|
803
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
804
|
+
<< DebugTag() << "Starting downstream child call";
|
|
805
|
+
initiator_ = ext_proc_filter_->MakeChildCall(std::move(metadata),
|
|
806
|
+
handler_.arena()->Ref());
|
|
807
|
+
handler_.AddChildCall(initiator_);
|
|
808
|
+
child_call_started_latch_.Set();
|
|
809
|
+
SpawnReadFromServerLoop();
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
//
|
|
813
|
+
// Read-from-sidestream Event Handlers
|
|
814
|
+
//
|
|
815
|
+
|
|
816
|
+
StatusFlag
|
|
817
|
+
ExtProcFilter::ExtProcCall::HandleClientInitialMetadataFromSidestream(
|
|
818
|
+
const ExtProcResponse::RequestHeaders& response) {
|
|
819
|
+
if (request_event_state_ != SideStreamRequestEventState::kExpectHeaders) {
|
|
820
|
+
CancelCallWithError(
|
|
821
|
+
absl::InternalError("Received unexpected request headers response from "
|
|
822
|
+
"external processor"));
|
|
823
|
+
return Failure{};
|
|
824
|
+
}
|
|
825
|
+
request_event_state_ = processing_mode().send_request_body
|
|
826
|
+
? SideStreamRequestEventState::kExpectBody
|
|
827
|
+
: SideStreamRequestEventState::kExpectNothing;
|
|
828
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
829
|
+
<< DebugTag()
|
|
830
|
+
<< "Processing external processor response for client initial "
|
|
831
|
+
"metadata";
|
|
832
|
+
if (auto status =
|
|
833
|
+
ApplyHeaderMutations(response.mutation, config().mutation_rules,
|
|
834
|
+
*client_initial_metadata_);
|
|
835
|
+
!status.ok()) {
|
|
836
|
+
CancelCallWithError(status);
|
|
837
|
+
return Failure{};
|
|
838
|
+
}
|
|
839
|
+
StartChildCall(std::move(client_initial_metadata_));
|
|
840
|
+
ext_proc_filter_->RecordClientHeadersDuration(
|
|
841
|
+
(Timestamp::Now() - client_initial_metadata_start_time_).seconds());
|
|
842
|
+
return Success{};
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
StatusFlag ExtProcFilter::ExtProcCall::HandleClientMessageFromSidestream(
|
|
846
|
+
const ExtProcResponse::RequestBody& response) {
|
|
847
|
+
if (response.mutation.drain_complete) {
|
|
848
|
+
if (request_body_drain_state_ != BodyDrainState::kDrainInFlight) {
|
|
849
|
+
CancelCallWithError(absl::InternalError(
|
|
850
|
+
"Received unexpected drain_complete from external processor"));
|
|
851
|
+
return Failure{};
|
|
852
|
+
}
|
|
853
|
+
request_body_drain_state_ = BodyDrainState::kDrained;
|
|
854
|
+
request_body_drain_complete_latch_.Set();
|
|
855
|
+
request_event_state_ = SideStreamRequestEventState::kExpectNothing;
|
|
856
|
+
return Success{};
|
|
857
|
+
}
|
|
858
|
+
if (request_event_state_ != SideStreamRequestEventState::kExpectBody) {
|
|
859
|
+
CancelCallWithError(absl::InternalError(
|
|
860
|
+
"Received unexpected request body response from external processor"));
|
|
861
|
+
return Failure{};
|
|
862
|
+
}
|
|
863
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
864
|
+
<< DebugTag() << "Parsed request body response, eos: "
|
|
865
|
+
<< response.mutation.end_of_stream << ", eos_without_msg: "
|
|
866
|
+
<< response.mutation.end_of_stream_without_message;
|
|
867
|
+
// TODO(rishesh): Remove this check when we stop using the
|
|
868
|
+
// v3-to-v1 adaptor layer.
|
|
869
|
+
if (outstanding_c2s_messages_ == 0) {
|
|
870
|
+
CancelCallWithError(absl::InternalError(
|
|
871
|
+
"Received unexpected request body response from external processor"));
|
|
872
|
+
return Failure{};
|
|
873
|
+
}
|
|
874
|
+
--outstanding_c2s_messages_;
|
|
875
|
+
// Handle message, if any.
|
|
876
|
+
if (!response.mutation.end_of_stream ||
|
|
877
|
+
!response.mutation.end_of_stream_without_message) {
|
|
878
|
+
auto slice = Slice::FromCopiedString(response.mutation.body);
|
|
879
|
+
auto new_msg = initiator_.arena()->MakePooled<Message>(
|
|
880
|
+
SliceBuffer(std::move(slice)), /*flags=*/0);
|
|
881
|
+
// TODO(rishesh, roth): Spawning this push into the activity means that we
|
|
882
|
+
// won't have flow control feedback here in a pure v3 stack, so we need to
|
|
883
|
+
// fix it before we finish the v3 migration.
|
|
884
|
+
initiator_.SpawnPushMessage(std::move(new_msg));
|
|
885
|
+
}
|
|
886
|
+
// Handle EOS.
|
|
887
|
+
if (response.mutation.end_of_stream) {
|
|
888
|
+
ext_proc_closed_c2s_ = true;
|
|
889
|
+
// TODO(rishesh): Remove this check when we stop using the
|
|
890
|
+
// v3-to-v1 adaptor layer.
|
|
891
|
+
if (outstanding_c2s_messages_ > 0 ||
|
|
892
|
+
(response.mutation.end_of_stream_without_message &&
|
|
893
|
+
!c2s_writes_done_)) {
|
|
894
|
+
CancelCallWithError(absl::InternalError(
|
|
895
|
+
"Client tried to send a message but external processor server has "
|
|
896
|
+
"already force sent half close to the server"));
|
|
897
|
+
return Failure{};
|
|
898
|
+
}
|
|
899
|
+
request_event_state_ = SideStreamRequestEventState::kExpectNothing;
|
|
900
|
+
if (c2s_writes_done_) {
|
|
901
|
+
initiator_.SpawnFinishSends();
|
|
902
|
+
ext_proc_filter_->RecordClientHalfCloseDuration(
|
|
903
|
+
(Timestamp::Now() - client_half_close_start_time_).seconds());
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return Success{};
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
StatusFlag
|
|
910
|
+
ExtProcFilter::ExtProcCall::HandleServerInitialMetadataFromSidestream(
|
|
911
|
+
const ExtProcResponse::ResponseHeaders& response) {
|
|
912
|
+
if (response_event_state_ != SideStreamResponseEventState::kExpectHeaders) {
|
|
913
|
+
CancelCallWithError(absl::InternalError(
|
|
914
|
+
"Received unexpected response headers response from external "
|
|
915
|
+
"processor"));
|
|
916
|
+
return Failure{};
|
|
917
|
+
}
|
|
918
|
+
if (is_trailers_only_) {
|
|
919
|
+
response_event_state_ = SideStreamResponseEventState::kExpectNothing;
|
|
920
|
+
} else if (processing_mode().send_response_body) {
|
|
921
|
+
response_event_state_ = SideStreamResponseEventState::kExpectBodyOrTrailers;
|
|
922
|
+
} else if (processing_mode().send_response_trailers) {
|
|
923
|
+
response_event_state_ = SideStreamResponseEventState::kExpectTrailers;
|
|
924
|
+
} else {
|
|
925
|
+
response_event_state_ = SideStreamResponseEventState::kExpectNothing;
|
|
926
|
+
}
|
|
927
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
928
|
+
<< DebugTag()
|
|
929
|
+
<< "Processing external processor response for server initial "
|
|
930
|
+
"metadata";
|
|
931
|
+
if (is_trailers_only_) {
|
|
932
|
+
if (server_trailing_metadata_ == nullptr) {
|
|
933
|
+
CancelCallWithError(absl::InternalError(
|
|
934
|
+
"Server trailers not found in trailers-only response"));
|
|
935
|
+
return Failure{};
|
|
936
|
+
}
|
|
937
|
+
if (auto status =
|
|
938
|
+
ApplyHeaderMutations(response.mutation, config().mutation_rules,
|
|
939
|
+
*server_trailing_metadata_);
|
|
940
|
+
!status.ok()) {
|
|
941
|
+
CancelCallWithError(status);
|
|
942
|
+
return Failure{};
|
|
943
|
+
}
|
|
944
|
+
handler_.PushServerTrailingMetadata(std::move(server_trailing_metadata_));
|
|
945
|
+
ext_proc_filter_->RecordServerTrailersDuration(
|
|
946
|
+
(Timestamp::Now() - server_trailing_metadata_start_time_).seconds());
|
|
947
|
+
return Success{};
|
|
948
|
+
}
|
|
949
|
+
if (server_initial_metadata_ == nullptr) {
|
|
950
|
+
CancelCallWithError(
|
|
951
|
+
absl::InternalError("Server initial metadata not found"));
|
|
952
|
+
return Failure{};
|
|
953
|
+
}
|
|
954
|
+
if (auto status =
|
|
955
|
+
ApplyHeaderMutations(response.mutation, config().mutation_rules,
|
|
956
|
+
*server_initial_metadata_);
|
|
957
|
+
!status.ok()) {
|
|
958
|
+
CancelCallWithError(status);
|
|
959
|
+
return Failure{};
|
|
960
|
+
}
|
|
961
|
+
handler_.PushServerInitialMetadata(std::move(server_initial_metadata_));
|
|
962
|
+
ext_proc_filter_->RecordServerHeadersDuration(
|
|
963
|
+
(Timestamp::Now() - server_initial_metadata_start_time_).seconds());
|
|
964
|
+
return Success{};
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
StatusFlag ExtProcFilter::ExtProcCall::HandleServerMessageFromSidestream(
|
|
968
|
+
const ExtProcResponse::ResponseBody& response) {
|
|
969
|
+
if (response.mutation.drain_complete) {
|
|
970
|
+
if (response_body_drain_state_ != BodyDrainState::kDrainInFlight) {
|
|
971
|
+
CancelCallWithError(absl::InternalError(
|
|
972
|
+
"Received unexpected drain_complete from external processor"));
|
|
973
|
+
return Failure{};
|
|
974
|
+
}
|
|
975
|
+
response_body_drain_state_ = BodyDrainState::kDrained;
|
|
976
|
+
response_body_drain_complete_latch_.Set();
|
|
977
|
+
response_event_state_ = processing_mode().send_response_trailers
|
|
978
|
+
? SideStreamResponseEventState::kExpectTrailers
|
|
979
|
+
: SideStreamResponseEventState::kExpectNothing;
|
|
980
|
+
return Success{};
|
|
981
|
+
}
|
|
982
|
+
if (response_event_state_ !=
|
|
983
|
+
SideStreamResponseEventState::kExpectBodyOrTrailers) {
|
|
984
|
+
CancelCallWithError(absl::InternalError(
|
|
985
|
+
"Received unexpected response body response from external processor"));
|
|
986
|
+
return Failure{};
|
|
987
|
+
}
|
|
988
|
+
// TODO(rishesh): Remove this check when we stop using the v3-to-v1 bridge.
|
|
989
|
+
// We need this check in the short term because of the restriction that the
|
|
990
|
+
// ext_proc server cannot change the number of messages on the stream.
|
|
991
|
+
// However, once that restriction is removed, this check will no longer be
|
|
992
|
+
// correct: even if the server sends a trailers-only response, the ext_proc
|
|
993
|
+
// server should still be allowed to insert its own headers and messages
|
|
994
|
+
// before sending status.
|
|
995
|
+
if (is_trailers_only_) {
|
|
996
|
+
CancelCallWithError(absl::InternalError(
|
|
997
|
+
"Received response body response in a Trailers-Only call"));
|
|
998
|
+
return Failure{};
|
|
999
|
+
}
|
|
1000
|
+
if (outstanding_s2c_messages_ == 0) {
|
|
1001
|
+
CancelCallWithError(absl::InternalError(
|
|
1002
|
+
"Received unexpected response body response from external processor"));
|
|
1003
|
+
return Failure{};
|
|
1004
|
+
}
|
|
1005
|
+
--outstanding_s2c_messages_;
|
|
1006
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1007
|
+
<< DebugTag() << "Processing external processor response for server body";
|
|
1008
|
+
auto slice = Slice::FromCopiedString(response.mutation.body);
|
|
1009
|
+
auto new_msg = handler_.arena()->MakePooled<Message>(
|
|
1010
|
+
SliceBuffer(std::move(slice)), /*flags=*/0);
|
|
1011
|
+
// TODO(rishesh, roth): Spawning this push into the activity means that we
|
|
1012
|
+
// won't have flow control feedback here in a pure v3 stack, so we need to fix
|
|
1013
|
+
// it before we finish the v3 migration.
|
|
1014
|
+
handler_.SpawnPushMessage(std::move(new_msg));
|
|
1015
|
+
return Success{};
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
StatusFlag
|
|
1019
|
+
ExtProcFilter::ExtProcCall::HandleServerTrailingMetadataFromSidestream(
|
|
1020
|
+
const ExtProcResponse::ResponseTrailers& response) {
|
|
1021
|
+
if (response_event_state_ !=
|
|
1022
|
+
SideStreamResponseEventState::kExpectBodyOrTrailers &&
|
|
1023
|
+
response_event_state_ != SideStreamResponseEventState::kExpectTrailers) {
|
|
1024
|
+
CancelCallWithError(absl::InternalError(
|
|
1025
|
+
"Received unexpected response trailers response from external "
|
|
1026
|
+
"processor"));
|
|
1027
|
+
return Failure{};
|
|
1028
|
+
}
|
|
1029
|
+
if (outstanding_s2c_messages_ > 0) {
|
|
1030
|
+
CancelCallWithError(absl::InternalError(
|
|
1031
|
+
"Received response trailers response before all outstanding "
|
|
1032
|
+
"response body responses were received"));
|
|
1033
|
+
return Failure{};
|
|
1034
|
+
}
|
|
1035
|
+
response_event_state_ = SideStreamResponseEventState::kExpectNothing;
|
|
1036
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1037
|
+
<< DebugTag()
|
|
1038
|
+
<< "Processing external processor response for server trailing "
|
|
1039
|
+
"metadata";
|
|
1040
|
+
if (server_trailing_metadata_ == nullptr) {
|
|
1041
|
+
CancelCallWithError(
|
|
1042
|
+
absl::InternalError("Server trailing metadata not found"));
|
|
1043
|
+
return Failure{};
|
|
1044
|
+
}
|
|
1045
|
+
if (auto status =
|
|
1046
|
+
ApplyHeaderMutations(response.mutation, config().mutation_rules,
|
|
1047
|
+
*server_trailing_metadata_);
|
|
1048
|
+
!status.ok()) {
|
|
1049
|
+
CancelCallWithError(status);
|
|
1050
|
+
return Failure{};
|
|
1051
|
+
}
|
|
1052
|
+
handler_.PushServerTrailingMetadata(std::move(server_trailing_metadata_));
|
|
1053
|
+
ext_proc_filter_->RecordServerTrailersDuration(
|
|
1054
|
+
(Timestamp::Now() - server_trailing_metadata_start_time_).seconds());
|
|
1055
|
+
return Success{};
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
StatusFlag ExtProcFilter::ExtProcCall::HandleImmediateResponseFromSidestream(
|
|
1059
|
+
const ExtProcResponse::ImmediateResponse& response) {
|
|
1060
|
+
if (config().disable_immediate_response) {
|
|
1061
|
+
CancelCallWithError(absl::InternalError(
|
|
1062
|
+
"unhandled immediate response due to config disabled it"));
|
|
1063
|
+
return Failure{};
|
|
1064
|
+
}
|
|
1065
|
+
request_event_state_ = SideStreamRequestEventState::kExpectNothing;
|
|
1066
|
+
response_event_state_ = SideStreamResponseEventState::kExpectNothing;
|
|
1067
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1068
|
+
<< DebugTag() << "Processing external processor immediate response";
|
|
1069
|
+
auto error_md = CancelledServerMetadataFromStatus(
|
|
1070
|
+
static_cast<grpc_status_code>(response.status), response.details);
|
|
1071
|
+
(void)ApplyHeaderMutations(response.mutation, config().mutation_rules,
|
|
1072
|
+
*error_md);
|
|
1073
|
+
handler_.PushServerTrailingMetadata(std::move(error_md));
|
|
1074
|
+
return Success{};
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
auto ExtProcFilter::ExtProcCall::ProcessSideStreamResponse(
|
|
1078
|
+
absl::string_view payload) {
|
|
1079
|
+
std::optional<std::string> request_drain;
|
|
1080
|
+
std::optional<std::string> response_drain;
|
|
1081
|
+
// Synchronously parse and apply the response, collecting any drain messages
|
|
1082
|
+
// that need to be sent to the side-stream.
|
|
1083
|
+
const StatusFlag status = [&]() -> StatusFlag {
|
|
1084
|
+
// In observability mode, we only log the message and ignore it.
|
|
1085
|
+
// We must continue reading the stream to keep it alive.
|
|
1086
|
+
if (config().observability_mode) {
|
|
1087
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1088
|
+
<< DebugTag()
|
|
1089
|
+
<< "message received in observability mode (ignored), size="
|
|
1090
|
+
<< payload.size();
|
|
1091
|
+
return Success{};
|
|
1092
|
+
}
|
|
1093
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1094
|
+
<< DebugTag() << "message received, size=" << payload.size();
|
|
1095
|
+
// Parse the response from the external processor.
|
|
1096
|
+
auto parsed_response = ExtProcResponse::Parse(payload);
|
|
1097
|
+
if (!parsed_response.ok()) {
|
|
1098
|
+
HandleSideStreamStatus(parsed_response.status());
|
|
1099
|
+
return Failure{};
|
|
1100
|
+
}
|
|
1101
|
+
// Handle request body drain initiation.
|
|
1102
|
+
if (parsed_response->request_drain_requests &&
|
|
1103
|
+
processing_mode().send_request_body && !c2s_writes_done_ &&
|
|
1104
|
+
!ext_proc_closed_c2s_ &&
|
|
1105
|
+
request_body_drain_state_ == BodyDrainState::kNotDraining) {
|
|
1106
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1107
|
+
<< DebugTag() << "initiating request body drain";
|
|
1108
|
+
request_body_drain_state_ = BodyDrainState::kDrainInFlight;
|
|
1109
|
+
upb::Arena arena;
|
|
1110
|
+
auto drain_payload = CreateExtProcClientBodyRequest(
|
|
1111
|
+
arena.ptr(), /*body=*/"", /*attributes=*/nullptr,
|
|
1112
|
+
config().observability_mode, /*processing_mode=*/std::nullopt,
|
|
1113
|
+
/*end_of_stream=*/false, /*end_of_stream_without_message=*/false,
|
|
1114
|
+
/*drain_complete=*/true);
|
|
1115
|
+
if (!drain_payload.ok()) {
|
|
1116
|
+
HandleSideStreamStatus(drain_payload.status());
|
|
1117
|
+
return Failure{};
|
|
1118
|
+
}
|
|
1119
|
+
request_drain = std::move(*drain_payload);
|
|
1120
|
+
}
|
|
1121
|
+
// Handle response body drain initiation.
|
|
1122
|
+
if (parsed_response->request_drain_responses &&
|
|
1123
|
+
processing_mode().send_response_body && !is_trailers_only_ &&
|
|
1124
|
+
server_trailing_metadata_ == nullptr &&
|
|
1125
|
+
response_body_drain_state_ == BodyDrainState::kNotDraining) {
|
|
1126
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1127
|
+
<< DebugTag() << "initiating response body drain";
|
|
1128
|
+
response_body_drain_state_ = BodyDrainState::kDrainInFlight;
|
|
1129
|
+
upb::Arena arena;
|
|
1130
|
+
auto drain_payload = CreateExtProcServerBodyRequest(
|
|
1131
|
+
arena.ptr(), /*body=*/"", /*attributes=*/nullptr,
|
|
1132
|
+
config().observability_mode, /*processing_mode=*/std::nullopt,
|
|
1133
|
+
/*drain_complete=*/true);
|
|
1134
|
+
if (!drain_payload.ok()) {
|
|
1135
|
+
HandleSideStreamStatus(drain_payload.status());
|
|
1136
|
+
return Failure{};
|
|
1137
|
+
}
|
|
1138
|
+
response_drain = std::move(*drain_payload);
|
|
1139
|
+
}
|
|
1140
|
+
// Dispatch the parsed response to the appropriate processor based on the
|
|
1141
|
+
// response type.
|
|
1142
|
+
return Match(
|
|
1143
|
+
parsed_response->response,
|
|
1144
|
+
[&](const ExtProcResponse::ImmediateResponse& response) {
|
|
1145
|
+
return HandleImmediateResponseFromSidestream(response);
|
|
1146
|
+
},
|
|
1147
|
+
[&](const ExtProcResponse::RequestHeaders& response) {
|
|
1148
|
+
return HandleClientInitialMetadataFromSidestream(response);
|
|
1149
|
+
},
|
|
1150
|
+
[&](const ExtProcResponse::ResponseHeaders& response) {
|
|
1151
|
+
return HandleServerInitialMetadataFromSidestream(response);
|
|
1152
|
+
},
|
|
1153
|
+
[&](const ExtProcResponse::ResponseTrailers& response) {
|
|
1154
|
+
return HandleServerTrailingMetadataFromSidestream(response);
|
|
1155
|
+
},
|
|
1156
|
+
[&](const ExtProcResponse::RequestBody& response) {
|
|
1157
|
+
return HandleClientMessageFromSidestream(response);
|
|
1158
|
+
},
|
|
1159
|
+
[&](const ExtProcResponse::ResponseBody& response) {
|
|
1160
|
+
return HandleServerMessageFromSidestream(response);
|
|
1161
|
+
},
|
|
1162
|
+
[](std::monostate) { return StatusFlag(Success{}); });
|
|
1163
|
+
}();
|
|
1164
|
+
// Send any drain messages to the side-stream. TrySeq stops early if `status`
|
|
1165
|
+
// is a failure, so nothing is sent in that case.
|
|
1166
|
+
auto maybe_send = [self = WeakRef()](std::optional<std::string> message) {
|
|
1167
|
+
const bool has_message = message.has_value();
|
|
1168
|
+
return If(
|
|
1169
|
+
has_message,
|
|
1170
|
+
[self, message = std::move(message)]() mutable {
|
|
1171
|
+
return self->SendMessageToSideStream(std::move(*message));
|
|
1172
|
+
},
|
|
1173
|
+
[]() { return StatusFlag(Success{}); });
|
|
1174
|
+
};
|
|
1175
|
+
return TrySeq(Immediate(status), maybe_send(std::move(request_drain)),
|
|
1176
|
+
maybe_send(std::move(response_drain)));
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
bool ExtProcFilter::ExtProcCall::HandleSideStreamStatus(absl::Status status) {
|
|
1180
|
+
if (side_stream_closed_latch_.is_set()) {
|
|
1181
|
+
return true;
|
|
1182
|
+
}
|
|
1183
|
+
side_stream_closed_latch_.Set();
|
|
1184
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1185
|
+
<< DebugTag() << "status received: " << status;
|
|
1186
|
+
const bool has_outstanding_messages =
|
|
1187
|
+
outstanding_c2s_messages_ > 0 || outstanding_s2c_messages_ > 0;
|
|
1188
|
+
// Check if a clean stream closure violated draining or message-in-flight
|
|
1189
|
+
// requirements.
|
|
1190
|
+
if (status.ok()) {
|
|
1191
|
+
if (!config().observability_mode) {
|
|
1192
|
+
const bool send_request_body = processing_mode().send_request_body;
|
|
1193
|
+
const bool send_response_body = processing_mode().send_response_body;
|
|
1194
|
+
if (request_body_drain_state_ == BodyDrainState::kDrainInFlight ||
|
|
1195
|
+
(send_request_body && !c2s_writes_done_ && !ext_proc_closed_c2s_ &&
|
|
1196
|
+
request_body_drain_state_ != BodyDrainState::kDrained)) {
|
|
1197
|
+
status = absl::InternalError("Stream closed cleanly without drain");
|
|
1198
|
+
} else if (response_body_drain_state_ == BodyDrainState::kDrainInFlight ||
|
|
1199
|
+
(send_response_body && !is_trailers_only_ &&
|
|
1200
|
+
(server_trailing_metadata_ == nullptr) &&
|
|
1201
|
+
response_body_drain_state_ != BodyDrainState::kDrained)) {
|
|
1202
|
+
status = absl::InternalError("Stream closed cleanly without drain");
|
|
1203
|
+
} else if (has_outstanding_messages) {
|
|
1204
|
+
status = absl::InternalError(
|
|
1205
|
+
"Stream closed cleanly with outstanding messages");
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
} else if (status.code() != absl::StatusCode::kInternal) {
|
|
1209
|
+
status = absl::InternalError(
|
|
1210
|
+
absl::StrCat("External processor stream failed: ", status.ToString()));
|
|
1211
|
+
}
|
|
1212
|
+
const bool fail_data_plane_stream = !status.ok() && !IsFailOpenAllowed();
|
|
1213
|
+
if (fail_data_plane_stream) {
|
|
1214
|
+
CancelCallWithError(status);
|
|
1215
|
+
return false;
|
|
1216
|
+
}
|
|
1217
|
+
// Not failing, so make sure we process any outstanding processors by
|
|
1218
|
+
// forwarding unmutated metadata.
|
|
1219
|
+
if (request_event_state_ == SideStreamRequestEventState::kExpectHeaders &&
|
|
1220
|
+
client_initial_metadata_ != nullptr) {
|
|
1221
|
+
(void)HandleClientInitialMetadataFromSidestream(
|
|
1222
|
+
ExtProcResponse::RequestHeaders{});
|
|
1223
|
+
}
|
|
1224
|
+
if (response_event_state_ == SideStreamResponseEventState::kExpectHeaders &&
|
|
1225
|
+
((!is_trailers_only_ && server_initial_metadata_ != nullptr) ||
|
|
1226
|
+
(is_trailers_only_ && server_trailing_metadata_ != nullptr))) {
|
|
1227
|
+
(void)HandleServerInitialMetadataFromSidestream(
|
|
1228
|
+
ExtProcResponse::ResponseHeaders{});
|
|
1229
|
+
}
|
|
1230
|
+
if ((response_event_state_ ==
|
|
1231
|
+
SideStreamResponseEventState::kExpectBodyOrTrailers ||
|
|
1232
|
+
response_event_state_ ==
|
|
1233
|
+
SideStreamResponseEventState::kExpectTrailers) &&
|
|
1234
|
+
!is_trailers_only_ && server_trailing_metadata_ != nullptr) {
|
|
1235
|
+
(void)HandleServerTrailingMetadataFromSidestream(
|
|
1236
|
+
ExtProcResponse::ResponseTrailers{});
|
|
1237
|
+
}
|
|
1238
|
+
request_body_drain_state_ = BodyDrainState::kDrained;
|
|
1239
|
+
response_body_drain_state_ = BodyDrainState::kDrained;
|
|
1240
|
+
if (!request_body_drain_complete_latch_.is_set()) {
|
|
1241
|
+
request_body_drain_complete_latch_.Set();
|
|
1242
|
+
}
|
|
1243
|
+
if (!response_body_drain_complete_latch_.is_set()) {
|
|
1244
|
+
response_body_drain_complete_latch_.Set();
|
|
1245
|
+
}
|
|
1246
|
+
return true;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
//
|
|
1250
|
+
// Read-from-client Event Handlers
|
|
1251
|
+
//
|
|
1252
|
+
|
|
1253
|
+
auto ExtProcFilter::ExtProcCall::HandleInitialMetadataFromClient(
|
|
1254
|
+
ClientMetadataHandle metadata) {
|
|
1255
|
+
client_initial_metadata_start_time_ = Timestamp::Now();
|
|
1256
|
+
client_initial_metadata_ = std::move(metadata);
|
|
1257
|
+
const bool send_request_headers = processing_mode().send_request_headers;
|
|
1258
|
+
absl::StatusOr<std::string> payload = "";
|
|
1259
|
+
if (send_request_headers) {
|
|
1260
|
+
// Construct ext_proc request for client initial metadata.
|
|
1261
|
+
// Include processing mode in the request if this is the first message
|
|
1262
|
+
// on the stream.
|
|
1263
|
+
std::optional<ExtProcProcessingMode> processing_mode;
|
|
1264
|
+
if (IsFirstMessageOnSideStream()) {
|
|
1265
|
+
processing_mode = config().processing_mode;
|
|
1266
|
+
}
|
|
1267
|
+
upb::Arena arena;
|
|
1268
|
+
EvaluateArgs args(client_initial_metadata_.get(),
|
|
1269
|
+
ext_proc_filter_->per_channel_evaluate_args());
|
|
1270
|
+
auto* header_attributes = CreateExtProcAttributesProtoStruct(
|
|
1271
|
+
arena.ptr(), config().request_attributes, args,
|
|
1272
|
+
ext_proc_filter_->default_authority_.as_string_view(),
|
|
1273
|
+
ext_proc_filter_->sha256_peer_certificate_digest_);
|
|
1274
|
+
payload = CreateExtProcClientHeadersRequest(
|
|
1275
|
+
arena.ptr(), client_initial_metadata_.get(),
|
|
1276
|
+
config().forwarding_allowed_headers,
|
|
1277
|
+
config().forwarding_disallowed_headers, header_attributes,
|
|
1278
|
+
config().observability_mode, processing_mode);
|
|
1279
|
+
}
|
|
1280
|
+
// If request body will be sent later and request attributes are
|
|
1281
|
+
// configured, extract initial attributes from client metadata.
|
|
1282
|
+
else if (processing_mode().send_request_body &&
|
|
1283
|
+
!config().request_attributes.empty()) {
|
|
1284
|
+
EvaluateArgs args(client_initial_metadata_.get(),
|
|
1285
|
+
ext_proc_filter_->per_channel_evaluate_args());
|
|
1286
|
+
request_attributes_ = CreateExtProcAttributesProtoStruct(
|
|
1287
|
+
request_attributes_arena_.ptr(), config().request_attributes, args,
|
|
1288
|
+
ext_proc_filter_->default_authority_.as_string_view(),
|
|
1289
|
+
ext_proc_filter_->sha256_peer_certificate_digest_);
|
|
1290
|
+
}
|
|
1291
|
+
const bool call_cancelled =
|
|
1292
|
+
!payload.ok() && !HandleSideStreamStatus(payload.status());
|
|
1293
|
+
const bool send_to_sidestream = send_request_headers && payload.ok() &&
|
|
1294
|
+
!side_stream_closed_latch_.is_set();
|
|
1295
|
+
return If(
|
|
1296
|
+
call_cancelled, Immediate(StatusFlag(Failure{})),
|
|
1297
|
+
TrySeq(
|
|
1298
|
+
// Forward initial metadata to backend if not waiting for side-stream
|
|
1299
|
+
// or running in observability mode.
|
|
1300
|
+
If(
|
|
1301
|
+
!send_to_sidestream || config().observability_mode,
|
|
1302
|
+
[self = WeakRef()]() {
|
|
1303
|
+
// client_initial_metadata_ will be null if payload creation
|
|
1304
|
+
// failed with fail-open enabled, in which case
|
|
1305
|
+
// HandleSideStreamStatus() has already forwarded the metadata
|
|
1306
|
+
// and started the child call.
|
|
1307
|
+
if (self->client_initial_metadata_ != nullptr) {
|
|
1308
|
+
self->StartChildCall(
|
|
1309
|
+
std::move(self->client_initial_metadata_));
|
|
1310
|
+
}
|
|
1311
|
+
return Immediate(StatusFlag(Success{}));
|
|
1312
|
+
},
|
|
1313
|
+
Immediate(StatusFlag(Success{}))),
|
|
1314
|
+
// Send client initial metadata payload to the side-stream.
|
|
1315
|
+
If(
|
|
1316
|
+
send_to_sidestream,
|
|
1317
|
+
[self = WeakRef(), payload = std::move(payload)]() mutable {
|
|
1318
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1319
|
+
<< self->DebugTag()
|
|
1320
|
+
<< "Sending client initial metadata to sidestream";
|
|
1321
|
+
return self->SendMessageToSideStream(std::move(*payload));
|
|
1322
|
+
},
|
|
1323
|
+
[self = WeakRef()]() {
|
|
1324
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1325
|
+
<< self->DebugTag()
|
|
1326
|
+
<< "Skipping client initial metadata (processing mode "
|
|
1327
|
+
"disabled)";
|
|
1328
|
+
return Immediate(StatusFlag(Success{}));
|
|
1329
|
+
})));
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
auto ExtProcFilter::ExtProcCall::HandleMessageFromClient(
|
|
1333
|
+
MessageHandle message) {
|
|
1334
|
+
const bool send_request_body =
|
|
1335
|
+
processing_mode().send_request_body &&
|
|
1336
|
+
!side_stream_closed_latch_.is_set() &&
|
|
1337
|
+
request_body_drain_state_ == BodyDrainState::kNotDraining;
|
|
1338
|
+
absl::StatusOr<std::string> payload = "";
|
|
1339
|
+
if (request_body_drain_state_ != BodyDrainState::kNotDraining) {
|
|
1340
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1341
|
+
<< DebugTag() << "Client message in drain mode";
|
|
1342
|
+
} else if (!send_request_body) {
|
|
1343
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1344
|
+
<< DebugTag()
|
|
1345
|
+
<< "Client message non-processing mode (processing disabled or "
|
|
1346
|
+
"closed)";
|
|
1347
|
+
}
|
|
1348
|
+
// TODO(rishesh): If the external processor has already closed client
|
|
1349
|
+
// sends (via end_of_stream or end_of_stream_without_message in
|
|
1350
|
+
// ProcessingResponse), any subsequent message from the client cannot be
|
|
1351
|
+
// processed. Since message dropping is not yet supported in Call v3,
|
|
1352
|
+
// fail the call here. Remove this once PH2 is implemented.
|
|
1353
|
+
else if (ext_proc_closed_c2s_) {
|
|
1354
|
+
payload = absl::InternalError(
|
|
1355
|
+
"Client tried to send a message but external processor server has "
|
|
1356
|
+
"already force sent half close to the server");
|
|
1357
|
+
} else {
|
|
1358
|
+
// Construct message for sidestream.
|
|
1359
|
+
std::string message_bytes;
|
|
1360
|
+
if (message != nullptr) {
|
|
1361
|
+
message_bytes = message->payload()->JoinIntoString();
|
|
1362
|
+
}
|
|
1363
|
+
if (!config().observability_mode) {
|
|
1364
|
+
++outstanding_c2s_messages_;
|
|
1365
|
+
}
|
|
1366
|
+
std::optional<ExtProcProcessingMode> processing_mode;
|
|
1367
|
+
if (IsFirstMessageOnSideStream()) {
|
|
1368
|
+
processing_mode = config().processing_mode;
|
|
1369
|
+
}
|
|
1370
|
+
upb::Arena arena;
|
|
1371
|
+
payload = CreateExtProcClientBodyRequest(
|
|
1372
|
+
arena.ptr(), message_bytes, request_attributes_,
|
|
1373
|
+
config().observability_mode, processing_mode,
|
|
1374
|
+
/*end_of_stream=*/false,
|
|
1375
|
+
/*end_of_stream_without_message=*/false);
|
|
1376
|
+
request_attributes_ = nullptr;
|
|
1377
|
+
}
|
|
1378
|
+
const bool call_cancelled =
|
|
1379
|
+
!payload.ok() && !HandleSideStreamStatus(payload.status());
|
|
1380
|
+
const bool send_to_sidestream =
|
|
1381
|
+
send_request_body && payload.ok() && !side_stream_closed_latch_.is_set();
|
|
1382
|
+
return If(
|
|
1383
|
+
call_cancelled, Immediate(StatusFlag(Failure{})),
|
|
1384
|
+
TrySeq(
|
|
1385
|
+
// Wait for request body drain to complete if in flight.
|
|
1386
|
+
If(
|
|
1387
|
+
request_body_drain_state_ == BodyDrainState::kDrainInFlight,
|
|
1388
|
+
[self = WeakRef()]() {
|
|
1389
|
+
return TrySeq(self->request_body_drain_complete_latch_.Wait(),
|
|
1390
|
+
[self]() -> StatusFlag {
|
|
1391
|
+
if (self->request_body_drain_state_ !=
|
|
1392
|
+
BodyDrainState::kDrained) {
|
|
1393
|
+
return Failure{};
|
|
1394
|
+
}
|
|
1395
|
+
return Success{};
|
|
1396
|
+
});
|
|
1397
|
+
},
|
|
1398
|
+
Immediate(StatusFlag(Success{}))),
|
|
1399
|
+
// This is a promise factory rather than a promise, so that the
|
|
1400
|
+
// message is not forwarded until the drain wait above completes
|
|
1401
|
+
// (If<bool> invokes its branch factory eagerly on construction).
|
|
1402
|
+
[self = WeakRef(), send_to_sidestream, message = std::move(message),
|
|
1403
|
+
payload = std::move(payload)]() mutable {
|
|
1404
|
+
return Map(TryJoin<ValueOrFailure>(
|
|
1405
|
+
// Forward client message to backend if not waiting
|
|
1406
|
+
// for side-stream or running in observability mode.
|
|
1407
|
+
// Wait for the child call to be started first, since
|
|
1408
|
+
// the message may be read before the ext_proc server
|
|
1409
|
+
// has responded to the request headers.
|
|
1410
|
+
If(
|
|
1411
|
+
!send_to_sidestream ||
|
|
1412
|
+
self->config().observability_mode,
|
|
1413
|
+
[self, message = std::move(message)]() mutable {
|
|
1414
|
+
return Map(
|
|
1415
|
+
self->child_call_started_latch_.Wait(),
|
|
1416
|
+
[self, message = std::move(message)](
|
|
1417
|
+
Empty) mutable {
|
|
1418
|
+
// TODO(rishesh, roth): Spawning this
|
|
1419
|
+
// push into the activity means that we
|
|
1420
|
+
// won't have flow control feedback here
|
|
1421
|
+
// in a pure v3 stack, so we need to fix
|
|
1422
|
+
// it before we finish the v3 migration.
|
|
1423
|
+
self->initiator_.SpawnPushMessage(
|
|
1424
|
+
std::move(message));
|
|
1425
|
+
return StatusFlag(Success{});
|
|
1426
|
+
});
|
|
1427
|
+
},
|
|
1428
|
+
Immediate(StatusFlag(Success{}))),
|
|
1429
|
+
// Send client message payload to the side-stream.
|
|
1430
|
+
If(
|
|
1431
|
+
send_to_sidestream,
|
|
1432
|
+
[self, payload = std::move(payload)]() mutable {
|
|
1433
|
+
self->first_body_message_sent_ = true;
|
|
1434
|
+
if (self->config().observability_mode) {
|
|
1435
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1436
|
+
<< self->DebugTag()
|
|
1437
|
+
<< "Client message observability mode";
|
|
1438
|
+
}
|
|
1439
|
+
return self->SendMessageToSideStream(
|
|
1440
|
+
std::move(*payload));
|
|
1441
|
+
},
|
|
1442
|
+
Immediate(StatusFlag(Success{})))),
|
|
1443
|
+
[](auto x) { return x.status(); });
|
|
1444
|
+
}));
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
auto ExtProcFilter::ExtProcCall::HandleHalfCloseFromClient() {
|
|
1448
|
+
client_half_close_start_time_ = Timestamp::Now();
|
|
1449
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1450
|
+
<< DebugTag() << "HandleHalfCloseFromClient invoked";
|
|
1451
|
+
c2s_writes_done_ = true;
|
|
1452
|
+
const bool send_request_body =
|
|
1453
|
+
processing_mode().send_request_body && !ext_proc_closed_c2s_ &&
|
|
1454
|
+
!side_stream_closed_latch_.is_set() &&
|
|
1455
|
+
request_body_drain_state_ == BodyDrainState::kNotDraining;
|
|
1456
|
+
absl::StatusOr<std::string> payload = "";
|
|
1457
|
+
if (send_request_body) {
|
|
1458
|
+
if (!config().observability_mode) {
|
|
1459
|
+
++outstanding_c2s_messages_;
|
|
1460
|
+
}
|
|
1461
|
+
std::optional<ExtProcProcessingMode> processing_mode;
|
|
1462
|
+
if (IsFirstMessageOnSideStream()) {
|
|
1463
|
+
processing_mode = config().processing_mode;
|
|
1464
|
+
}
|
|
1465
|
+
upb::Arena arena;
|
|
1466
|
+
payload = CreateExtProcClientBodyRequest(
|
|
1467
|
+
arena.ptr(), /*body=*/"", request_attributes_,
|
|
1468
|
+
config().observability_mode, processing_mode,
|
|
1469
|
+
/*end_of_stream=*/true,
|
|
1470
|
+
/*end_of_stream_without_message=*/true);
|
|
1471
|
+
request_attributes_ = nullptr;
|
|
1472
|
+
}
|
|
1473
|
+
const bool call_cancelled =
|
|
1474
|
+
!payload.ok() && !HandleSideStreamStatus(payload.status());
|
|
1475
|
+
const bool send_to_sidestream =
|
|
1476
|
+
send_request_body && payload.ok() && !side_stream_closed_latch_.is_set();
|
|
1477
|
+
return If(
|
|
1478
|
+
call_cancelled, Immediate(StatusFlag(Failure{})),
|
|
1479
|
+
TrySeq(
|
|
1480
|
+
// Wait for request body drain to complete if in flight.
|
|
1481
|
+
If(
|
|
1482
|
+
request_body_drain_state_ == BodyDrainState::kDrainInFlight,
|
|
1483
|
+
[self = WeakRef()]() {
|
|
1484
|
+
return TrySeq(self->request_body_drain_complete_latch_.Wait(),
|
|
1485
|
+
[self]() -> StatusFlag {
|
|
1486
|
+
if (self->request_body_drain_state_ !=
|
|
1487
|
+
BodyDrainState::kDrained) {
|
|
1488
|
+
return Failure{};
|
|
1489
|
+
}
|
|
1490
|
+
return Success{};
|
|
1491
|
+
});
|
|
1492
|
+
},
|
|
1493
|
+
Immediate(StatusFlag(Success{}))),
|
|
1494
|
+
// Forward half-close to backend if not waiting for side-stream
|
|
1495
|
+
// or running in observability mode. This is a promise factory
|
|
1496
|
+
// so that the half-close is not forwarded until the drain wait
|
|
1497
|
+
// above completes. Wait for the child call to be started first,
|
|
1498
|
+
// since if the client half-closes without sending any message,
|
|
1499
|
+
// the half-close may be read before the ext_proc server has
|
|
1500
|
+
// responded to the request headers. (Any message forwarded before
|
|
1501
|
+
// the half-close has already waited for the child call.)
|
|
1502
|
+
[self = WeakRef(), send_to_sidestream]() {
|
|
1503
|
+
return If(
|
|
1504
|
+
!send_to_sidestream || self->config().observability_mode,
|
|
1505
|
+
[self]() {
|
|
1506
|
+
return Map(self->child_call_started_latch_.Wait(),
|
|
1507
|
+
[self](Empty) {
|
|
1508
|
+
self->initiator_.SpawnFinishSends();
|
|
1509
|
+
return StatusFlag(Success{});
|
|
1510
|
+
});
|
|
1511
|
+
},
|
|
1512
|
+
Immediate(StatusFlag(Success{})));
|
|
1513
|
+
},
|
|
1514
|
+
// Send client half-close payload to the side-stream.
|
|
1515
|
+
[self = WeakRef(), send_to_sidestream,
|
|
1516
|
+
payload = std::move(payload)]() mutable {
|
|
1517
|
+
return If(
|
|
1518
|
+
send_to_sidestream,
|
|
1519
|
+
[self, payload = std::move(payload)]() mutable {
|
|
1520
|
+
self->first_body_message_sent_ = true;
|
|
1521
|
+
return self->SendMessageToSideStream(std::move(*payload));
|
|
1522
|
+
},
|
|
1523
|
+
Immediate(StatusFlag(Success{})));
|
|
1524
|
+
}));
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
//
|
|
1528
|
+
// Read-from-server Event Handlers
|
|
1529
|
+
//
|
|
1530
|
+
|
|
1531
|
+
auto ExtProcFilter::ExtProcCall::HandleInitialMetadataFromServer(
|
|
1532
|
+
std::optional<ServerMetadataHandle> metadata) {
|
|
1533
|
+
server_initial_metadata_start_time_ = Timestamp::Now();
|
|
1534
|
+
const bool is_trailers_only =
|
|
1535
|
+
!metadata.has_value() ||
|
|
1536
|
+
(*metadata)->get(GrpcTrailersOnly()).value_or(false);
|
|
1537
|
+
if (is_trailers_only) {
|
|
1538
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1539
|
+
<< DebugTag() << "No server initial metadata (trailers-only response)";
|
|
1540
|
+
is_trailers_only_ = true;
|
|
1541
|
+
} else {
|
|
1542
|
+
server_initial_metadata_ = std::move(*metadata);
|
|
1543
|
+
}
|
|
1544
|
+
const bool send_response_headers =
|
|
1545
|
+
!is_trailers_only && processing_mode().send_response_headers &&
|
|
1546
|
+
!side_stream_closed_latch_.is_set() &&
|
|
1547
|
+
response_body_drain_state_ == BodyDrainState::kNotDraining;
|
|
1548
|
+
absl::StatusOr<std::string> payload = "";
|
|
1549
|
+
if (send_response_headers) {
|
|
1550
|
+
// Include processing mode if this is the first message on the
|
|
1551
|
+
// stream.
|
|
1552
|
+
std::optional<ExtProcProcessingMode> processing_mode;
|
|
1553
|
+
if (IsFirstMessageOnSideStream()) {
|
|
1554
|
+
processing_mode = config().processing_mode;
|
|
1555
|
+
}
|
|
1556
|
+
upb::Arena arena;
|
|
1557
|
+
payload = CreateExtProcServerHeadersRequest(
|
|
1558
|
+
arena.ptr(), server_initial_metadata_.get(),
|
|
1559
|
+
config().forwarding_allowed_headers,
|
|
1560
|
+
config().forwarding_disallowed_headers,
|
|
1561
|
+
/*attributes=*/nullptr, config().observability_mode, processing_mode,
|
|
1562
|
+
/*end_of_stream=*/false);
|
|
1563
|
+
}
|
|
1564
|
+
const bool call_cancelled =
|
|
1565
|
+
!payload.ok() && !HandleSideStreamStatus(payload.status());
|
|
1566
|
+
const bool send_to_sidestream = send_response_headers && payload.ok() &&
|
|
1567
|
+
!side_stream_closed_latch_.is_set();
|
|
1568
|
+
return If(
|
|
1569
|
+
call_cancelled, Immediate(StatusFlag(Failure{})),
|
|
1570
|
+
TrySeq(
|
|
1571
|
+
// Forward server initial metadata downstream to client if not
|
|
1572
|
+
// trailers-only and not waiting for side-stream or in observability
|
|
1573
|
+
// mode.
|
|
1574
|
+
If(
|
|
1575
|
+
!is_trailers_only &&
|
|
1576
|
+
(!send_to_sidestream || config().observability_mode),
|
|
1577
|
+
[self = WeakRef()]() {
|
|
1578
|
+
// server_initial_metadata_ will be null if payload creation
|
|
1579
|
+
// failed with fail-open enabled, in which case
|
|
1580
|
+
// HandleSideStreamStatus() has already forwarded the metadata.
|
|
1581
|
+
if (self->server_initial_metadata_ != nullptr) {
|
|
1582
|
+
self->handler_.PushServerInitialMetadata(
|
|
1583
|
+
std::move(self->server_initial_metadata_));
|
|
1584
|
+
}
|
|
1585
|
+
return Immediate(StatusFlag(Success{}));
|
|
1586
|
+
},
|
|
1587
|
+
Immediate(StatusFlag(Success{}))),
|
|
1588
|
+
// Send server initial metadata payload to the side-stream.
|
|
1589
|
+
If(
|
|
1590
|
+
send_to_sidestream,
|
|
1591
|
+
[self = WeakRef(), payload = std::move(payload)]() mutable {
|
|
1592
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1593
|
+
<< self->DebugTag()
|
|
1594
|
+
<< "Sending server initial metadata (observability_mode="
|
|
1595
|
+
<< (self->config().observability_mode ? "true" : "false")
|
|
1596
|
+
<< ")";
|
|
1597
|
+
return self->SendMessageToSideStream(std::move(*payload));
|
|
1598
|
+
},
|
|
1599
|
+
[self = WeakRef(), is_trailers_only]() {
|
|
1600
|
+
if (!is_trailers_only) {
|
|
1601
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1602
|
+
<< self->DebugTag()
|
|
1603
|
+
<< "Skipping server initial metadata (processing "
|
|
1604
|
+
"disabled or stream closed)";
|
|
1605
|
+
}
|
|
1606
|
+
return Immediate(StatusFlag(Success{}));
|
|
1607
|
+
})));
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
auto ExtProcFilter::ExtProcCall::HandleTrailingMetadataFromServer(
|
|
1611
|
+
ServerMetadataHandle metadata) {
|
|
1612
|
+
server_trailing_metadata_start_time_ = Timestamp::Now();
|
|
1613
|
+
server_trailing_metadata_ = std::move(metadata);
|
|
1614
|
+
const bool send_metadata =
|
|
1615
|
+
(is_trailers_only_ || IsStatusOk(*server_trailing_metadata_)) &&
|
|
1616
|
+
!side_stream_closed_latch_.is_set() &&
|
|
1617
|
+
response_body_drain_state_ == BodyDrainState::kNotDraining &&
|
|
1618
|
+
(is_trailers_only_ ? processing_mode().send_response_headers
|
|
1619
|
+
: processing_mode().send_response_trailers);
|
|
1620
|
+
absl::StatusOr<std::string> payload = "";
|
|
1621
|
+
if (send_metadata) {
|
|
1622
|
+
// Include processing mode if this is the first message on
|
|
1623
|
+
// the stream.
|
|
1624
|
+
std::optional<ExtProcProcessingMode> processing_mode;
|
|
1625
|
+
if (IsFirstMessageOnSideStream()) {
|
|
1626
|
+
processing_mode = config().processing_mode;
|
|
1627
|
+
}
|
|
1628
|
+
upb::Arena arena;
|
|
1629
|
+
payload = is_trailers_only_
|
|
1630
|
+
? CreateExtProcServerHeadersRequest(
|
|
1631
|
+
arena.ptr(), server_trailing_metadata_.get(),
|
|
1632
|
+
config().forwarding_allowed_headers,
|
|
1633
|
+
config().forwarding_disallowed_headers,
|
|
1634
|
+
/*attributes=*/nullptr, config().observability_mode,
|
|
1635
|
+
processing_mode, /*end_of_stream=*/true)
|
|
1636
|
+
: CreateExtProcServerTrailersRequest(
|
|
1637
|
+
arena.ptr(), server_trailing_metadata_.get(),
|
|
1638
|
+
config().forwarding_allowed_headers,
|
|
1639
|
+
config().forwarding_disallowed_headers,
|
|
1640
|
+
/*attributes=*/nullptr, config().observability_mode,
|
|
1641
|
+
processing_mode);
|
|
1642
|
+
}
|
|
1643
|
+
const bool call_cancelled =
|
|
1644
|
+
!payload.ok() && !HandleSideStreamStatus(payload.status());
|
|
1645
|
+
const bool send_to_sidestream =
|
|
1646
|
+
send_metadata && payload.ok() && !side_stream_closed_latch_.is_set();
|
|
1647
|
+
return If(
|
|
1648
|
+
call_cancelled, Immediate(StatusFlag(Failure{})),
|
|
1649
|
+
TrySeq(
|
|
1650
|
+
// Wait for response body drain to complete if in flight.
|
|
1651
|
+
If(
|
|
1652
|
+
response_body_drain_state_ == BodyDrainState::kDrainInFlight,
|
|
1653
|
+
[self = WeakRef()]() {
|
|
1654
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1655
|
+
<< self->DebugTag()
|
|
1656
|
+
<< "Waiting for response body drain before handling server "
|
|
1657
|
+
"trailing metadata";
|
|
1658
|
+
return TrySeq(self->response_body_drain_complete_latch_.Wait(),
|
|
1659
|
+
[self]() -> StatusFlag {
|
|
1660
|
+
if (self->response_body_drain_state_ !=
|
|
1661
|
+
BodyDrainState::kDrained) {
|
|
1662
|
+
return Failure{};
|
|
1663
|
+
}
|
|
1664
|
+
return Success{};
|
|
1665
|
+
});
|
|
1666
|
+
},
|
|
1667
|
+
Immediate(StatusFlag(Success{}))),
|
|
1668
|
+
// Send server trailing metadata payload to the side-stream.
|
|
1669
|
+
// In observability mode, this must happen before forwarding the
|
|
1670
|
+
// trailing metadata downstream: forwarding completes the call,
|
|
1671
|
+
// after which this send may never run. Once the write is accepted,
|
|
1672
|
+
// deferred_close_timeout keeps the side-stream alive to flush it.
|
|
1673
|
+
If(
|
|
1674
|
+
send_to_sidestream,
|
|
1675
|
+
[self = WeakRef(), payload = std::move(payload)]() mutable {
|
|
1676
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1677
|
+
<< self->DebugTag()
|
|
1678
|
+
<< "Sending server trailing metadata (observability_mode="
|
|
1679
|
+
<< (self->config().observability_mode ? "true" : "false")
|
|
1680
|
+
<< ")";
|
|
1681
|
+
return self->SendMessageToSideStream(std::move(*payload));
|
|
1682
|
+
},
|
|
1683
|
+
[self = WeakRef(), send_metadata]() {
|
|
1684
|
+
if (!send_metadata) {
|
|
1685
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1686
|
+
<< self->DebugTag()
|
|
1687
|
+
<< "Skipping server trailing metadata (processing "
|
|
1688
|
+
"disabled or stream closed)";
|
|
1689
|
+
}
|
|
1690
|
+
return Immediate(StatusFlag(Success{}));
|
|
1691
|
+
}),
|
|
1692
|
+
// Forward server trailing metadata downstream to client if not
|
|
1693
|
+
// waiting for side-stream or running in observability mode.
|
|
1694
|
+
[self = WeakRef(),
|
|
1695
|
+
forward = !send_to_sidestream || config().observability_mode]() {
|
|
1696
|
+
// server_trailing_metadata_ will be null if payload creation
|
|
1697
|
+
// failed with fail-open enabled, in which case
|
|
1698
|
+
// HandleSideStreamStatus() has already forwarded the metadata.
|
|
1699
|
+
if (forward && self->server_trailing_metadata_ != nullptr) {
|
|
1700
|
+
self->handler_.PushServerTrailingMetadata(
|
|
1701
|
+
std::move(self->server_trailing_metadata_));
|
|
1702
|
+
}
|
|
1703
|
+
return Immediate(StatusFlag(Success{}));
|
|
1704
|
+
}));
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
//
|
|
1708
|
+
// ExtProcFilter::ExtProcCall Server Message Processing
|
|
1709
|
+
//
|
|
1710
|
+
|
|
1711
|
+
auto ExtProcFilter::ExtProcCall::HandleMessageFromServer(
|
|
1712
|
+
MessageHandle message) {
|
|
1713
|
+
const bool send_body =
|
|
1714
|
+
processing_mode().send_response_body &&
|
|
1715
|
+
!side_stream_closed_latch_.is_set() &&
|
|
1716
|
+
response_body_drain_state_ == BodyDrainState::kNotDraining;
|
|
1717
|
+
absl::StatusOr<std::string> payload = "";
|
|
1718
|
+
if (response_body_drain_state_ != BodyDrainState::kNotDraining) {
|
|
1719
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1720
|
+
<< DebugTag() << "Server message in drain mode";
|
|
1721
|
+
} else if (!send_body) {
|
|
1722
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1723
|
+
<< DebugTag() << "Server message non-processing mode";
|
|
1724
|
+
} else {
|
|
1725
|
+
// Construct message for sidestream.
|
|
1726
|
+
std::string message_bytes;
|
|
1727
|
+
if (message != nullptr) {
|
|
1728
|
+
message_bytes = message->payload()->JoinIntoString();
|
|
1729
|
+
}
|
|
1730
|
+
if (!config().observability_mode) {
|
|
1731
|
+
++outstanding_s2c_messages_;
|
|
1732
|
+
}
|
|
1733
|
+
std::optional<ExtProcProcessingMode> processing_mode;
|
|
1734
|
+
if (IsFirstMessageOnSideStream()) {
|
|
1735
|
+
processing_mode = config().processing_mode;
|
|
1736
|
+
}
|
|
1737
|
+
upb::Arena arena;
|
|
1738
|
+
payload = CreateExtProcServerBodyRequest(
|
|
1739
|
+
arena.ptr(), message_bytes, /*attributes=*/nullptr,
|
|
1740
|
+
config().observability_mode, processing_mode);
|
|
1741
|
+
}
|
|
1742
|
+
const bool call_cancelled =
|
|
1743
|
+
!payload.ok() && !HandleSideStreamStatus(payload.status());
|
|
1744
|
+
const bool send_to_sidestream =
|
|
1745
|
+
send_body && payload.ok() && !side_stream_closed_latch_.is_set();
|
|
1746
|
+
return If(
|
|
1747
|
+
call_cancelled, Immediate(StatusFlag(Failure{})),
|
|
1748
|
+
TrySeq(
|
|
1749
|
+
// Wait for response body drain to complete if in flight.
|
|
1750
|
+
If(
|
|
1751
|
+
response_body_drain_state_ == BodyDrainState::kDrainInFlight,
|
|
1752
|
+
[self = WeakRef()]() {
|
|
1753
|
+
return TrySeq(self->response_body_drain_complete_latch_.Wait(),
|
|
1754
|
+
[self]() -> StatusFlag {
|
|
1755
|
+
if (self->response_body_drain_state_ !=
|
|
1756
|
+
BodyDrainState::kDrained) {
|
|
1757
|
+
return Failure{};
|
|
1758
|
+
}
|
|
1759
|
+
return Success{};
|
|
1760
|
+
});
|
|
1761
|
+
},
|
|
1762
|
+
Immediate(StatusFlag(Success{}))),
|
|
1763
|
+
// This is a promise factory rather than a promise, so that the
|
|
1764
|
+
// message is not forwarded until the drain wait above completes
|
|
1765
|
+
// (If<bool> invokes its branch factory eagerly on construction).
|
|
1766
|
+
[self = WeakRef(), send_to_sidestream, message = std::move(message),
|
|
1767
|
+
payload = std::move(payload)]() mutable {
|
|
1768
|
+
return Map(
|
|
1769
|
+
TryJoin<ValueOrFailure>(
|
|
1770
|
+
// Forward server message downstream to client if not
|
|
1771
|
+
// waiting for side-stream or running in observability
|
|
1772
|
+
// mode.
|
|
1773
|
+
If(
|
|
1774
|
+
!send_to_sidestream ||
|
|
1775
|
+
self->config().observability_mode,
|
|
1776
|
+
[self, message = std::move(message)]() mutable {
|
|
1777
|
+
return self->handler_.PushMessage(std::move(message));
|
|
1778
|
+
},
|
|
1779
|
+
Immediate(StatusFlag(Success{}))),
|
|
1780
|
+
// Send server message payload to the side-stream.
|
|
1781
|
+
If(
|
|
1782
|
+
send_to_sidestream,
|
|
1783
|
+
[self, payload = std::move(payload)]() mutable {
|
|
1784
|
+
self->first_body_message_sent_ = true;
|
|
1785
|
+
if (self->config().observability_mode) {
|
|
1786
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1787
|
+
<< self->DebugTag()
|
|
1788
|
+
<< "Server message observability mode";
|
|
1789
|
+
}
|
|
1790
|
+
return self->SendMessageToSideStream(
|
|
1791
|
+
std::move(*payload));
|
|
1792
|
+
},
|
|
1793
|
+
Immediate(StatusFlag(Success{})))),
|
|
1794
|
+
[](auto x) { return x.status(); });
|
|
1795
|
+
}));
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
// Handle the read-from-client loop on handler_.
|
|
1799
|
+
// Called when the ExtProcCall is created.
|
|
1800
|
+
//
|
|
1801
|
+
// Handles client initial metadata, client messages, and half-close.
|
|
1802
|
+
// Sends each event to the ext_proc side-stream and/or to the server,
|
|
1803
|
+
// based on the configuration.
|
|
1804
|
+
auto ExtProcFilter::ExtProcCall::HandleReadFromClientLoop() {
|
|
1805
|
+
return TrySeq(
|
|
1806
|
+
handler_.PullClientInitialMetadata(),
|
|
1807
|
+
[self = WeakRef()](ClientMetadataHandle metadata) {
|
|
1808
|
+
return self->HandleInitialMetadataFromClient(std::move(metadata));
|
|
1809
|
+
},
|
|
1810
|
+
[self = WeakRef()]() {
|
|
1811
|
+
return ForEach(
|
|
1812
|
+
MessagesFrom(self->handler_), [self](MessageHandle message) {
|
|
1813
|
+
return self->HandleMessageFromClient(std::move(message));
|
|
1814
|
+
});
|
|
1815
|
+
},
|
|
1816
|
+
[self = WeakRef()]() { return self->HandleHalfCloseFromClient(); });
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
// Handle the read-from-server loop on handler_.
|
|
1820
|
+
// Called when the ExtProcCall is created.
|
|
1821
|
+
//
|
|
1822
|
+
// Handles server initial metadata, server messages, and server
|
|
1823
|
+
// trailing metadata received from the initiator_ activity.
|
|
1824
|
+
// Sends each event to the ext_proc side-stream and/or to the client,
|
|
1825
|
+
// based on the configuration.
|
|
1826
|
+
auto ExtProcFilter::ExtProcCall::HandleReadFromServerActivityLoop() {
|
|
1827
|
+
return Seq(
|
|
1828
|
+
TrySeq(
|
|
1829
|
+
server_initial_metadata_latch_.Wait(),
|
|
1830
|
+
[self = WeakRef()](std::optional<ServerMetadataHandle> metadata) {
|
|
1831
|
+
const bool has_md = metadata.has_value();
|
|
1832
|
+
return TrySeq(
|
|
1833
|
+
self->HandleInitialMetadataFromServer(std::move(metadata)),
|
|
1834
|
+
If(
|
|
1835
|
+
has_md,
|
|
1836
|
+
[self]() {
|
|
1837
|
+
return ForEach(
|
|
1838
|
+
std::move(self->server_to_client_messages_.receiver),
|
|
1839
|
+
[self](MessageHandle message) {
|
|
1840
|
+
return self->HandleMessageFromServer(
|
|
1841
|
+
std::move(message));
|
|
1842
|
+
});
|
|
1843
|
+
},
|
|
1844
|
+
Immediate(StatusFlag(Success{}))));
|
|
1845
|
+
}),
|
|
1846
|
+
server_trailing_metadata_latch_.Wait(),
|
|
1847
|
+
[self = WeakRef()](ServerMetadataHandle metadata) {
|
|
1848
|
+
return self->HandleTrailingMetadataFromServer(std::move(metadata));
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
// Continuously pulls response messages from the external processor side-stream
|
|
1853
|
+
// and dispatches them until the stream closes or an error occurs.
|
|
1854
|
+
auto ExtProcFilter::ExtProcCall::HandleReadFromSideStreamLoop() {
|
|
1855
|
+
return TrySeq(
|
|
1856
|
+
// Loop reading response messages from the side-stream until
|
|
1857
|
+
// end-of-stream or error.
|
|
1858
|
+
Loop([self = WeakRef()]() {
|
|
1859
|
+
return Seq(
|
|
1860
|
+
// Pull the next response message from the streaming call.
|
|
1861
|
+
If(self->streaming_call_ == nullptr,
|
|
1862
|
+
Immediate(std::optional<std::string>()),
|
|
1863
|
+
[self]() { return self->streaming_call_->PullMessage(); }),
|
|
1864
|
+
// Process the message; stop loop if end-of-stream (nullopt) or
|
|
1865
|
+
// error.
|
|
1866
|
+
[self](std::optional<std::string> msg) {
|
|
1867
|
+
const bool is_end_of_stream = !msg.has_value();
|
|
1868
|
+
return If(
|
|
1869
|
+
is_end_of_stream, Immediate(LoopCtl<StatusFlag>(Success{})),
|
|
1870
|
+
[self, msg = std::move(msg)]() mutable {
|
|
1871
|
+
return Map(self->ProcessSideStreamResponse(std::move(*msg)),
|
|
1872
|
+
[](StatusFlag status) -> LoopCtl<StatusFlag> {
|
|
1873
|
+
if (!status.ok()) return Failure{};
|
|
1874
|
+
return Continue();
|
|
1875
|
+
});
|
|
1876
|
+
});
|
|
1877
|
+
});
|
|
1878
|
+
}),
|
|
1879
|
+
// Once the message loop ends, pull the side-stream's final status and
|
|
1880
|
+
// handle it. A loop failure has already been reported (either to
|
|
1881
|
+
// HandleSideStreamStatus() or straight to CancelCallWithError()), so we
|
|
1882
|
+
// stop here: handling it a second time would re-run the fail-open path
|
|
1883
|
+
// on a call that we have already failed.
|
|
1884
|
+
[self = WeakRef()]() {
|
|
1885
|
+
return Map(
|
|
1886
|
+
// Obtain the side-stream's final status, synthesizing one if
|
|
1887
|
+
// the stream is already gone.
|
|
1888
|
+
If(self->streaming_call_ == nullptr,
|
|
1889
|
+
Immediate(absl::InternalError("Side stream unavailable")),
|
|
1890
|
+
[self]() {
|
|
1891
|
+
return self->streaming_call_->PullServerTrailingMetadata();
|
|
1892
|
+
}),
|
|
1893
|
+
[self](absl::Status status) -> StatusFlag {
|
|
1894
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1895
|
+
<< self->DebugTag()
|
|
1896
|
+
<< "HandleReadFromSideStreamLoop finished with status: "
|
|
1897
|
+
<< status;
|
|
1898
|
+
return StatusFlag(self->HandleSideStreamStatus(status));
|
|
1899
|
+
});
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
// Runs the client-read, server-read, and side-stream-read loops until all
|
|
1904
|
+
// complete.
|
|
1905
|
+
auto ExtProcFilter::ExtProcCall::Run() {
|
|
1906
|
+
return Map(TryJoin<absl::StatusOr>(HandleReadFromClientLoop(),
|
|
1907
|
+
HandleReadFromServerActivityLoop(),
|
|
1908
|
+
HandleReadFromSideStreamLoop()),
|
|
1909
|
+
[](const auto& res) { return res.status(); });
|
|
1910
|
+
}
|
|
1911
|
+
|
|
156
1912
|
//
|
|
157
1913
|
// ExtProcFilter
|
|
158
1914
|
//
|
|
@@ -164,6 +1920,9 @@ const grpc_channel_filter ExtProcFilter::kFilterVtable = MakePromiseBasedFilter<
|
|
|
164
1920
|
|
|
165
1921
|
absl::StatusOr<RefCountedPtr<ExtProcFilter>> ExtProcFilter::Create(
|
|
166
1922
|
const ChannelArgs& args, ChannelFilter::Args filter_args) {
|
|
1923
|
+
if (filter_args.config() == nullptr) {
|
|
1924
|
+
return absl::InvalidArgumentError("ext_proc filter config is missing");
|
|
1925
|
+
}
|
|
167
1926
|
if (filter_args.config()->type() != Config::Type()) {
|
|
168
1927
|
return absl::InternalError("ext_proc filter config has wrong type");
|
|
169
1928
|
}
|
|
@@ -174,51 +1933,127 @@ absl::StatusOr<RefCountedPtr<ExtProcFilter>> ExtProcFilter::Create(
|
|
|
174
1933
|
ExtProcFilter::ExtProcFilter(const ChannelArgs& args,
|
|
175
1934
|
RefCountedPtr<const Config> config)
|
|
176
1935
|
: V3InterceptorToV2Bridge<ExtProcFilter>(args),
|
|
177
|
-
|
|
1936
|
+
is_server_(args.GetBool(GRPC_ARG_IS_SERVER_FILTER_STACK).value_or(false)),
|
|
1937
|
+
config_(std::move(config)),
|
|
1938
|
+
event_engine_(
|
|
1939
|
+
args.GetObjectRef<grpc_event_engine::experimental::EventEngine>()),
|
|
1940
|
+
default_authority_([&]() -> Slice {
|
|
1941
|
+
// On the server, :authority always comes from the incoming request.
|
|
1942
|
+
if (is_server_) return Slice();
|
|
1943
|
+
if (auto authority = args.GetString(GRPC_ARG_DEFAULT_AUTHORITY);
|
|
1944
|
+
authority.has_value()) {
|
|
1945
|
+
return Slice::FromCopiedString(*authority);
|
|
1946
|
+
}
|
|
1947
|
+
return Slice::FromCopiedString(
|
|
1948
|
+
CoreConfiguration::Get().resolver_registry().GetDefaultAuthority(
|
|
1949
|
+
args.GetString(GRPC_ARG_SERVER_URI).value_or("")));
|
|
1950
|
+
}()),
|
|
1951
|
+
telemetry_storage_([&]() -> TelemetryStorage {
|
|
1952
|
+
auto stats_plugin_group =
|
|
1953
|
+
args.GetObjectRef<GlobalStatsPluginRegistry::StatsPluginGroup>();
|
|
1954
|
+
if (stats_plugin_group == nullptr) return std::monostate{};
|
|
1955
|
+
auto scope = stats_plugin_group->GetCollectionScope();
|
|
1956
|
+
if (scope == nullptr) return std::monostate{};
|
|
1957
|
+
if (is_server_) {
|
|
1958
|
+
return ServerTelemetryDomain::GetStorage(std::move(scope));
|
|
1959
|
+
}
|
|
1960
|
+
return ClientTelemetryDomain::GetStorage(
|
|
1961
|
+
std::move(scope), args.GetString(GRPC_ARG_SERVER_URI).value_or(""));
|
|
1962
|
+
}()) {
|
|
1963
|
+
if (is_server_) {
|
|
1964
|
+
auth_context_ = args.GetObjectRef<grpc_auth_context>();
|
|
1965
|
+
per_channel_evaluate_args_.emplace(auth_context_.get(), args);
|
|
1966
|
+
if (std::find(config_->request_attributes.begin(),
|
|
1967
|
+
config_->request_attributes.end(),
|
|
1968
|
+
"connection.sha256_peer_certificate_digest") !=
|
|
1969
|
+
config_->request_attributes.end()) {
|
|
1970
|
+
sha256_peer_certificate_digest_ =
|
|
1971
|
+
ComputeSha256PeerCertificateDigest(auth_context_.get());
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
178
1975
|
|
|
179
|
-
void ExtProcFilter::
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
1976
|
+
void ExtProcFilter::Orphaned() {
|
|
1977
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1978
|
+
<< "ExtProcFilter " << this << " Orphaned()";
|
|
1979
|
+
event_engine_.reset();
|
|
1980
|
+
config_.reset();
|
|
1981
|
+
per_channel_evaluate_args_.reset();
|
|
1982
|
+
auth_context_.reset();
|
|
1983
|
+
telemetry_storage_ = std::monostate{};
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
ExtProcFilter::~ExtProcFilter() {
|
|
1987
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
1988
|
+
<< "ExtProcFilter " << this << " destroyed";
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
void ExtProcFilter::RecordDuration(ClientTelemetryDomain::DoubleHistogramHandle<
|
|
1992
|
+
ExponentialDoubleHistogramShape>
|
|
1993
|
+
client_metric,
|
|
1994
|
+
ServerTelemetryDomain::DoubleHistogramHandle<
|
|
1995
|
+
ExponentialDoubleHistogramShape>
|
|
1996
|
+
server_metric,
|
|
1997
|
+
double duration_seconds) const {
|
|
1998
|
+
Match(
|
|
1999
|
+
telemetry_storage_, [](const std::monostate&) {},
|
|
2000
|
+
[duration_seconds,
|
|
2001
|
+
client_metric](const InstrumentStorageRefPtr<ClientTelemetryDomain>& s) {
|
|
2002
|
+
if (s != nullptr) {
|
|
2003
|
+
s->Increment(client_metric, duration_seconds);
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
[duration_seconds,
|
|
2007
|
+
server_metric](const InstrumentStorageRefPtr<ServerTelemetryDomain>& s) {
|
|
2008
|
+
if (s != nullptr) {
|
|
2009
|
+
s->Increment(server_metric, duration_seconds);
|
|
2010
|
+
}
|
|
194
2011
|
});
|
|
195
2012
|
}
|
|
196
2013
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
2014
|
+
void ExtProcFilter::RecordClientHeadersDuration(double duration_seconds) const {
|
|
2015
|
+
RecordDuration(ClientTelemetryDomain::kClientHeadersDuration,
|
|
2016
|
+
ServerTelemetryDomain::kClientHeadersDuration,
|
|
2017
|
+
duration_seconds);
|
|
2018
|
+
}
|
|
200
2019
|
|
|
201
|
-
ExtProcFilter::
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
<< "creating channel " << this << " for server " << server_->server_uri();
|
|
207
|
-
absl::Status status;
|
|
208
|
-
transport_ = transport_factory->GetTransport(*server_, &status);
|
|
209
|
-
GRPC_CHECK(transport_ != nullptr);
|
|
210
|
-
// TODO(rishesh): Return an error if channel construction fails instead of
|
|
211
|
-
// just logging a message.
|
|
212
|
-
if (!status.ok()) {
|
|
213
|
-
LOG(ERROR) << "Error creating ext_proc channel to " << server_->server_uri()
|
|
214
|
-
<< ": " << status;
|
|
215
|
-
}
|
|
2020
|
+
void ExtProcFilter::RecordClientHalfCloseDuration(
|
|
2021
|
+
double duration_seconds) const {
|
|
2022
|
+
RecordDuration(ClientTelemetryDomain::kClientHalfCloseDuration,
|
|
2023
|
+
ServerTelemetryDomain::kClientHalfCloseDuration,
|
|
2024
|
+
duration_seconds);
|
|
216
2025
|
}
|
|
217
2026
|
|
|
218
|
-
ExtProcFilter::
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
2027
|
+
void ExtProcFilter::RecordServerHeadersDuration(double duration_seconds) const {
|
|
2028
|
+
RecordDuration(ClientTelemetryDomain::kServerHeadersDuration,
|
|
2029
|
+
ServerTelemetryDomain::kServerHeadersDuration,
|
|
2030
|
+
duration_seconds);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
void ExtProcFilter::RecordServerTrailersDuration(
|
|
2034
|
+
double duration_seconds) const {
|
|
2035
|
+
RecordDuration(ClientTelemetryDomain::kServerTrailersDuration,
|
|
2036
|
+
ServerTelemetryDomain::kServerTrailersDuration,
|
|
2037
|
+
duration_seconds);
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
void ExtProcFilter::InterceptCall(UnstartedCallHandler unstarted_call_handler) {
|
|
2041
|
+
if (!IsProcessingEnabled(config_->processing_mode)) {
|
|
2042
|
+
PassThrough(std::move(unstarted_call_handler));
|
|
2043
|
+
return;
|
|
2044
|
+
}
|
|
2045
|
+
CallHandler handler = Consume(std::move(unstarted_call_handler));
|
|
2046
|
+
handler.SpawnGuarded(
|
|
2047
|
+
"ext_proc_call",
|
|
2048
|
+
[handler, ext_proc_filter = RefAsSubclass<ExtProcFilter>()]() mutable {
|
|
2049
|
+
GRPC_TRACE_LOG(ext_proc_filter, INFO)
|
|
2050
|
+
<< "[" << Activity::current()->DebugTag()
|
|
2051
|
+
<< " ext_proc_filter=" << ext_proc_filter.get()
|
|
2052
|
+
<< "] InterceptCall promise chain start";
|
|
2053
|
+
auto ext_proc_call = MakeRefCounted<ExtProcCall>(
|
|
2054
|
+
ext_proc_filter, ext_proc_filter->channel()->transport(), handler);
|
|
2055
|
+
return ext_proc_call->Run();
|
|
2056
|
+
});
|
|
222
2057
|
}
|
|
223
2058
|
|
|
224
2059
|
} // namespace grpc_core
|