grpc 1.35.0 → 1.36.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (335) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +60 -57
  3. data/include/grpc/grpc_security.h +16 -11
  4. data/src/core/ext/filters/client_channel/client_channel.cc +32 -26
  5. data/src/core/ext/filters/client_channel/client_channel.h +0 -2
  6. data/src/core/ext/filters/client_channel/config_selector.h +1 -1
  7. data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +2 -2
  8. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +3 -5
  9. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +1 -2
  10. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +1 -2
  11. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +1 -1
  12. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +8 -6
  13. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +289 -170
  14. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +5 -0
  15. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +1 -3
  16. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +231 -109
  17. data/src/core/ext/filters/client_channel/resolver.cc +2 -5
  18. data/src/core/ext/filters/client_channel/resolver.h +1 -12
  19. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +36 -45
  20. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +29 -41
  21. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +16 -14
  22. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +18 -15
  23. data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +362 -0
  24. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +4 -4
  25. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +22 -74
  26. data/src/core/ext/filters/client_channel/server_address.cc +6 -0
  27. data/src/core/ext/filters/client_channel/server_address.h +31 -0
  28. data/src/core/ext/filters/client_channel/subchannel.cc +2 -2
  29. data/src/core/ext/filters/max_age/max_age_filter.cc +35 -32
  30. data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +1 -1
  31. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +47 -22
  32. data/src/core/ext/transport/chttp2/server/chttp2_server.h +11 -2
  33. data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +11 -1
  34. data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +62 -18
  35. data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +0 -1
  36. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +11 -16
  37. data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +42 -59
  38. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +3 -2
  39. data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +15 -0
  40. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +25 -1
  41. data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +75 -0
  42. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +2 -2
  43. data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +9 -9
  44. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +7 -7
  45. data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +28 -13
  46. data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +0 -1
  47. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +11 -5
  48. data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +41 -7
  49. data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +0 -1
  50. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +23 -21
  51. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +122 -77
  52. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +13 -9
  53. data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +37 -5
  54. data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +0 -1
  55. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +11 -9
  56. data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +44 -27
  57. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +42 -16
  58. data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +106 -0
  59. data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +0 -1
  60. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +29 -0
  61. data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +67 -0
  62. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +13 -16
  63. data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +51 -42
  64. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +0 -1
  65. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +16 -13
  66. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +50 -18
  67. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +4 -7
  68. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +0 -17
  69. data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +0 -1
  70. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +30 -23
  71. data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +85 -73
  72. data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.c +0 -3
  73. data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.c +0 -3
  74. data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +0 -1
  75. data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.c +0 -2
  76. data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +0 -1
  77. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +21 -4
  78. data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +29 -0
  79. data/src/core/ext/upb-generated/{udpa/core/v1 → xds/core/v3}/authority.upb.c +5 -5
  80. data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +60 -0
  81. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +52 -0
  82. data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +143 -0
  83. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +42 -0
  84. data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +84 -0
  85. data/src/core/ext/upb-generated/{udpa/core/v1 → xds/core/v3}/resource.upb.c +9 -9
  86. data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +94 -0
  87. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +54 -0
  88. data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +166 -0
  89. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +36 -0
  90. data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +85 -0
  91. data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +168 -171
  92. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +405 -420
  93. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +2 -2
  94. data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +12 -9
  95. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +177 -171
  96. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +10 -0
  97. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +88 -88
  98. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +153 -153
  99. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +4 -7
  100. data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +33 -20
  101. data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +56 -59
  102. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +116 -111
  103. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +129 -121
  104. data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +21 -24
  105. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +17 -13
  106. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +747 -724
  107. data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +5 -0
  108. data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +22 -25
  109. data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +51 -0
  110. data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +35 -0
  111. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +369 -376
  112. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +12 -16
  113. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +112 -108
  114. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +45 -53
  115. data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +177 -180
  116. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +92 -102
  117. data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +5 -0
  118. data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.c +32 -42
  119. data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.c +30 -40
  120. data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +4 -7
  121. data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.c +38 -44
  122. data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +30 -33
  123. data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +14 -11
  124. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +42 -0
  125. data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +35 -0
  126. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +62 -0
  127. data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +40 -0
  128. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +45 -0
  129. data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +40 -0
  130. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +49 -0
  131. data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +35 -0
  132. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +67 -0
  133. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +40 -0
  134. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +50 -0
  135. data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +35 -0
  136. data/src/core/ext/xds/xds_api.cc +738 -567
  137. data/src/core/ext/xds/xds_api.h +46 -84
  138. data/src/core/ext/xds/xds_bootstrap.cc +59 -40
  139. data/src/core/ext/xds/xds_bootstrap.h +12 -4
  140. data/src/core/ext/xds/xds_certificate_provider.cc +180 -74
  141. data/src/core/ext/xds/xds_certificate_provider.h +83 -44
  142. data/src/core/ext/xds/xds_client.cc +13 -11
  143. data/src/core/ext/xds/xds_client.h +3 -0
  144. data/src/core/ext/xds/xds_client_stats.cc +2 -1
  145. data/src/core/ext/xds/xds_server_config_fetcher.cc +147 -11
  146. data/src/core/lib/channel/handshaker.cc +2 -5
  147. data/src/core/lib/channel/handshaker.h +1 -1
  148. data/src/core/lib/gpr/log.cc +6 -1
  149. data/src/core/lib/gprpp/mpscq.cc +2 -2
  150. data/src/core/lib/gprpp/ref_counted.h +1 -1
  151. data/src/core/lib/gprpp/sync.h +129 -40
  152. data/src/core/lib/gprpp/time_util.cc +77 -0
  153. data/src/core/lib/gprpp/time_util.h +42 -0
  154. data/src/core/lib/http/httpcli_security_connector.cc +2 -2
  155. data/src/core/lib/iomgr/ev_apple.cc +10 -7
  156. data/src/core/lib/iomgr/ev_epollex_linux.cc +4 -4
  157. data/src/core/lib/iomgr/iomgr_posix.cc +0 -1
  158. data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +0 -1
  159. data/src/core/lib/iomgr/sockaddr_utils.cc +1 -1
  160. data/src/core/lib/iomgr/socket_utils_common_posix.cc +1 -0
  161. data/src/core/lib/iomgr/tcp_client_posix.cc +1 -1
  162. data/src/core/lib/iomgr/tcp_posix.cc +4 -4
  163. data/src/core/lib/security/authorization/matchers.cc +339 -0
  164. data/src/core/lib/security/authorization/matchers.h +158 -0
  165. data/src/core/lib/security/authorization/mock_cel/activation.h +1 -1
  166. data/src/core/lib/security/authorization/mock_cel/cel_value.h +9 -7
  167. data/src/core/lib/security/credentials/alts/alts_credentials.cc +2 -1
  168. data/src/core/lib/security/credentials/alts/alts_credentials.h +1 -1
  169. data/src/core/lib/security/credentials/credentials.h +2 -1
  170. data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +1 -1
  171. data/src/core/lib/security/credentials/external/external_account_credentials.cc +2 -2
  172. data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +1 -1
  173. data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +1 -1
  174. data/src/core/lib/security/credentials/fake/fake_credentials.cc +1 -1
  175. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +7 -6
  176. data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +2 -2
  177. data/src/core/lib/security/credentials/jwt/json_token.cc +0 -3
  178. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +0 -3
  179. data/src/core/lib/security/credentials/local/local_credentials.cc +2 -1
  180. data/src/core/lib/security/credentials/local/local_credentials.h +1 -1
  181. data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +2 -1
  182. data/src/core/lib/security/credentials/ssl/ssl_credentials.h +1 -1
  183. data/src/core/lib/security/credentials/tls/tls_credentials.cc +2 -1
  184. data/src/core/lib/security/credentials/tls/tls_credentials.h +1 -1
  185. data/src/core/lib/security/credentials/xds/xds_credentials.cc +128 -59
  186. data/src/core/lib/security/credentials/xds/xds_credentials.h +3 -3
  187. data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +5 -5
  188. data/src/core/lib/security/security_connector/ssl_utils.cc +3 -0
  189. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +26 -14
  190. data/src/core/lib/security/transport/security_handshaker.cc +1 -3
  191. data/src/core/lib/slice/slice_intern.cc +1 -1
  192. data/src/core/lib/surface/init.cc +13 -15
  193. data/src/core/lib/surface/server.cc +3 -3
  194. data/src/core/lib/surface/server.h +3 -0
  195. data/src/core/lib/surface/version.cc +2 -2
  196. data/src/core/lib/transport/metadata.cc +6 -2
  197. data/src/core/plugin_registry/grpc_plugin_registry.cc +6 -0
  198. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +17 -20
  199. data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +16 -21
  200. data/src/core/tsi/fake_transport_security.cc +1 -1
  201. data/src/core/tsi/ssl/session_cache/ssl_session.h +0 -3
  202. data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +0 -2
  203. data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +2 -4
  204. data/src/core/tsi/ssl_transport_security.cc +0 -3
  205. data/src/core/tsi/ssl_transport_security.h +0 -3
  206. data/src/ruby/lib/grpc/version.rb +1 -1
  207. data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +7 -0
  208. data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +1 -0
  209. data/third_party/boringssl-with-bazel/err_data.c +725 -723
  210. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bitstr.c +3 -3
  211. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_enum.c +2 -2
  212. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_int.c +5 -5
  213. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_object.c +3 -10
  214. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_octet.c +3 -3
  215. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +4 -2
  216. data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +2 -2
  217. data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +15 -14
  218. data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_locl.h +30 -0
  219. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +28 -79
  220. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +39 -85
  221. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_fre.c +5 -16
  222. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_new.c +10 -61
  223. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_typ.c +0 -2
  224. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_utl.c +2 -2
  225. data/third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c +4 -0
  226. data/third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c +158 -0
  227. data/third_party/boringssl-with-bazel/src/crypto/bn_extra/bn_asn1.c +3 -10
  228. data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +8 -9
  229. data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +60 -45
  230. data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_chacha20poly1305.c +6 -81
  231. data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +87 -0
  232. data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-win.c +41 -0
  233. data/third_party/boringssl-with-bazel/src/crypto/{dh → dh_extra}/dh_asn1.c +0 -0
  234. data/third_party/boringssl-with-bazel/src/crypto/{dh → dh_extra}/params.c +179 -0
  235. data/third_party/boringssl-with-bazel/src/crypto/digest_extra/digest_extra.c +25 -0
  236. data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_asn1.c +2 -17
  237. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +3 -1
  238. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bn.c +13 -20
  239. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div.c +2 -3
  240. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +9 -1
  241. data/third_party/boringssl-with-bazel/src/crypto/{dh → fipsmodule/dh}/check.c +0 -0
  242. data/third_party/boringssl-with-bazel/src/crypto/{dh → fipsmodule/dh}/dh.c +136 -213
  243. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +12 -0
  244. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +9 -1
  245. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +28 -0
  246. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +128 -38
  247. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/urandom.c +0 -7
  248. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +51 -32
  249. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +147 -0
  250. data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +18 -29
  251. data/third_party/boringssl-with-bazel/src/crypto/hpke/internal.h +13 -4
  252. data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305.c +10 -7
  253. data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305_arm.c +13 -11
  254. data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305_vec.c +4 -0
  255. data/third_party/boringssl-with-bazel/src/crypto/rand_extra/passive.c +34 -0
  256. data/third_party/boringssl-with-bazel/src/crypto/rand_extra/rand_extra.c +4 -0
  257. data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +7 -13
  258. data/third_party/boringssl-with-bazel/src/crypto/x509/rsa_pss.c +5 -1
  259. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +1 -1
  260. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +10 -7
  261. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_r2x.c +1 -1
  262. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_set.c +8 -8
  263. data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +1 -1
  264. data/third_party/boringssl-with-bazel/src/crypto/x509/x509cset.c +29 -23
  265. data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +1 -2
  266. data/third_party/boringssl-with-bazel/src/crypto/x509/x_pkey.c +2 -2
  267. data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +39 -6
  268. data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +2 -2
  269. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akey.c +3 -3
  270. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +11 -10
  271. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bitst.c +3 -3
  272. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +25 -25
  273. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +2 -2
  274. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_enum.c +2 -1
  275. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +40 -20
  276. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ia5.c +3 -4
  277. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +25 -36
  278. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +1 -1
  279. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +6 -6
  280. data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +6 -6
  281. data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +3 -3
  282. data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +652 -545
  283. data/third_party/boringssl-with-bazel/src/include/openssl/asn1t.h +0 -167
  284. data/third_party/boringssl-with-bazel/src/include/openssl/base.h +10 -5
  285. data/third_party/boringssl-with-bazel/src/include/openssl/blake2.h +62 -0
  286. data/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h +22 -7
  287. data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +15 -0
  288. data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +56 -26
  289. data/third_party/boringssl-with-bazel/src/include/openssl/digest.h +1 -0
  290. data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +15 -0
  291. data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +12 -2
  292. data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +3 -0
  293. data/third_party/boringssl-with-bazel/src/include/openssl/span.h +2 -1
  294. data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +42 -24
  295. data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +27 -8
  296. data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +287 -98
  297. data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +139 -36
  298. data/third_party/boringssl-with-bazel/src/ssl/handshake.cc +4 -3
  299. data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +11 -20
  300. data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +10 -5
  301. data/third_party/boringssl-with-bazel/src/ssl/internal.h +37 -16
  302. data/third_party/boringssl-with-bazel/src/ssl/s3_lib.cc +0 -1
  303. data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +7 -8
  304. data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +20 -14
  305. data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +7 -8
  306. data/third_party/boringssl-with-bazel/src/ssl/ssl_transcript.cc +2 -2
  307. data/third_party/boringssl-with-bazel/src/ssl/t1_enc.cc +5 -7
  308. data/third_party/boringssl-with-bazel/src/ssl/t1_lib.cc +329 -31
  309. data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +2 -2
  310. data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +48 -15
  311. data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +66 -24
  312. metadata +77 -65
  313. data/src/core/ext/upb-generated/udpa/core/v1/authority.upb.h +0 -60
  314. data/src/core/ext/upb-generated/udpa/core/v1/collection_entry.upb.c +0 -52
  315. data/src/core/ext/upb-generated/udpa/core/v1/collection_entry.upb.h +0 -143
  316. data/src/core/ext/upb-generated/udpa/core/v1/context_params.upb.c +0 -42
  317. data/src/core/ext/upb-generated/udpa/core/v1/context_params.upb.h +0 -84
  318. data/src/core/ext/upb-generated/udpa/core/v1/resource.upb.h +0 -94
  319. data/src/core/ext/upb-generated/udpa/core/v1/resource_locator.upb.c +0 -54
  320. data/src/core/ext/upb-generated/udpa/core/v1/resource_locator.upb.h +0 -173
  321. data/src/core/ext/upb-generated/udpa/core/v1/resource_name.upb.c +0 -36
  322. data/src/core/ext/upb-generated/udpa/core/v1/resource_name.upb.h +0 -92
  323. data/src/core/ext/upbdefs-generated/udpa/core/v1/authority.upbdefs.c +0 -42
  324. data/src/core/ext/upbdefs-generated/udpa/core/v1/authority.upbdefs.h +0 -35
  325. data/src/core/ext/upbdefs-generated/udpa/core/v1/collection_entry.upbdefs.c +0 -62
  326. data/src/core/ext/upbdefs-generated/udpa/core/v1/collection_entry.upbdefs.h +0 -40
  327. data/src/core/ext/upbdefs-generated/udpa/core/v1/context_params.upbdefs.c +0 -45
  328. data/src/core/ext/upbdefs-generated/udpa/core/v1/context_params.upbdefs.h +0 -40
  329. data/src/core/ext/upbdefs-generated/udpa/core/v1/resource.upbdefs.c +0 -49
  330. data/src/core/ext/upbdefs-generated/udpa/core/v1/resource.upbdefs.h +0 -35
  331. data/src/core/ext/upbdefs-generated/udpa/core/v1/resource_locator.upbdefs.c +0 -68
  332. data/src/core/ext/upbdefs-generated/udpa/core/v1/resource_locator.upbdefs.h +0 -40
  333. data/src/core/ext/upbdefs-generated/udpa/core/v1/resource_name.upbdefs.c +0 -51
  334. data/src/core/ext/upbdefs-generated/udpa/core/v1/resource_name.upbdefs.h +0 -35
  335. data/src/core/lib/iomgr/iomgr_posix.h +0 -26
@@ -414,8 +414,8 @@ static enum ssl_hs_wait_t do_read_server_hello(SSL_HANDSHAKE *hs) {
414
414
  // Set up the key schedule and incorporate the PSK into the running secret.
415
415
  if (ssl->s3->session_reused) {
416
416
  if (!tls13_init_key_schedule(
417
- hs, MakeConstSpan(hs->new_session->master_key,
418
- hs->new_session->master_key_length))) {
417
+ hs, MakeConstSpan(hs->new_session->secret,
418
+ hs->new_session->secret_length))) {
419
419
  return ssl_hs_error;
420
420
  }
421
421
  } else if (!tls13_init_key_schedule(hs, MakeConstSpan(kZeroes, hash_len))) {
@@ -303,10 +303,9 @@ bool tls13_derive_resumption_secret(SSL_HANDSHAKE *hs) {
303
303
  OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR);
304
304
  return false;
305
305
  }
306
- hs->new_session->master_key_length = hs->transcript.DigestLen();
306
+ hs->new_session->secret_length = hs->transcript.DigestLen();
307
307
  return derive_secret(
308
- hs,
309
- MakeSpan(hs->new_session->master_key, hs->new_session->master_key_length),
308
+ hs, MakeSpan(hs->new_session->secret, hs->new_session->secret_length),
310
309
  label_to_span(kTLS13LabelResumption));
311
310
  }
312
311
 
@@ -354,8 +353,8 @@ bool tls13_derive_session_psk(SSL_SESSION *session, Span<const uint8_t> nonce) {
354
353
  const EVP_MD *digest = ssl_session_get_digest(session);
355
354
  // The session initially stores the resumption_master_secret, which we
356
355
  // override with the PSK.
357
- auto session_key = MakeSpan(session->master_key, session->master_key_length);
358
- return hkdf_expand_label(session_key, digest, session_key,
356
+ auto session_secret = MakeSpan(session->secret, session->secret_length);
357
+ return hkdf_expand_label(session_secret, digest, session_secret,
359
358
  label_to_span(kTLS13LabelResumptionPSK), nonce);
360
359
  }
361
360
 
@@ -460,11 +459,10 @@ bool tls13_write_psk_binder(SSL_HANDSHAKE *hs, Span<uint8_t> msg) {
460
459
  if (!hash_transcript_and_truncated_client_hello(
461
460
  hs, context, &context_len, digest, msg,
462
461
  1 /* length prefix */ + hash_len) ||
463
- !tls13_psk_binder(verify_data, &verify_data_len,
464
- ssl->session->ssl_version, digest,
465
- MakeConstSpan(ssl->session->master_key,
466
- ssl->session->master_key_length),
467
- MakeConstSpan(context, context_len)) ||
462
+ !tls13_psk_binder(
463
+ verify_data, &verify_data_len, ssl->session->ssl_version, digest,
464
+ MakeConstSpan(ssl->session->secret, ssl->session->secret_length),
465
+ MakeConstSpan(context, context_len)) ||
468
466
  verify_data_len != hash_len) {
469
467
  OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR);
470
468
  return false;
@@ -485,11 +483,10 @@ bool tls13_verify_psk_binder(SSL_HANDSHAKE *hs, SSL_SESSION *session,
485
483
  if (!hash_transcript_and_truncated_client_hello(hs, context, &context_len,
486
484
  hs->transcript.Digest(),
487
485
  msg.raw, CBS_len(binders)) ||
488
- !tls13_psk_binder(
489
- verify_data, &verify_data_len, hs->ssl->version,
490
- hs->transcript.Digest(),
491
- MakeConstSpan(session->master_key, session->master_key_length),
492
- MakeConstSpan(context, context_len)) ||
486
+ !tls13_psk_binder(verify_data, &verify_data_len, hs->ssl->version,
487
+ hs->transcript.Digest(),
488
+ MakeConstSpan(session->secret, session->secret_length),
489
+ MakeConstSpan(context, context_len)) ||
493
490
  // We only consider the first PSK, so compare against the first binder.
494
491
  !CBS_get_u8_length_prefixed(binders, &binder)) {
495
492
  OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR);
@@ -510,4 +507,40 @@ bool tls13_verify_psk_binder(SSL_HANDSHAKE *hs, SSL_SESSION *session,
510
507
  return true;
511
508
  }
512
509
 
510
+ bool tls13_ech_accept_confirmation(
511
+ SSL_HANDSHAKE *hs, bssl::Span<uint8_t> out,
512
+ bssl::Span<const uint8_t> server_hello_ech_conf) {
513
+ // Compute the hash of the transcript concatenated with
514
+ // |server_hello_ech_conf| without modifying |hs->transcript|.
515
+ uint8_t context_hash[EVP_MAX_MD_SIZE];
516
+ unsigned context_hash_len;
517
+ ScopedEVP_MD_CTX ctx;
518
+ if (!hs->transcript.CopyToHashContext(ctx.get(), hs->transcript.Digest()) ||
519
+ !EVP_DigestUpdate(ctx.get(), server_hello_ech_conf.data(),
520
+ server_hello_ech_conf.size()) ||
521
+ !EVP_DigestFinal_ex(ctx.get(), context_hash, &context_hash_len)) {
522
+ return false;
523
+ }
524
+
525
+ // Per draft-ietf-tls-esni-09, accept_confirmation is computed with
526
+ // Derive-Secret, which derives a secret of size Hash.length. That value is
527
+ // then truncated to the first 8 bytes. Note this differs from deriving an
528
+ // 8-byte secret because the target length is included in the derivation.
529
+ uint8_t accept_confirmation_buf[EVP_MAX_MD_SIZE];
530
+ bssl::Span<uint8_t> accept_confirmation =
531
+ MakeSpan(accept_confirmation_buf, hs->transcript.DigestLen());
532
+ if (!hkdf_expand_label(accept_confirmation, hs->transcript.Digest(),
533
+ hs->secret(), label_to_span("ech accept confirmation"),
534
+ MakeConstSpan(context_hash, context_hash_len))) {
535
+ return false;
536
+ }
537
+
538
+ if (out.size() > accept_confirmation.size()) {
539
+ OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR);
540
+ return false;
541
+ }
542
+ OPENSSL_memcpy(out.data(), accept_confirmation.data(), out.size());
543
+ return true;
544
+ }
545
+
513
546
  BSSL_NAMESPACE_END
@@ -477,8 +477,8 @@ static enum ssl_hs_wait_t do_select_session(SSL_HANDSHAKE *hs) {
477
477
  // Set up the key schedule and incorporate the PSK into the running secret.
478
478
  if (ssl->s3->session_reused) {
479
479
  if (!tls13_init_key_schedule(
480
- hs, MakeConstSpan(hs->new_session->master_key,
481
- hs->new_session->master_key_length))) {
480
+ hs, MakeConstSpan(hs->new_session->secret,
481
+ hs->new_session->secret_length))) {
482
482
  return ssl_hs_error;
483
483
  }
484
484
  } else if (!tls13_init_key_schedule(hs, MakeConstSpan(kZeroes, hash_len))) {
@@ -636,20 +636,58 @@ static enum ssl_hs_wait_t do_read_second_client_hello(SSL_HANDSHAKE *hs) {
636
636
  static enum ssl_hs_wait_t do_send_server_hello(SSL_HANDSHAKE *hs) {
637
637
  SSL *const ssl = hs->ssl;
638
638
 
639
+ Span<uint8_t> random(ssl->s3->server_random);
640
+ RAND_bytes(random.data(), random.size());
641
+
642
+ // If the ClientHello has an ech_is_inner extension, we must be the ECH
643
+ // backend server. In response to ech_is_inner, we will overwrite part of the
644
+ // ServerHello.random with the ECH acceptance confirmation.
645
+ if (hs->ech_is_inner_present) {
646
+ // Construct the ServerHelloECHConf message, which is the same as
647
+ // ServerHello, except the last 8 bytes of its random field are zeroed out.
648
+ Span<uint8_t> random_suffix = random.subspan(24);
649
+ OPENSSL_memset(random_suffix.data(), 0, random_suffix.size());
650
+
651
+ ScopedCBB cbb;
652
+ CBB body, extensions, session_id;
653
+ if (!ssl->method->init_message(ssl, cbb.get(), &body,
654
+ SSL3_MT_SERVER_HELLO) ||
655
+ !CBB_add_u16(&body, TLS1_2_VERSION) ||
656
+ !CBB_add_bytes(&body, random.data(), random.size()) ||
657
+ !CBB_add_u8_length_prefixed(&body, &session_id) ||
658
+ !CBB_add_bytes(&session_id, hs->session_id, hs->session_id_len) ||
659
+ !CBB_add_u16(&body, SSL_CIPHER_get_protocol_id(hs->new_cipher)) ||
660
+ !CBB_add_u8(&body, 0) ||
661
+ !CBB_add_u16_length_prefixed(&body, &extensions) ||
662
+ !ssl_ext_pre_shared_key_add_serverhello(hs, &extensions) ||
663
+ !ssl_ext_key_share_add_serverhello(hs, &extensions, /*dry_run=*/true) ||
664
+ !ssl_ext_supported_versions_add_serverhello(hs, &extensions) ||
665
+ !CBB_flush(cbb.get())) {
666
+ return ssl_hs_error;
667
+ }
668
+
669
+ // Note that |cbb| includes the message type and length fields, but not the
670
+ // record layer header.
671
+ if (!tls13_ech_accept_confirmation(
672
+ hs, random_suffix,
673
+ bssl::MakeConstSpan(CBB_data(cbb.get()), CBB_len(cbb.get())))) {
674
+ return ssl_hs_error;
675
+ }
676
+ }
677
+
639
678
  // Send a ServerHello.
640
679
  ScopedCBB cbb;
641
680
  CBB body, extensions, session_id;
642
681
  if (!ssl->method->init_message(ssl, cbb.get(), &body, SSL3_MT_SERVER_HELLO) ||
643
682
  !CBB_add_u16(&body, TLS1_2_VERSION) ||
644
- !RAND_bytes(ssl->s3->server_random, sizeof(ssl->s3->server_random)) ||
645
- !CBB_add_bytes(&body, ssl->s3->server_random, SSL3_RANDOM_SIZE) ||
683
+ !CBB_add_bytes(&body, random.data(), random.size()) ||
646
684
  !CBB_add_u8_length_prefixed(&body, &session_id) ||
647
685
  !CBB_add_bytes(&session_id, hs->session_id, hs->session_id_len) ||
648
686
  !CBB_add_u16(&body, SSL_CIPHER_get_protocol_id(hs->new_cipher)) ||
649
687
  !CBB_add_u8(&body, 0) ||
650
688
  !CBB_add_u16_length_prefixed(&body, &extensions) ||
651
689
  !ssl_ext_pre_shared_key_add_serverhello(hs, &extensions) ||
652
- !ssl_ext_key_share_add_serverhello(hs, &extensions) ||
690
+ !ssl_ext_key_share_add_serverhello(hs, &extensions, /*dry_run=*/false) ||
653
691
  !ssl_ext_supported_versions_add_serverhello(hs, &extensions) ||
654
692
  !ssl_add_message_cbb(ssl, cbb.get())) {
655
693
  return ssl_hs_error;
@@ -844,7 +882,7 @@ static enum ssl_hs_wait_t do_read_second_client_flight(SSL_HANDSHAKE *hs) {
844
882
  hs->client_handshake_secret())) {
845
883
  return ssl_hs_error;
846
884
  }
847
- hs->tls13_state = state13_read_client_certificate;
885
+ hs->tls13_state = state13_process_end_of_early_data;
848
886
  return ssl->s3->early_data_accepted ? ssl_hs_early_return : ssl_hs_ok;
849
887
  }
850
888
 
@@ -855,27 +893,31 @@ static enum ssl_hs_wait_t do_read_second_client_flight(SSL_HANDSHAKE *hs) {
855
893
 
856
894
  static enum ssl_hs_wait_t do_process_end_of_early_data(SSL_HANDSHAKE *hs) {
857
895
  SSL *const ssl = hs->ssl;
858
- // If early data was not accepted, the EndOfEarlyData will be in the discarded
859
- // early data.
860
- if (hs->ssl->s3->early_data_accepted) {
861
- SSLMessage msg;
862
- if (!ssl->method->get_message(ssl, &msg)) {
863
- return ssl_hs_read_message;
864
- }
865
- if (!ssl_check_message_type(ssl, msg, SSL3_MT_END_OF_EARLY_DATA)) {
866
- return ssl_hs_error;
896
+ // In protocols that use EndOfEarlyData, we must consume the extra message and
897
+ // switch to client_handshake_secret after the early return.
898
+ if (ssl->quic_method == nullptr) {
899
+ // If early data was not accepted, the EndOfEarlyData will be in the
900
+ // discarded early data.
901
+ if (hs->ssl->s3->early_data_accepted) {
902
+ SSLMessage msg;
903
+ if (!ssl->method->get_message(ssl, &msg)) {
904
+ return ssl_hs_read_message;
905
+ }
906
+ if (!ssl_check_message_type(ssl, msg, SSL3_MT_END_OF_EARLY_DATA)) {
907
+ return ssl_hs_error;
908
+ }
909
+ if (CBS_len(&msg.body) != 0) {
910
+ ssl_send_alert(ssl, SSL3_AL_FATAL, SSL_AD_DECODE_ERROR);
911
+ OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR);
912
+ return ssl_hs_error;
913
+ }
914
+ ssl->method->next_message(ssl);
867
915
  }
868
- if (CBS_len(&msg.body) != 0) {
869
- ssl_send_alert(ssl, SSL3_AL_FATAL, SSL_AD_DECODE_ERROR);
870
- OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR);
916
+ if (!tls13_set_traffic_key(ssl, ssl_encryption_handshake, evp_aead_open,
917
+ hs->new_session.get(),
918
+ hs->client_handshake_secret())) {
871
919
  return ssl_hs_error;
872
920
  }
873
- ssl->method->next_message(ssl);
874
- }
875
- if (!tls13_set_traffic_key(ssl, ssl_encryption_handshake, evp_aead_open,
876
- hs->new_session.get(),
877
- hs->client_handshake_secret())) {
878
- return ssl_hs_error;
879
921
  }
880
922
  hs->tls13_state = state13_read_client_encrypted_extensions;
881
923
  return ssl_hs_ok;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
4
+ version: 1.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -346,6 +346,7 @@ files:
346
346
  - src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc
347
347
  - src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc
348
348
  - src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h
349
+ - src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc
349
350
  - src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc
350
351
  - src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc
351
352
  - src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h
@@ -516,6 +517,8 @@ files:
516
517
  - src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h
517
518
  - src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c
518
519
  - src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h
520
+ - src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c
521
+ - src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h
519
522
  - src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c
520
523
  - src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h
521
524
  - src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c
@@ -610,22 +613,22 @@ files:
610
613
  - src/core/ext/upb-generated/udpa/annotations/status.upb.h
611
614
  - src/core/ext/upb-generated/udpa/annotations/versioning.upb.c
612
615
  - src/core/ext/upb-generated/udpa/annotations/versioning.upb.h
613
- - src/core/ext/upb-generated/udpa/core/v1/authority.upb.c
614
- - src/core/ext/upb-generated/udpa/core/v1/authority.upb.h
615
- - src/core/ext/upb-generated/udpa/core/v1/collection_entry.upb.c
616
- - src/core/ext/upb-generated/udpa/core/v1/collection_entry.upb.h
617
- - src/core/ext/upb-generated/udpa/core/v1/context_params.upb.c
618
- - src/core/ext/upb-generated/udpa/core/v1/context_params.upb.h
619
- - src/core/ext/upb-generated/udpa/core/v1/resource.upb.c
620
- - src/core/ext/upb-generated/udpa/core/v1/resource.upb.h
621
- - src/core/ext/upb-generated/udpa/core/v1/resource_locator.upb.c
622
- - src/core/ext/upb-generated/udpa/core/v1/resource_locator.upb.h
623
- - src/core/ext/upb-generated/udpa/core/v1/resource_name.upb.c
624
- - src/core/ext/upb-generated/udpa/core/v1/resource_name.upb.h
625
616
  - src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.c
626
617
  - src/core/ext/upb-generated/udpa/data/orca/v1/orca_load_report.upb.h
627
618
  - src/core/ext/upb-generated/validate/validate.upb.c
628
619
  - src/core/ext/upb-generated/validate/validate.upb.h
620
+ - src/core/ext/upb-generated/xds/core/v3/authority.upb.c
621
+ - src/core/ext/upb-generated/xds/core/v3/authority.upb.h
622
+ - src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c
623
+ - src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h
624
+ - src/core/ext/upb-generated/xds/core/v3/context_params.upb.c
625
+ - src/core/ext/upb-generated/xds/core/v3/context_params.upb.h
626
+ - src/core/ext/upb-generated/xds/core/v3/resource.upb.c
627
+ - src/core/ext/upb-generated/xds/core/v3/resource.upb.h
628
+ - src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c
629
+ - src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h
630
+ - src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c
631
+ - src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h
629
632
  - src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c
630
633
  - src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h
631
634
  - src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c
@@ -688,6 +691,8 @@ files:
688
691
  - src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h
689
692
  - src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c
690
693
  - src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h
694
+ - src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c
695
+ - src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h
691
696
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c
692
697
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h
693
698
  - src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c
@@ -768,20 +773,20 @@ files:
768
773
  - src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h
769
774
  - src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c
770
775
  - src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h
771
- - src/core/ext/upbdefs-generated/udpa/core/v1/authority.upbdefs.c
772
- - src/core/ext/upbdefs-generated/udpa/core/v1/authority.upbdefs.h
773
- - src/core/ext/upbdefs-generated/udpa/core/v1/collection_entry.upbdefs.c
774
- - src/core/ext/upbdefs-generated/udpa/core/v1/collection_entry.upbdefs.h
775
- - src/core/ext/upbdefs-generated/udpa/core/v1/context_params.upbdefs.c
776
- - src/core/ext/upbdefs-generated/udpa/core/v1/context_params.upbdefs.h
777
- - src/core/ext/upbdefs-generated/udpa/core/v1/resource.upbdefs.c
778
- - src/core/ext/upbdefs-generated/udpa/core/v1/resource.upbdefs.h
779
- - src/core/ext/upbdefs-generated/udpa/core/v1/resource_locator.upbdefs.c
780
- - src/core/ext/upbdefs-generated/udpa/core/v1/resource_locator.upbdefs.h
781
- - src/core/ext/upbdefs-generated/udpa/core/v1/resource_name.upbdefs.c
782
- - src/core/ext/upbdefs-generated/udpa/core/v1/resource_name.upbdefs.h
783
776
  - src/core/ext/upbdefs-generated/validate/validate.upbdefs.c
784
777
  - src/core/ext/upbdefs-generated/validate/validate.upbdefs.h
778
+ - src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c
779
+ - src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h
780
+ - src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c
781
+ - src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h
782
+ - src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c
783
+ - src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h
784
+ - src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c
785
+ - src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h
786
+ - src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c
787
+ - src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h
788
+ - src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c
789
+ - src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h
785
790
  - src/core/ext/xds/certificate_provider_factory.h
786
791
  - src/core/ext/xds/certificate_provider_registry.cc
787
792
  - src/core/ext/xds/certificate_provider_registry.h
@@ -924,6 +929,8 @@ files:
924
929
  - src/core/lib/gprpp/thd.h
925
930
  - src/core/lib/gprpp/thd_posix.cc
926
931
  - src/core/lib/gprpp/thd_windows.cc
932
+ - src/core/lib/gprpp/time_util.cc
933
+ - src/core/lib/gprpp/time_util.h
927
934
  - src/core/lib/http/format_request.cc
928
935
  - src/core/lib/http/format_request.h
929
936
  - src/core/lib/http/httpcli.cc
@@ -995,7 +1002,6 @@ files:
995
1002
  - src/core/lib/iomgr/iomgr_internal.cc
996
1003
  - src/core/lib/iomgr/iomgr_internal.h
997
1004
  - src/core/lib/iomgr/iomgr_posix.cc
998
- - src/core/lib/iomgr/iomgr_posix.h
999
1005
  - src/core/lib/iomgr/iomgr_posix_cfstream.cc
1000
1006
  - src/core/lib/iomgr/iomgr_uv.cc
1001
1007
  - src/core/lib/iomgr/iomgr_windows.cc
@@ -1117,6 +1123,8 @@ files:
1117
1123
  - src/core/lib/security/authorization/authorization_engine.h
1118
1124
  - src/core/lib/security/authorization/evaluate_args.cc
1119
1125
  - src/core/lib/security/authorization/evaluate_args.h
1126
+ - src/core/lib/security/authorization/matchers.cc
1127
+ - src/core/lib/security/authorization/matchers.h
1120
1128
  - src/core/lib/security/authorization/mock_cel/activation.h
1121
1129
  - src/core/lib/security/authorization/mock_cel/cel_expr_builder_factory.h
1122
1130
  - src/core/lib/security/authorization/mock_cel/cel_expression.h
@@ -1747,6 +1755,7 @@ files:
1747
1755
  - third_party/boringssl-with-bazel/src/crypto/bio/printf.c
1748
1756
  - third_party/boringssl-with-bazel/src/crypto/bio/socket.c
1749
1757
  - third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c
1758
+ - third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c
1750
1759
  - third_party/boringssl-with-bazel/src/crypto/bn_extra/bn_asn1.c
1751
1760
  - third_party/boringssl-with-bazel/src/crypto/bn_extra/convert.c
1752
1761
  - third_party/boringssl-with-bazel/src/crypto/buf/buf.c
@@ -1776,6 +1785,7 @@ files:
1776
1785
  - third_party/boringssl-with-bazel/src/crypto/conf/internal.h
1777
1786
  - third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-fuchsia.c
1778
1787
  - third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-linux.c
1788
+ - third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-win.c
1779
1789
  - third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.c
1780
1790
  - third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.h
1781
1791
  - third_party/boringssl-with-bazel/src/crypto/cpu-arm.c
@@ -1786,10 +1796,8 @@ files:
1786
1796
  - third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519_tables.h
1787
1797
  - third_party/boringssl-with-bazel/src/crypto/curve25519/internal.h
1788
1798
  - third_party/boringssl-with-bazel/src/crypto/curve25519/spake25519.c
1789
- - third_party/boringssl-with-bazel/src/crypto/dh/check.c
1790
- - third_party/boringssl-with-bazel/src/crypto/dh/dh.c
1791
- - third_party/boringssl-with-bazel/src/crypto/dh/dh_asn1.c
1792
- - third_party/boringssl-with-bazel/src/crypto/dh/params.c
1799
+ - third_party/boringssl-with-bazel/src/crypto/dh_extra/dh_asn1.c
1800
+ - third_party/boringssl-with-bazel/src/crypto/dh_extra/params.c
1793
1801
  - third_party/boringssl-with-bazel/src/crypto/digest_extra/digest_extra.c
1794
1802
  - third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c
1795
1803
  - third_party/boringssl-with-bazel/src/crypto/dsa/dsa_asn1.c
@@ -1859,6 +1867,8 @@ files:
1859
1867
  - third_party/boringssl-with-bazel/src/crypto/fipsmodule/delocate.h
1860
1868
  - third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/des.c
1861
1869
  - third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h
1870
+ - third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/check.c
1871
+ - third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c
1862
1872
  - third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c
1863
1873
  - third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digests.c
1864
1874
  - third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/internal.h
@@ -1951,6 +1961,7 @@ files:
1951
1961
  - third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c
1952
1962
  - third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c
1953
1963
  - third_party/boringssl-with-bazel/src/crypto/rand_extra/fuchsia.c
1964
+ - third_party/boringssl-with-bazel/src/crypto/rand_extra/passive.c
1954
1965
  - third_party/boringssl-with-bazel/src/crypto/rand_extra/rand_extra.c
1955
1966
  - third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c
1956
1967
  - third_party/boringssl-with-bazel/src/crypto/rc4/rc4.c
@@ -2063,6 +2074,7 @@ files:
2063
2074
  - third_party/boringssl-with-bazel/src/include/openssl/base.h
2064
2075
  - third_party/boringssl-with-bazel/src/include/openssl/base64.h
2065
2076
  - third_party/boringssl-with-bazel/src/include/openssl/bio.h
2077
+ - third_party/boringssl-with-bazel/src/include/openssl/blake2.h
2066
2078
  - third_party/boringssl-with-bazel/src/include/openssl/blowfish.h
2067
2079
  - third_party/boringssl-with-bazel/src/include/openssl/bn.h
2068
2080
  - third_party/boringssl-with-bazel/src/include/openssl/buf.h
@@ -2366,58 +2378,58 @@ required_ruby_version: !ruby/object:Gem::Requirement
2366
2378
  requirements:
2367
2379
  - - ">="
2368
2380
  - !ruby/object:Gem::Version
2369
- version: 2.3.0
2381
+ version: 2.4.0
2370
2382
  required_rubygems_version: !ruby/object:Gem::Requirement
2371
2383
  requirements:
2372
2384
  - - ">="
2373
2385
  - !ruby/object:Gem::Version
2374
2386
  version: '0'
2375
2387
  requirements: []
2376
- rubygems_version: 3.2.6
2388
+ rubygems_version: 3.2.11
2377
2389
  signing_key:
2378
2390
  specification_version: 4
2379
2391
  summary: GRPC system in Ruby
2380
2392
  test_files:
2381
- - src/ruby/spec/generic/server_interceptors_spec.rb
2382
- - src/ruby/spec/generic/client_interceptors_spec.rb
2383
- - src/ruby/spec/generic/service_spec.rb
2384
- - src/ruby/spec/generic/client_stub_spec.rb
2385
- - src/ruby/spec/generic/interceptor_registry_spec.rb
2386
- - src/ruby/spec/generic/rpc_server_spec.rb
2387
- - src/ruby/spec/generic/rpc_server_pool_spec.rb
2388
- - src/ruby/spec/generic/rpc_desc_spec.rb
2389
- - src/ruby/spec/generic/active_call_spec.rb
2390
- - src/ruby/spec/channel_credentials_spec.rb
2391
- - src/ruby/spec/channel_connection_spec.rb
2393
+ - src/ruby/spec/client_server_spec.rb
2394
+ - src/ruby/spec/debug_message_spec.rb
2392
2395
  - src/ruby/spec/user_agent_spec.rb
2393
- - src/ruby/spec/errors_spec.rb
2394
- - src/ruby/spec/google_rpc_status_utils_spec.rb
2395
- - src/ruby/spec/client_auth_spec.rb
2396
- - src/ruby/spec/server_credentials_spec.rb
2397
2396
  - src/ruby/spec/support/helpers.rb
2398
2397
  - src/ruby/spec/support/services.rb
2398
+ - src/ruby/spec/client_auth_spec.rb
2399
+ - src/ruby/spec/channel_connection_spec.rb
2400
+ - src/ruby/spec/errors_spec.rb
2399
2401
  - src/ruby/spec/spec_helper.rb
2402
+ - src/ruby/spec/error_sanity_spec.rb
2403
+ - src/ruby/spec/server_credentials_spec.rb
2404
+ - src/ruby/spec/testdata/client.pem
2405
+ - src/ruby/spec/testdata/ca.pem
2406
+ - src/ruby/spec/testdata/server1.key
2407
+ - src/ruby/spec/testdata/client.key
2408
+ - src/ruby/spec/testdata/README
2409
+ - src/ruby/spec/testdata/server1.pem
2410
+ - src/ruby/spec/channel_credentials_spec.rb
2411
+ - src/ruby/spec/google_rpc_status_utils_spec.rb
2412
+ - src/ruby/spec/time_consts_spec.rb
2413
+ - src/ruby/spec/server_spec.rb
2414
+ - src/ruby/spec/call_spec.rb
2415
+ - src/ruby/spec/compression_options_spec.rb
2416
+ - src/ruby/spec/channel_spec.rb
2400
2417
  - src/ruby/spec/pb/duplicate/codegen_spec.rb
2401
2418
  - src/ruby/spec/pb/health/checker_spec.rb
2402
2419
  - src/ruby/spec/pb/codegen/package_option_spec.rb
2403
2420
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
2404
- - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
2405
2421
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
2406
- - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
2407
- - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
2408
2422
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
2409
- - src/ruby/spec/testdata/README
2410
- - src/ruby/spec/testdata/server1.pem
2411
- - src/ruby/spec/testdata/server1.key
2412
- - src/ruby/spec/testdata/client.key
2413
- - src/ruby/spec/testdata/ca.pem
2414
- - src/ruby/spec/testdata/client.pem
2415
- - src/ruby/spec/compression_options_spec.rb
2416
- - src/ruby/spec/server_spec.rb
2423
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
2424
+ - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
2425
+ - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
2417
2426
  - src/ruby/spec/call_credentials_spec.rb
2418
- - src/ruby/spec/debug_message_spec.rb
2419
- - src/ruby/spec/error_sanity_spec.rb
2420
- - src/ruby/spec/client_server_spec.rb
2421
- - src/ruby/spec/time_consts_spec.rb
2422
- - src/ruby/spec/channel_spec.rb
2423
- - src/ruby/spec/call_spec.rb
2427
+ - src/ruby/spec/generic/server_interceptors_spec.rb
2428
+ - src/ruby/spec/generic/rpc_server_spec.rb
2429
+ - src/ruby/spec/generic/interceptor_registry_spec.rb
2430
+ - src/ruby/spec/generic/rpc_desc_spec.rb
2431
+ - src/ruby/spec/generic/rpc_server_pool_spec.rb
2432
+ - src/ruby/spec/generic/client_stub_spec.rb
2433
+ - src/ruby/spec/generic/client_interceptors_spec.rb
2434
+ - src/ruby/spec/generic/service_spec.rb
2435
+ - src/ruby/spec/generic/active_call_spec.rb