grpc 1.85.0 → 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 +13 -9
- data/etc/roots.pem +0 -583
- data/include/grpc/channel_factory.h +78 -0
- data/include/grpc/credentials.h +21 -0
- data/include/grpc/grpc.h +7 -0
- data/include/grpc/grpc_security_constants.h +2 -0
- data/include/grpc/module.modulemap +1 -0
- data/src/core/call/call_filters.cc +4 -1
- data/src/core/call/call_filters.h +3 -1
- 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/call/evaluate_args.cc +15 -14
- data/src/core/call/filter_fusion.h +2 -15
- data/src/core/call/interception_chain.h +2 -7
- data/src/core/call/metadata_batch.cc +5 -0
- data/src/core/call/metadata_batch.h +34 -3
- data/src/core/call/request_buffer.cc +1 -1
- data/src/core/call/server_call.cc +3 -3
- data/src/core/call/server_call.h +15 -0
- data/src/core/channelz/channelz_registry.cc +4 -4
- data/src/core/channelz/ztrace_collector.h +11 -2
- 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/global_subchannel_pool.cc +2 -2
- data/src/core/client_channel/lame_channel.cc +59 -0
- data/src/core/client_channel/lame_channel.h +86 -0
- data/src/core/credentials/call/external/aws_request_signer.cc +2 -1
- 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 +16 -0
- data/src/core/credentials/call/regional_access_boundary_fetcher.h +6 -2
- 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/ssl_utils.cc +20 -0
- data/src/core/credentials/transport/tls/ssl_utils.h +4 -0
- data/src/core/credentials/transport/tls/tls_security_connector.cc +6 -2
- 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 +2 -11
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +2 -2
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +31 -24
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +1 -2
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +69 -102
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +1 -1
- data/src/core/ext/transport/chttp2/transport/flow_control.h +2 -2
- 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 +1 -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 +33 -0
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.cc +34 -19
- data/src/core/ext/transport/chttp2/transport/http2_client_transport.h +5 -2
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.cc +134 -82
- data/src/core/ext/transport/chttp2/transport/http2_server_transport.h +30 -15
- data/src/core/ext/transport/chttp2/transport/http2_settings_promises.h +4 -3
- data/src/core/ext/transport/chttp2/transport/http2_transport.cc +9 -33
- data/src/core/ext/transport/chttp2/transport/http2_transport.h +1 -6
- data/src/core/ext/transport/chttp2/transport/http2_transport_stats.h +60 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +6 -1
- data/src/core/ext/transport/chttp2/transport/keepalive.h +1 -4
- data/src/core/ext/transport/chttp2/transport/parsing.cc +4 -8
- 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 +19 -5
- data/src/core/ext/transport/chttp2/transport/security_frame.h +7 -6
- data/src/core/ext/transport/chttp2/transport/stream_data_queue.h +7 -5
- 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/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/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/filter/ext_proc/ext_proc_filter.cc +537 -259
- data/src/core/filter/ext_proc/ext_proc_filter.h +47 -14
- data/src/core/filter/ext_proc/ext_proc_messages.cc +38 -17
- data/src/core/filter/ext_proc/ext_proc_messages.h +19 -7
- data/src/core/filter/filter_args.h +5 -60
- data/src/core/handshaker/http_connect/http_connect_client_handshaker.cc +1 -1
- data/src/core/handshaker/security/pipelined_secure_endpoint.cc +23 -22
- data/src/core/handshaker/security/secure_endpoint.cc +16 -16
- 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 +57 -44
- data/src/core/lib/channel/promise_based_filter.h +29 -41
- data/src/core/lib/event_engine/ares_resolver.cc +10 -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/posix_engine/ev_epoll1_linux.cc +1 -5
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/file_descriptor_collection.cc +3 -17
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +21 -1
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +5 -5
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +10 -12
- data/src/core/lib/event_engine/posix_engine/posix_interface.h +1 -1
- data/src/core/lib/event_engine/posix_engine/timer.cc +2 -2
- 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/windows/windows_engine.cc +4 -4
- data/src/core/lib/event_engine/windows/windows_listener.cc +1 -1
- data/src/core/lib/experiments/experiments.cc +144 -261
- data/src/core/lib/experiments/experiments.h +48 -120
- data/src/core/lib/iomgr/iomgr_windows.cc +1 -6
- data/src/core/lib/iomgr/tcp_posix.cc +21 -21
- 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 +8 -8
- data/src/core/lib/promise/activity.h +5 -5
- data/src/core/lib/promise/inter_activity_pipe.h +3 -3
- data/src/core/lib/promise/party.cc +5 -5
- data/src/core/lib/promise/status_flag.h +7 -2
- data/src/core/lib/resource_quota/memory_quota.cc +2 -2
- data/src/core/lib/security/authorization/rbac_policy.h +2 -2
- data/src/core/lib/surface/call.cc +13 -3
- data/src/core/lib/surface/call.h +23 -6
- data/src/core/lib/surface/channel_create.cc +7 -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 +3 -3
- data/src/core/lib/surface/legacy_channel.cc +4 -1
- 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 +8 -2
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +99 -8
- 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 +2 -1
- data/src/core/load_balancing/rls/rls.cc +21 -1
- data/src/core/load_balancing/xds/cds.cc +4 -51
- data/src/core/plugin_registry/grpc_plugin_registry.cc +10 -13
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -7
- data/src/core/resolver/xds/xds_resolver.cc +1 -1
- data/src/core/server/server.cc +60 -4
- 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/transport/auth_context.cc +15 -5
- data/src/core/transport/auth_context.h +5 -0
- data/src/core/tsi/ssl_telemetry_utils.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +158 -52
- data/src/core/tsi/ssl_transport_security.h +18 -2
- data/src/core/tsi/ssl_transport_security_utils.cc +123 -12
- data/src/core/tsi/ssl_transport_security_utils.h +19 -0
- data/src/core/util/latent_see.cc +65 -3
- data/src/core/util/latent_see.h +57 -12
- data/src/core/util/linux/cpu.cc +12 -6
- data/src/core/util/mpscq.cc +2 -2
- data/src/core/util/sync_abseil.cc +3 -3
- 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 +1 -1
- 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 +5 -2
- data/src/core/xds/grpc/streaming_call_promise_wrapper.h +2 -5
- 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 +2 -28
- data/src/core/xds/grpc/xds_bootstrap_grpc_builder.h +0 -20
- data/src/core/xds/grpc/xds_client_grpc.cc +4 -4
- 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_common_types_parser.cc +12 -0
- data/src/core/xds/grpc/xds_endpoint_parser.cc +3 -3
- 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 +1 -5
- 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 +2 -1
- 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 +78 -241
- data/src/core/xds/grpc/xds_transport_grpc.h +41 -51
- data/src/core/xds/xds_client/lrs_client.cc +3 -5
- data/src/core/xds/xds_client/lrs_client.h +2 -1
- data/src/core/xds/xds_client/xds_client.cc +36 -23
- data/src/core/xds/xds_client/xds_client.h +6 -5
- data/src/core/xds/xds_client/xds_transport.h +110 -108
- data/src/core/xds/xds_client/xds_transport_factory.h +43 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +4 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +6 -0
- data/src/ruby/lib/grpc/generic/rpc_server.rb +2 -2
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/a_type.cc +54 -19
- data/third_party/boringssl-with-bazel/crypto/asn1/asn1_lib.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/asn1/internal.h +58 -12
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_dec.cc +13 -13
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_enc.cc +13 -11
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_fre.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_new.cc +31 -35
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_typ.cc +0 -2
- data/third_party/boringssl-with-bazel/crypto/asn1/tasn_utl.cc +17 -24
- data/third_party/boringssl-with-bazel/crypto/bio/bio.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/bio_mem.cc +9 -3
- data/third_party/boringssl-with-bazel/crypto/bio/connect.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/bio/fd.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/file.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/internal.h +2 -3
- data/third_party/boringssl-with-bazel/crypto/bio/pair.cc +0 -1
- data/third_party/boringssl-with-bazel/crypto/bio/socket.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbb.cc +70 -45
- data/third_party/boringssl-with-bazel/crypto/bytestring/cbs.cc +15 -34
- data/third_party/boringssl-with-bazel/crypto/bytestring/internal.h +5 -0
- data/third_party/boringssl-with-bazel/crypto/cipher/e_aesgcmsiv.cc +20 -165
- data/third_party/boringssl-with-bazel/crypto/cipher/e_tls.cc +7 -4
- data/third_party/boringssl-with-bazel/crypto/cipher/internal.h +159 -0
- data/third_party/boringssl-with-bazel/crypto/curve25519/curve25519.cc +295 -16
- data/third_party/boringssl-with-bazel/crypto/curve25519/internal.h +25 -14
- data/third_party/boringssl-with-bazel/crypto/dh/params.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/ec/hash_to_curve.cc +208 -36
- data/third_party/boringssl-with-bazel/crypto/err/err.cc +3 -2
- data/third_party/boringssl-with-bazel/crypto/evp/evp.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/evp/evp_kem.cc +25 -6
- data/third_party/boringssl-with-bazel/crypto/evp/internal.h +15 -11
- data/third_party/boringssl-with-bazel/crypto/evp/p_ec.cc +121 -0
- data/third_party/boringssl-with-bazel/crypto/evp/p_mlkem.cc +34 -9
- data/third_party/boringssl-with-bazel/crypto/evp/p_rsa.cc +76 -8
- data/third_party/boringssl-with-bazel/crypto/evp/p_xwing.cc +47 -20
- data/third_party/boringssl-with-bazel/crypto/ex_data.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/aes_nohw.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/aes/gcm.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bcm.cc +1 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/add.cc.inc +9 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/asm/x86_64-gcc.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/exponentiation.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/internal.h +12 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/jacobi.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/montgomery_inv.cc.inc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/prime.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/rsaz_exp.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/bn/sqrt.cc.inc +21 -21
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/aead.cc.inc +4 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/cipher.cc.inc +97 -132
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/cipher/internal.h +7 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/dh.cc.inc +3 -3
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/dh/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec.cc.inc +77 -17
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/ec_montgomery.cc.inc +13 -13
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/felem.cc.inc +117 -34
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/internal.h +67 -18
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/oct.cc.inc +29 -151
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.cc.inc +740 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256-nistz.h +207 -0
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/p256.cc.inc +407 -519
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ec/simple.cc.inc +27 -28
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/ecdsa/ecdsa.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/entropy/jitter.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/fips_shared_support.cc +4 -4
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/internal.h +70 -1
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/keccak/keccak.cc.inc +292 -52
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mldsa/mldsa.cc.inc +226 -69
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/mlkem/mlkem.cc.inc +238 -83
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/rsa/rsa_impl.cc.inc +6 -6
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/sha/sha1.cc.inc +2 -2
- data/third_party/boringssl-with-bazel/crypto/fipsmodule/slhdsa/fors.cc.inc +1 -1
- data/third_party/boringssl-with-bazel/crypto/hpke/hpke.cc +327 -272
- data/third_party/boringssl-with-bazel/crypto/hrss/hrss.cc +14 -14
- data/third_party/boringssl-with-bazel/crypto/internal.h +63 -0
- data/third_party/boringssl-with-bazel/crypto/mem_internal.h +38 -3
- data/third_party/boringssl-with-bazel/crypto/obj/obj_dat.h +97 -1
- data/third_party/boringssl-with-bazel/crypto/pem/internal.h +86 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_all.cc +8 -5
- data/third_party/boringssl-with-bazel/crypto/pem/pem_lib.cc +41 -73
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pk8.cc +3 -0
- data/third_party/boringssl-with-bazel/crypto/pem/pem_pkey.cc +10 -4
- 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/pkcs7.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/pkcs7/pkcs7_x509.cc +2 -2
- data/third_party/boringssl-with-bazel/crypto/pkcs8/pkcs8_x509.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/poly1305/internal.h +17 -0
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_arm.cc +1 -13
- data/third_party/boringssl-with-bazel/crypto/poly1305/poly1305_vec.cc +3 -3
- data/third_party/boringssl-with-bazel/crypto/slhdsa/slhdsa.cc +23 -6
- data/third_party/boringssl-with-bazel/crypto/stack/stack.cc +7 -0
- data/third_party/boringssl-with-bazel/crypto/trust_token/internal.h +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/a_verify.cc +14 -7
- data/third_party/boringssl-with-bazel/crypto/x509/internal.h +110 -76
- data/third_party/boringssl-with-bazel/crypto/x509/name_print.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/rsa_pss.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_req.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/t_x509.cc +6 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_crld.cc +11 -53
- data/third_party/boringssl-with-bazel/crypto/x509/v3_ncons.cc +5 -5
- data/third_party/boringssl-with-bazel/crypto/x509/v3_purp.cc +16 -39
- data/third_party/boringssl-with-bazel/crypto/x509/v3_skey.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/v3_utl.cc +12 -16
- data/third_party/boringssl-with-bazel/crypto/x509/x509_cmp.cc +9 -11
- data/third_party/boringssl-with-bazel/crypto/x509/x509_mtc.cc +598 -0
- data/third_party/boringssl-with-bazel/crypto/x509/x509_obj.cc +9 -8
- data/third_party/boringssl-with-bazel/crypto/x509/x509_set.cc +14 -18
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vfy.cc +315 -390
- data/third_party/boringssl-with-bazel/crypto/x509/x509_vpm.cc +1 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x509name.cc +31 -29
- data/third_party/boringssl-with-bazel/crypto/x509/x_all.cc +10 -9
- data/third_party/boringssl-with-bazel/crypto/x509/x_crl.cc +3 -53
- data/third_party/boringssl-with-bazel/crypto/x509/x_name.cc +37 -59
- data/third_party/boringssl-with-bazel/crypto/x509/x_pubkey.cc +29 -47
- data/third_party/boringssl-with-bazel/crypto/x509/x_req.cc +2 -1
- data/third_party/boringssl-with-bazel/crypto/x509/x_x509.cc +53 -53
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_64_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/boringssl_prefix_symbols_internal_x86_win_asm.inc +24 -0
- data/third_party/boringssl-with-bazel/gen/crypto/err_data.cc +509 -497
- data/third_party/boringssl-with-bazel/include/openssl/aead.h +7 -19
- data/third_party/boringssl-with-bazel/include/openssl/asm_base.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/asn1.h +6 -10
- data/third_party/boringssl-with-bazel/include/openssl/base.h +43 -16
- data/third_party/boringssl-with-bazel/include/openssl/bio.h +25 -10
- data/third_party/boringssl-with-bazel/include/openssl/bytestring.h +33 -1
- data/third_party/boringssl-with-bazel/include/openssl/cipher.h +11 -9
- data/third_party/boringssl-with-bazel/include/openssl/configuration.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/curve25519.h +36 -0
- data/third_party/boringssl-with-bazel/include/openssl/digest.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/ec.h +35 -1
- data/third_party/boringssl-with-bazel/include/openssl/ec_key.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/evp.h +120 -3
- data/third_party/boringssl-with-bazel/include/openssl/evp_errors.h +1 -0
- data/third_party/boringssl-with-bazel/include/openssl/hmac.h +2 -2
- data/third_party/boringssl-with-bazel/include/openssl/hpke.h +38 -7
- data/third_party/boringssl-with-bazel/include/openssl/mem.h +5 -5
- data/third_party/boringssl-with-bazel/include/openssl/nid.h +42 -0
- data/third_party/boringssl-with-bazel/include/openssl/pem.h +650 -351
- data/third_party/boringssl-with-bazel/include/openssl/posix_time.h +4 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols.h +130 -4
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_S.h +48 -0
- data/third_party/boringssl-with-bazel/include/openssl/prefix_symbols_internal_c.h +24 -0
- data/third_party/boringssl-with-bazel/include/openssl/rsa.h +1 -1
- data/third_party/boringssl-with-bazel/include/openssl/slhdsa.h +25 -1
- data/third_party/boringssl-with-bazel/include/openssl/ssl.h +256 -87
- data/third_party/boringssl-with-bazel/include/openssl/stack.h +9 -0
- data/third_party/boringssl-with-bazel/include/openssl/types.h +18 -0
- data/third_party/boringssl-with-bazel/include/openssl/x509.h +40 -21
- data/third_party/boringssl-with-bazel/ssl/bio_ssl.cc +3 -5
- data/third_party/boringssl-with-bazel/ssl/d1_both.cc +146 -81
- data/third_party/boringssl-with-bazel/ssl/d1_lib.cc +39 -34
- data/third_party/boringssl-with-bazel/ssl/d1_pkt.cc +6 -6
- data/third_party/boringssl-with-bazel/ssl/d1_srtp.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/dtls_method.cc +4 -4
- data/third_party/boringssl-with-bazel/ssl/dtls_record.cc +15 -14
- data/third_party/boringssl-with-bazel/ssl/encrypted_client_hello.cc +41 -25
- data/third_party/boringssl-with-bazel/ssl/extensions.cc +153 -171
- data/third_party/boringssl-with-bazel/ssl/handoff.cc +79 -64
- data/third_party/boringssl-with-bazel/ssl/handshake.cc +15 -16
- data/third_party/boringssl-with-bazel/ssl/handshake_client.cc +35 -78
- data/third_party/boringssl-with-bazel/ssl/handshake_server.cc +75 -155
- data/third_party/boringssl-with-bazel/ssl/internal.h +419 -308
- data/third_party/boringssl-with-bazel/ssl/s3_both.cc +17 -150
- data/third_party/boringssl-with-bazel/ssl/s3_lib.cc +2 -3
- data/third_party/boringssl-with-bazel/ssl/s3_pkt.cc +10 -9
- data/third_party/boringssl-with-bazel/ssl/ssl_asn1.cc +13 -13
- data/third_party/boringssl-with-bazel/ssl/ssl_buffer.cc +8 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_cert.cc +58 -24
- data/third_party/boringssl-with-bazel/ssl/ssl_cipher.cc +198 -26
- data/third_party/boringssl-with-bazel/ssl/ssl_credential.cc +164 -37
- data/third_party/boringssl-with-bazel/ssl/ssl_file.cc +10 -8
- data/third_party/boringssl-with-bazel/ssl/ssl_key_share.cc +2 -95
- data/third_party/boringssl-with-bazel/ssl/ssl_lib.cc +785 -472
- data/third_party/boringssl-with-bazel/ssl/ssl_privkey.cc +78 -67
- data/third_party/boringssl-with-bazel/ssl/ssl_session.cc +187 -150
- data/third_party/boringssl-with-bazel/ssl/ssl_stat.cc +6 -3
- data/third_party/boringssl-with-bazel/ssl/ssl_transcript.cc +1 -1
- data/third_party/boringssl-with-bazel/ssl/ssl_versions.cc +25 -19
- data/third_party/boringssl-with-bazel/ssl/ssl_x509.cc +148 -114
- data/third_party/boringssl-with-bazel/ssl/t1_enc.cc +28 -19
- data/third_party/boringssl-with-bazel/ssl/tls13_both.cc +24 -22
- data/third_party/boringssl-with-bazel/ssl/tls13_client.cc +30 -30
- data/third_party/boringssl-with-bazel/ssl/tls13_enc.cc +17 -16
- data/third_party/boringssl-with-bazel/ssl/tls13_server.cc +55 -63
- data/third_party/boringssl-with-bazel/ssl/tls_method.cc +12 -12
- data/third_party/boringssl-with-bazel/ssl/tls_record.cc +23 -20
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64.h +38 -0
- data/third_party/boringssl-with-bazel/third_party/fiat/p256_64_msvc.h +2 -0
- 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_point.br.c.inc +0 -54
- 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 -4049
- 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/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/boringssl-with-bazel/crypto/fipsmodule/ec/p256_internal.h +0 -193
- data/third_party/boringssl-with-bazel/crypto/kyber/internal.h +0 -165
- data/third_party/boringssl-with-bazel/crypto/kyber/kyber.cc +0 -870
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 gRPC authors.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
//
|
|
16
|
+
|
|
17
|
+
#include "src/core/client_channel/channel_factory.h"
|
|
18
|
+
|
|
19
|
+
#include <grpc/channel_factory.h>
|
|
20
|
+
#include <grpc/credentials.h>
|
|
21
|
+
#include <grpc/grpc.h>
|
|
22
|
+
#include <grpc/status.h>
|
|
23
|
+
|
|
24
|
+
#include <memory>
|
|
25
|
+
#include <string>
|
|
26
|
+
#include <utility>
|
|
27
|
+
#include <vector>
|
|
28
|
+
|
|
29
|
+
#include "src/core/credentials/call/call_credentials.h"
|
|
30
|
+
#include "src/core/lib/channel/channel_args.h"
|
|
31
|
+
#include "src/core/lib/iomgr/pollset_set.h"
|
|
32
|
+
#include "src/core/lib/surface/channel.h"
|
|
33
|
+
#include "src/core/util/grpc_check.h"
|
|
34
|
+
#include "src/core/util/ref_counted_ptr.h"
|
|
35
|
+
#include "src/core/util/time.h"
|
|
36
|
+
#include "src/core/xds/grpc/xds_transport_grpc.h"
|
|
37
|
+
#include "absl/status/status.h"
|
|
38
|
+
#include "absl/strings/string_view.h"
|
|
39
|
+
|
|
40
|
+
namespace grpc_core {
|
|
41
|
+
|
|
42
|
+
namespace {
|
|
43
|
+
|
|
44
|
+
// SharedChannel implementation for transports that are not created by
|
|
45
|
+
// GrpcXdsTransportFactory. Owns its channel and pollset_set, and is not
|
|
46
|
+
// shared with any other transport, so there is no cache to update.
|
|
47
|
+
class StandaloneSharedChannel final : public GrpcXdsTransport::SharedChannel {
|
|
48
|
+
public:
|
|
49
|
+
explicit StandaloneSharedChannel(RefCountedPtr<Channel> channel)
|
|
50
|
+
: channel_(std::move(channel)),
|
|
51
|
+
interested_parties_(grpc_pollset_set_create()) {}
|
|
52
|
+
|
|
53
|
+
~StandaloneSharedChannel() override {
|
|
54
|
+
grpc_pollset_set_destroy(interested_parties_);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Channel* channel() const override { return channel_.get(); }
|
|
58
|
+
|
|
59
|
+
grpc_pollset_set* interested_parties() const override {
|
|
60
|
+
return interested_parties_;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
void OnTransportOrphaned(absl::string_view /*key*/,
|
|
64
|
+
GrpcXdsTransport* /*transport*/) override {}
|
|
65
|
+
|
|
66
|
+
private:
|
|
67
|
+
RefCountedPtr<Channel> channel_;
|
|
68
|
+
grpc_pollset_set* interested_parties_;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
std::unique_ptr<experimental::ChannelFactory::ChannelHandle>
|
|
72
|
+
MakeStandaloneChannel(absl::string_view target,
|
|
73
|
+
RefCountedPtr<Channel> channel) {
|
|
74
|
+
return std::make_unique<ChannelHandleImpl>(MakeRefCounted<GrpcXdsTransport>(
|
|
75
|
+
std::string(target),
|
|
76
|
+
MakeRefCounted<StandaloneSharedChannel>(std::move(channel)),
|
|
77
|
+
/*call_creds=*/nullptr,
|
|
78
|
+
/*initial_metadata=*/std::vector<std::pair<std::string, std::string>>(),
|
|
79
|
+
Duration::Infinity()));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
} // namespace
|
|
83
|
+
|
|
84
|
+
namespace experimental {
|
|
85
|
+
|
|
86
|
+
std::unique_ptr<ChannelFactory::ChannelHandle>
|
|
87
|
+
ChannelFactory::CreateCoreChannel(absl::string_view target,
|
|
88
|
+
grpc_channel_credentials* creds) {
|
|
89
|
+
RefCountedPtr<Channel> channel(Channel::FromC(grpc_channel_create(
|
|
90
|
+
std::string(target).c_str(), creds, /*args=*/nullptr)));
|
|
91
|
+
return MakeStandaloneChannel(target, std::move(channel));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
std::unique_ptr<ChannelFactory::ChannelHandle>
|
|
95
|
+
ChannelFactory::CreateLameChannel(absl::string_view target,
|
|
96
|
+
absl::Status status) {
|
|
97
|
+
// A lame channel must fail RPCs, so an OK status is a caller bug.
|
|
98
|
+
GRPC_CHECK(!status.ok());
|
|
99
|
+
RefCountedPtr<Channel> channel(Channel::FromC(grpc_lame_client_channel_create(
|
|
100
|
+
std::string(target).c_str(), static_cast<grpc_status_code>(status.code()),
|
|
101
|
+
std::string(status.message()).c_str())));
|
|
102
|
+
return MakeStandaloneChannel(target, std::move(channel));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const grpc_arg_pointer_vtable* ChannelFactory::ChannelArgVtable() {
|
|
106
|
+
return ChannelArgTypeTraits<std::shared_ptr<ChannelFactory>>::VTable();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
} // namespace experimental
|
|
110
|
+
} // namespace grpc_core
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 gRPC authors.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
//
|
|
16
|
+
|
|
17
|
+
#ifndef GRPC_SRC_CORE_CLIENT_CHANNEL_CHANNEL_FACTORY_H
|
|
18
|
+
#define GRPC_SRC_CORE_CLIENT_CHANNEL_CHANNEL_FACTORY_H
|
|
19
|
+
|
|
20
|
+
#include <grpc/channel_factory.h>
|
|
21
|
+
|
|
22
|
+
#include <utility>
|
|
23
|
+
|
|
24
|
+
#include "src/core/util/ref_counted_ptr.h"
|
|
25
|
+
#include "src/core/xds/xds_client/xds_transport.h"
|
|
26
|
+
|
|
27
|
+
namespace grpc_core {
|
|
28
|
+
|
|
29
|
+
// The concrete experimental::ChannelFactory::ChannelHandle returned by the
|
|
30
|
+
// factories. Callers can DownCast to this type to get the XdsTransport.
|
|
31
|
+
class ChannelHandleImpl final
|
|
32
|
+
: public experimental::ChannelFactory::ChannelHandle {
|
|
33
|
+
public:
|
|
34
|
+
explicit ChannelHandleImpl(RefCountedPtr<XdsTransport> transport)
|
|
35
|
+
: transport_(std::move(transport)) {}
|
|
36
|
+
|
|
37
|
+
const RefCountedPtr<XdsTransport>& transport() const { return transport_; }
|
|
38
|
+
|
|
39
|
+
private:
|
|
40
|
+
RefCountedPtr<XdsTransport> transport_;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
} // namespace grpc_core
|
|
44
|
+
|
|
45
|
+
#endif // GRPC_SRC_CORE_CLIENT_CHANNEL_CHANNEL_FACTORY_H
|
|
@@ -72,9 +72,9 @@ RefCountedPtr<Subchannel> GlobalSubchannelPool::FindSubchannel(
|
|
|
72
72
|
const SubchannelKey& key) {
|
|
73
73
|
auto shard_index = ShardIndex(key);
|
|
74
74
|
auto& read_shard = read_shards_[shard_index];
|
|
75
|
-
read_shard.mu.
|
|
75
|
+
read_shard.mu.lock();
|
|
76
76
|
auto map = read_shard.map;
|
|
77
|
-
read_shard.mu.
|
|
77
|
+
read_shard.mu.unlock();
|
|
78
78
|
auto* subchannel = map.Lookup(key);
|
|
79
79
|
if (subchannel == nullptr) return nullptr;
|
|
80
80
|
return (*subchannel)->RefIfNonZero();
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Copyright 2026 gRPC authors.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
#include "src/core/client_channel/lame_channel.h"
|
|
16
|
+
|
|
17
|
+
#include "src/core/call/client_call.h"
|
|
18
|
+
#include "src/core/lib/event_engine/event_engine_context.h"
|
|
19
|
+
#include "src/core/lib/surface/lame_client.h"
|
|
20
|
+
|
|
21
|
+
namespace grpc_core {
|
|
22
|
+
|
|
23
|
+
RefCountedPtr<LameChannel> LameChannel::Create(std::string target,
|
|
24
|
+
ChannelArgs args) {
|
|
25
|
+
absl::Status* status =
|
|
26
|
+
args.GetPointer<absl::Status>(GRPC_ARG_LAME_FILTER_ERROR);
|
|
27
|
+
GRPC_CHECK_NE(status, nullptr) << "Lame status not in ChannelArgs";
|
|
28
|
+
auto event_engine =
|
|
29
|
+
args.GetObjectRef<grpc_event_engine::experimental::EventEngine>();
|
|
30
|
+
GRPC_CHECK_NE(event_engine.get(), nullptr)
|
|
31
|
+
<< "EventEngine not set in ChannelArgs";
|
|
32
|
+
return MakeRefCounted<LameChannel>(
|
|
33
|
+
std::move(target), args, std::move(event_engine), std::move(*status));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void LameChannel::StartCall(UnstartedCallHandler unstarted_handler) {
|
|
37
|
+
auto handler = unstarted_handler.StartCall();
|
|
38
|
+
handler.PushServerTrailingMetadata(
|
|
39
|
+
CancelledServerMetadataFromStatus(status_));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
grpc_call* LameChannel::CreateCall(
|
|
43
|
+
grpc_call* parent_call, uint32_t propagation_mask,
|
|
44
|
+
grpc_completion_queue* cq, grpc_pollset_set* /*pollset_set_alternative*/,
|
|
45
|
+
Slice path, std::optional<Slice> authority, Timestamp deadline,
|
|
46
|
+
bool /*registered_method*/,
|
|
47
|
+
std::optional<absl::FunctionRef<void(Arena*)>> arena_init_function) {
|
|
48
|
+
auto arena = call_arena_allocator()->MakeArena();
|
|
49
|
+
arena->SetContext<grpc_event_engine::experimental::EventEngine>(
|
|
50
|
+
event_engine_.get());
|
|
51
|
+
if (arena_init_function.has_value()) {
|
|
52
|
+
(*arena_init_function)(arena.get());
|
|
53
|
+
}
|
|
54
|
+
return MakeClientCall(parent_call, propagation_mask, cq, std::move(path),
|
|
55
|
+
std::move(authority), false, deadline,
|
|
56
|
+
compression_options(), std::move(arena), Ref());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
} // namespace grpc_core
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Copyright 2026 gRPC authors.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
#ifndef GRPC_SRC_CORE_CLIENT_CHANNEL_LAME_CHANNEL_H
|
|
16
|
+
#define GRPC_SRC_CORE_CLIENT_CHANNEL_LAME_CHANNEL_H
|
|
17
|
+
|
|
18
|
+
#include <memory>
|
|
19
|
+
#include <optional>
|
|
20
|
+
#include <string>
|
|
21
|
+
#include <utility>
|
|
22
|
+
|
|
23
|
+
#include "src/core/lib/surface/channel.h"
|
|
24
|
+
#include "absl/status/status.h"
|
|
25
|
+
#include "absl/status/statusor.h"
|
|
26
|
+
|
|
27
|
+
namespace grpc_core {
|
|
28
|
+
|
|
29
|
+
class LameChannel final : public Channel {
|
|
30
|
+
public:
|
|
31
|
+
static RefCountedPtr<LameChannel> Create(std::string target,
|
|
32
|
+
ChannelArgs args);
|
|
33
|
+
|
|
34
|
+
LameChannel(std::string target, const ChannelArgs& args,
|
|
35
|
+
std::shared_ptr<grpc_event_engine::experimental::EventEngine>
|
|
36
|
+
event_engine,
|
|
37
|
+
absl::Status status)
|
|
38
|
+
: Channel(std::move(target), args),
|
|
39
|
+
event_engine_(std::move(event_engine)),
|
|
40
|
+
status_(std::move(status)) {}
|
|
41
|
+
|
|
42
|
+
void Orphaned() override {}
|
|
43
|
+
void StartCall(UnstartedCallHandler unstarted_handler) override;
|
|
44
|
+
bool IsLame() const override { return true; }
|
|
45
|
+
grpc_call* CreateCall(grpc_call* parent_call, uint32_t propagation_mask,
|
|
46
|
+
grpc_completion_queue* cq,
|
|
47
|
+
grpc_pollset_set* pollset_set_alternative, Slice path,
|
|
48
|
+
std::optional<Slice> authority, Timestamp deadline,
|
|
49
|
+
bool registered_method,
|
|
50
|
+
std::optional<absl::FunctionRef<void(Arena*)>>
|
|
51
|
+
arena_init_function) override;
|
|
52
|
+
grpc_event_engine::experimental::EventEngine* event_engine() const override {
|
|
53
|
+
return event_engine_.get();
|
|
54
|
+
}
|
|
55
|
+
bool SupportsConnectivityWatcher() const override { return false; }
|
|
56
|
+
grpc_connectivity_state CheckConnectivityState(bool) override {
|
|
57
|
+
return GRPC_CHANNEL_TRANSIENT_FAILURE;
|
|
58
|
+
}
|
|
59
|
+
void WatchConnectivityState(grpc_connectivity_state, Timestamp,
|
|
60
|
+
grpc_completion_queue*, void*) override {
|
|
61
|
+
Crash("WatchConnectivityState not supported");
|
|
62
|
+
}
|
|
63
|
+
void AddConnectivityWatcher(
|
|
64
|
+
grpc_connectivity_state,
|
|
65
|
+
OrphanablePtr<AsyncConnectivityStateWatcherInterface>) override {
|
|
66
|
+
Crash("AddConnectivityWatcher not supported");
|
|
67
|
+
}
|
|
68
|
+
void RemoveConnectivityWatcher(
|
|
69
|
+
AsyncConnectivityStateWatcherInterface*) override {
|
|
70
|
+
Crash("RemoveConnectivityWatcher not supported");
|
|
71
|
+
}
|
|
72
|
+
void GetInfo(const grpc_channel_info* channel_info) override {}
|
|
73
|
+
void ResetConnectionBackoff() override {}
|
|
74
|
+
void Ping(grpc_completion_queue*, void*) override {
|
|
75
|
+
Crash("Ping not supported");
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private:
|
|
79
|
+
const std::shared_ptr<grpc_event_engine::experimental::EventEngine>
|
|
80
|
+
event_engine_;
|
|
81
|
+
const absl::Status status_;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
} // namespace grpc_core
|
|
85
|
+
|
|
86
|
+
#endif // GRPC_SRC_CORE_CLIENT_CHANNEL_LAME_CHANNEL_H
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
#include "absl/strings/str_join.h"
|
|
36
36
|
#include "absl/strings/str_split.h"
|
|
37
37
|
#include "absl/strings/string_view.h"
|
|
38
|
+
#include "absl/strings/strip.h"
|
|
38
39
|
#include "absl/time/clock.h"
|
|
39
40
|
#include "absl/time/time.h"
|
|
40
41
|
|
|
@@ -216,7 +217,7 @@ std::map<std::string, std::string> AwsRequestSigner::GetSignedRequestHeaders() {
|
|
|
216
217
|
// 3. CredentialScope
|
|
217
218
|
std::pair<absl::string_view, absl::string_view> host_parts =
|
|
218
219
|
absl::StrSplit(authority, absl::MaxSplits('.', 1));
|
|
219
|
-
std::string service_name(host_parts.first);
|
|
220
|
+
std::string service_name(absl::StripSuffix(host_parts.first, "-fips"));
|
|
220
221
|
std::string credential_scope = absl::StrFormat(
|
|
221
222
|
"%s/%s/%s/aws4_request", request_date_short, region_, service_name);
|
|
222
223
|
string_to_sign_vector.emplace_back(credential_scope);
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
#include "absl/status/statusor.h"
|
|
41
41
|
#include "absl/strings/str_cat.h"
|
|
42
42
|
#include "absl/strings/str_format.h"
|
|
43
|
-
#include "absl/strings/str_split.h"
|
|
44
43
|
#include "absl/strings/string_view.h"
|
|
45
44
|
|
|
46
45
|
namespace grpc_core {
|
|
@@ -80,10 +79,6 @@ UrlExternalAccountCredentials::UrlExternalAccountCredentials(
|
|
|
80
79
|
return;
|
|
81
80
|
}
|
|
82
81
|
url_ = *tmp_url;
|
|
83
|
-
// The url must follow the format of <scheme>://<authority>/<path>
|
|
84
|
-
std::vector<absl::string_view> v =
|
|
85
|
-
absl::StrSplit(it->second.string(), absl::MaxSplits('/', 3));
|
|
86
|
-
url_full_path_ = absl::StrCat("/", v[3]);
|
|
87
82
|
it = options.credential_source.object().find("headers");
|
|
88
83
|
if (it != options.credential_source.object().end()) {
|
|
89
84
|
if (it->second.type() != Json::Type::kObject) {
|
|
@@ -145,18 +140,10 @@ OrphanablePtr<ExternalAccountCredentials::FetchBody>
|
|
|
145
140
|
UrlExternalAccountCredentials::RetrieveSubjectToken(
|
|
146
141
|
Timestamp deadline,
|
|
147
142
|
absl::AnyInvocable<void(absl::StatusOr<std::string>)> on_done) {
|
|
148
|
-
auto url_for_request =
|
|
149
|
-
URI::Create(url_.scheme(), url_.user_info(), url_.host_port(),
|
|
150
|
-
url_full_path_, {} /* query params */, "" /* fragment */);
|
|
151
|
-
if (!url_for_request.ok()) {
|
|
152
|
-
return MakeOrphanable<NoOpFetchBody>(event_engine(), std::move(on_done),
|
|
153
|
-
url_for_request.status());
|
|
154
|
-
}
|
|
155
143
|
return MakeOrphanable<HttpFetchBody>(
|
|
156
144
|
[&](grpc_http_response* response, grpc_closure* on_http_response) {
|
|
157
145
|
grpc_http_request request;
|
|
158
146
|
memset(&request, 0, sizeof(grpc_http_request));
|
|
159
|
-
request.path = gpr_strdup(url_full_path_.c_str());
|
|
160
147
|
grpc_http_header* headers = nullptr;
|
|
161
148
|
request.hdr_count = headers_.size();
|
|
162
149
|
headers = static_cast<grpc_http_header*>(
|
|
@@ -175,10 +162,12 @@ UrlExternalAccountCredentials::RetrieveSubjectToken(
|
|
|
175
162
|
} else {
|
|
176
163
|
http_request_creds = CreateHttpRequestSSLCredentials();
|
|
177
164
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
165
|
+
// Pass url_ itself: it already holds the path and the query parameters
|
|
166
|
+
// split apart, and the request target is built from them with
|
|
167
|
+
// URI::EncodedPathAndQueryParams().
|
|
168
|
+
auto http_request = HttpRequest::Get(
|
|
169
|
+
url_, /*args=*/nullptr, pollent(), &request, deadline,
|
|
170
|
+
on_http_response, response, std::move(http_request_creds));
|
|
182
171
|
http_request->Start();
|
|
183
172
|
grpc_http_request_destroy(&request);
|
|
184
173
|
return http_request;
|
|
@@ -62,7 +62,6 @@ class UrlExternalAccountCredentials final : public ExternalAccountCredentials {
|
|
|
62
62
|
|
|
63
63
|
// Fields of credential source
|
|
64
64
|
URI url_;
|
|
65
|
-
std::string url_full_path_;
|
|
66
65
|
std::map<std::string, std::string> headers_;
|
|
67
66
|
std::string format_type_;
|
|
68
67
|
std::string format_subject_token_field_name_;
|
|
@@ -158,14 +158,15 @@ static void jose_header_destroy(jose_header* h) {
|
|
|
158
158
|
static jose_header* jose_header_from_json(Json json) {
|
|
159
159
|
const char* alg_value;
|
|
160
160
|
Json::Object::const_iterator it;
|
|
161
|
-
jose_header* h = grpc_core::Zalloc<jose_header>();
|
|
162
161
|
if (json.type() != Json::Type::kObject) {
|
|
163
162
|
LOG(ERROR) << "JSON value is not an object";
|
|
164
|
-
|
|
163
|
+
return nullptr;
|
|
165
164
|
}
|
|
165
|
+
jose_header* h = grpc_core::Zalloc<jose_header>();
|
|
166
|
+
h->json.Init(std::move(json));
|
|
166
167
|
// Check alg field.
|
|
167
|
-
it = json
|
|
168
|
-
if (it == json
|
|
168
|
+
it = h->json->object().find("alg");
|
|
169
|
+
if (it == h->json->object().end()) {
|
|
169
170
|
LOG(ERROR) << "Missing alg field.";
|
|
170
171
|
goto error;
|
|
171
172
|
}
|
|
@@ -173,27 +174,25 @@ static jose_header* jose_header_from_json(Json json) {
|
|
|
173
174
|
// Beware of this if we add HMAC support:
|
|
174
175
|
// https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
|
|
175
176
|
//
|
|
176
|
-
alg_value = it->second
|
|
177
|
-
if (
|
|
178
|
-
strncmp(alg_value, "RS", 2) != 0 ||
|
|
177
|
+
alg_value = validate_string_field(it->second, "alg");
|
|
178
|
+
if (alg_value == nullptr || strncmp(alg_value, "RS", 2) != 0 ||
|
|
179
179
|
evp_md_from_alg(alg_value) == nullptr) {
|
|
180
180
|
LOG(ERROR) << "Invalid alg field";
|
|
181
181
|
goto error;
|
|
182
182
|
}
|
|
183
183
|
h->alg = alg_value;
|
|
184
184
|
// Check typ field.
|
|
185
|
-
it = json
|
|
186
|
-
if (it != json
|
|
185
|
+
it = h->json->object().find("typ");
|
|
186
|
+
if (it != h->json->object().end()) {
|
|
187
187
|
h->typ = validate_string_field(it->second, "typ");
|
|
188
188
|
if (h->typ == nullptr) goto error;
|
|
189
189
|
}
|
|
190
190
|
// Check kid field.
|
|
191
|
-
it = json
|
|
192
|
-
if (it != json
|
|
191
|
+
it = h->json->object().find("kid");
|
|
192
|
+
if (it != h->json->object().end()) {
|
|
193
193
|
h->kid = validate_string_field(it->second, "kid");
|
|
194
194
|
if (h->kid == nullptr) goto error;
|
|
195
195
|
}
|
|
196
|
-
h->json.Init(std::move(json));
|
|
197
196
|
return h;
|
|
198
197
|
|
|
199
198
|
error:
|
|
@@ -262,6 +261,13 @@ gpr_timespec grpc_jwt_claims_not_before(const grpc_jwt_claims* claims) {
|
|
|
262
261
|
}
|
|
263
262
|
|
|
264
263
|
grpc_jwt_claims* grpc_jwt_claims_from_json(Json json) {
|
|
264
|
+
// The payload must be a JSON object. A valid but non-object payload (string,
|
|
265
|
+
// number, boolean, or array) would make the object() call below throw
|
|
266
|
+
// std::bad_variant_access and abort the process in the no-exceptions build,
|
|
267
|
+
// so reject it here before allocating claims.
|
|
268
|
+
if (json.type() != Json::Type::kObject) {
|
|
269
|
+
return nullptr;
|
|
270
|
+
}
|
|
265
271
|
grpc_jwt_claims* claims = grpc_core::Zalloc<grpc_jwt_claims>();
|
|
266
272
|
claims->json.Init(std::move(json));
|
|
267
273
|
claims->iat = gpr_inf_past(GPR_CLOCK_REALTIME);
|
|
@@ -443,6 +449,9 @@ static Json json_from_http(const grpc_http_response* response) {
|
|
|
443
449
|
}
|
|
444
450
|
|
|
445
451
|
static const Json* find_property_by_name(const Json& json, const char* name) {
|
|
452
|
+
if (name == nullptr || json.type() != Json::Type::kObject) {
|
|
453
|
+
return nullptr;
|
|
454
|
+
}
|
|
446
455
|
auto it = json.object().find(name);
|
|
447
456
|
if (it == json.object().end()) {
|
|
448
457
|
return nullptr;
|
|
@@ -616,6 +625,7 @@ end:
|
|
|
616
625
|
|
|
617
626
|
static EVP_PKEY* find_verification_key(const Json& json, const char* header_alg,
|
|
618
627
|
const char* header_kid) {
|
|
628
|
+
if (header_alg == nullptr || header_kid == nullptr) return nullptr;
|
|
619
629
|
// Try to parse the json as a JWK set:
|
|
620
630
|
// https://tools.ietf.org/html/rfc7517#section-5.
|
|
621
631
|
const Json* jwt_keys = find_property_by_name(json, "keys");
|
|
@@ -624,7 +634,9 @@ static EVP_PKEY* find_verification_key(const Json& json, const char* header_alg,
|
|
|
624
634
|
// { <kid1>: <x5091>, <kid2>: <x5092>, ... }
|
|
625
635
|
const Json* cur = find_property_by_name(json, header_kid);
|
|
626
636
|
if (cur == nullptr) return nullptr;
|
|
627
|
-
|
|
637
|
+
const char* x509_str = validate_string_field(*cur, header_kid);
|
|
638
|
+
if (x509_str == nullptr) return nullptr;
|
|
639
|
+
return extract_pkey_from_x509(x509_str);
|
|
628
640
|
}
|
|
629
641
|
if (jwt_keys->type() != Json::Type::kArray) {
|
|
630
642
|
LOG(ERROR) << "Unexpected value type of keys property in jwks key set.";
|
|
@@ -255,7 +255,9 @@ class TokenWithEmail final : public grpc_core::TokenFetcherCredentials::Token {
|
|
|
255
255
|
void AddTokenToClientInitialMetadata(
|
|
256
256
|
grpc_core::ClientMetadata& metadata) override {
|
|
257
257
|
Token::AddTokenToClientInitialMetadata(metadata);
|
|
258
|
-
email_fetcher_
|
|
258
|
+
if (email_fetcher_ != nullptr) {
|
|
259
|
+
email_fetcher_->Fetch(token().as_string_view(), metadata);
|
|
260
|
+
}
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
private:
|
|
@@ -266,10 +268,10 @@ class grpc_compute_engine_token_fetcher_credentials
|
|
|
266
268
|
: public grpc_core::HttpTokenFetcherCredentials {
|
|
267
269
|
public:
|
|
268
270
|
grpc_compute_engine_token_fetcher_credentials()
|
|
269
|
-
: email_fetcher_(grpc_core::
|
|
271
|
+
: email_fetcher_(grpc_core::EmailFetcher::Create()) {}
|
|
270
272
|
explicit grpc_compute_engine_token_fetcher_credentials(
|
|
271
273
|
std::vector<grpc_core::URI::QueryParam> query_params)
|
|
272
|
-
: email_fetcher_(grpc_core::
|
|
274
|
+
: email_fetcher_(grpc_core::EmailFetcher::Create()),
|
|
273
275
|
query_params_(std::move(query_params)) {}
|
|
274
276
|
|
|
275
277
|
std::string debug_string() override {
|
|
@@ -285,7 +287,7 @@ class grpc_compute_engine_token_fetcher_credentials
|
|
|
285
287
|
grpc_core::OrphanablePtr<grpc_core::HttpRequest> StartHttpRequest(
|
|
286
288
|
grpc_polling_entity* pollent, grpc_core::Timestamp deadline,
|
|
287
289
|
grpc_http_response* response, grpc_closure* on_complete) override {
|
|
288
|
-
email_fetcher_->StartEmailFetch();
|
|
290
|
+
if (email_fetcher_ != nullptr) email_fetcher_->StartEmailFetch();
|
|
289
291
|
memset(response, 0, sizeof(*response));
|
|
290
292
|
grpc_http_header header = {const_cast<char*>("Metadata-Flavor"),
|
|
291
293
|
const_cast<char*>("Google")};
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
#include <grpc/support/alloc.h>
|
|
20
20
|
#include <grpc/support/string_util.h>
|
|
21
21
|
|
|
22
|
+
#include "src/core/config/experiment_env_var.h"
|
|
22
23
|
#include "src/core/credentials/call/call_credentials.h"
|
|
23
24
|
#include "src/core/credentials/transport/transport_credentials.h"
|
|
24
25
|
#include "src/core/lib/iomgr/polling_entity.h"
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
namespace grpc_core {
|
|
41
42
|
|
|
42
43
|
namespace {
|
|
44
|
+
|
|
43
45
|
constexpr absl::string_view kAllowedLocationsKey = "x-allowed-locations";
|
|
44
46
|
constexpr Duration kRegionalAccessBoundarySoftCacheGraceDuration =
|
|
45
47
|
Duration::Hours(1);
|
|
@@ -47,6 +49,12 @@ constexpr Duration kRegionalAccessBoundaryCacheDuration = Duration::Hours(6);
|
|
|
47
49
|
constexpr absl::string_view kRegionalEndpoint = "rep.googleapis.com";
|
|
48
50
|
constexpr char kComputeEngineDefaultSaEmailPath[] =
|
|
49
51
|
"/computeMetadata/v1/instance/service-accounts/default/email";
|
|
52
|
+
|
|
53
|
+
bool IsRegionalAccessBoundaryFetcherEnabled() {
|
|
54
|
+
return IsExperimentEnvVarEnabled(
|
|
55
|
+
"GRPC_EXPERIMENTAL_REGIONAL_ACCESS_BOUNDARY_LOOKUP");
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
} // namespace
|
|
51
59
|
|
|
52
60
|
RefCountedPtr<RegionalAccessBoundaryFetcher>
|
|
@@ -54,6 +62,7 @@ RegionalAccessBoundaryFetcher::Create(
|
|
|
54
62
|
absl::string_view lookup_url,
|
|
55
63
|
std::shared_ptr<grpc_event_engine::experimental::EventEngine> event_engine,
|
|
56
64
|
std::optional<BackOff::Options> backoff_options) {
|
|
65
|
+
if (!IsRegionalAccessBoundaryFetcherEnabled()) return nullptr;
|
|
57
66
|
auto uri = URI::Parse(lookup_url);
|
|
58
67
|
if (!uri.ok()) {
|
|
59
68
|
LOG(INFO) << "Invalid RegionalAccessBoundary lookup URI \"" << lookup_url
|
|
@@ -313,6 +322,13 @@ class EmailFetcher::EmailRequest final
|
|
|
313
322
|
grpc_closure closure_;
|
|
314
323
|
};
|
|
315
324
|
|
|
325
|
+
RefCountedPtr<EmailFetcher> EmailFetcher::Create(
|
|
326
|
+
std::shared_ptr<grpc_event_engine::experimental::EventEngine>
|
|
327
|
+
event_engine) {
|
|
328
|
+
if (!IsRegionalAccessBoundaryFetcherEnabled()) return nullptr;
|
|
329
|
+
return MakeRefCounted<EmailFetcher>(std::move(event_engine));
|
|
330
|
+
}
|
|
331
|
+
|
|
316
332
|
EmailFetcher::EmailFetcher(
|
|
317
333
|
std::shared_ptr<grpc_event_engine::experimental::EventEngine> event_engine)
|
|
318
334
|
: event_engine_(
|
|
@@ -64,7 +64,7 @@ class RegionalAccessBoundaryFetcher final
|
|
|
64
64
|
void Orphaned() override;
|
|
65
65
|
|
|
66
66
|
private:
|
|
67
|
-
friend class
|
|
67
|
+
friend class RegionalAccessBoundaryFetcherTestBase;
|
|
68
68
|
|
|
69
69
|
struct RegionalAccessBoundary {
|
|
70
70
|
Slice encoded_locations;
|
|
@@ -115,6 +115,10 @@ class RegionalAccessBoundaryFetcher::Request final
|
|
|
115
115
|
|
|
116
116
|
class EmailFetcher final : public DualRefCounted<EmailFetcher> {
|
|
117
117
|
public:
|
|
118
|
+
static RefCountedPtr<EmailFetcher> Create(
|
|
119
|
+
std::shared_ptr<grpc_event_engine::experimental::EventEngine>
|
|
120
|
+
event_engine = nullptr);
|
|
121
|
+
|
|
118
122
|
explicit EmailFetcher(
|
|
119
123
|
std::shared_ptr<grpc_event_engine::experimental::EventEngine>
|
|
120
124
|
event_engine = nullptr);
|
|
@@ -155,4 +159,4 @@ class EmailFetcher final : public DualRefCounted<EmailFetcher> {
|
|
|
155
159
|
|
|
156
160
|
} // namespace grpc_core
|
|
157
161
|
|
|
158
|
-
#endif // GRPC_SRC_CORE_CREDENTIALS_CALL_REGIONAL_ACCESS_BOUNDARY_FETCHER_H
|
|
162
|
+
#endif // GRPC_SRC_CORE_CREDENTIALS_CALL_REGIONAL_ACCESS_BOUNDARY_FETCHER_H
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
#include <grpc/grpc_crl_provider.h>
|
|
22
22
|
#include <grpc/support/port_platform.h>
|
|
23
23
|
|
|
24
|
+
#include <cstring>
|
|
24
25
|
#include <memory>
|
|
25
26
|
|
|
26
27
|
#include "src/core/lib/debug/trace.h"
|
|
@@ -172,3 +173,16 @@ void grpc_tls_credentials_options_set_key_exchange_groups(
|
|
|
172
173
|
options->set_key_exchange_groups(
|
|
173
174
|
std::vector<grpc_tls_key_exchange_group>(groups, groups + num_groups));
|
|
174
175
|
}
|
|
176
|
+
|
|
177
|
+
void grpc_tls_credentials_options_set_exported_keying_material_options(
|
|
178
|
+
grpc_tls_credentials_options* options, const char* label, size_t length) {
|
|
179
|
+
GRPC_CHECK_NE(options, nullptr);
|
|
180
|
+
// The label is the input used to derive the exported keying material, and the
|
|
181
|
+
// length is the size of the derived exported keying material. Both must be
|
|
182
|
+
// valid.
|
|
183
|
+
GRPC_CHECK_NE(label, nullptr);
|
|
184
|
+
GRPC_CHECK_GT(strlen(label), 0u);
|
|
185
|
+
GRPC_CHECK_GT(length, 0u);
|
|
186
|
+
options->set_exported_keying_material_label(label);
|
|
187
|
+
options->set_exported_keying_material_length(length);
|
|
188
|
+
}
|