grpc 1.43.1 → 1.44.0.pre2

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 (382) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +84 -64
  3. data/include/grpc/grpc_security.h +10 -0
  4. data/include/grpc/impl/codegen/compression_types.h +0 -2
  5. data/include/grpc/impl/codegen/grpc_types.h +6 -0
  6. data/src/core/ext/filters/client_channel/backend_metric.h +1 -1
  7. data/src/core/ext/filters/client_channel/client_channel.cc +62 -68
  8. data/src/core/ext/filters/client_channel/client_channel.h +8 -8
  9. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +1 -1
  10. data/src/core/ext/filters/client_channel/config_selector.h +4 -4
  11. data/src/core/ext/filters/client_channel/dynamic_filters.h +1 -1
  12. data/src/core/ext/filters/client_channel/health/health_check_client.cc +16 -14
  13. data/src/core/ext/filters/client_channel/health/health_check_client.h +3 -3
  14. data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +1 -1
  15. data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +4 -3
  16. data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +6 -5
  17. data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +3 -7
  18. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +31 -32
  19. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -7
  20. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +1 -1
  21. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +1 -1
  22. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +1 -1
  23. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +43 -29
  24. data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +6 -2
  25. data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +120 -68
  26. data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +60 -48
  27. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +62 -61
  28. data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +16 -11
  29. data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +11 -5
  30. data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +19 -15
  31. data/src/core/ext/filters/client_channel/lb_policy/xds/xds.h +1 -1
  32. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +14 -12
  33. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +3 -2
  34. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +50 -105
  35. data/src/core/ext/filters/client_channel/lb_policy.cc +15 -14
  36. data/src/core/ext/filters/client_channel/lb_policy.h +19 -3
  37. data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +3 -3
  38. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +207 -81
  39. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +22 -12
  40. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +19 -15
  41. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +23 -38
  42. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +118 -207
  43. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +25 -32
  44. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +1 -1
  45. data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +82 -73
  46. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +10 -10
  47. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +2 -1
  48. data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +2 -5
  49. data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +5 -5
  50. data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +157 -67
  51. data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +1 -1
  52. data/src/core/ext/filters/client_channel/resolver_result_parsing.h +2 -2
  53. data/src/core/ext/filters/client_channel/retry_filter.cc +37 -64
  54. data/src/core/ext/filters/client_channel/retry_service_config.cc +1 -1
  55. data/src/core/ext/filters/client_channel/retry_service_config.h +1 -1
  56. data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +1 -1
  57. data/src/core/ext/filters/client_channel/subchannel.cc +12 -16
  58. data/src/core/ext/filters/client_channel/subchannel.h +2 -3
  59. data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +37 -48
  60. data/src/core/ext/filters/fault_injection/service_config_parser.cc +6 -8
  61. data/src/core/ext/filters/fault_injection/service_config_parser.h +1 -1
  62. data/src/core/ext/filters/http/client/http_client_filter.cc +51 -122
  63. data/src/core/ext/filters/http/client_authority_filter.cc +8 -24
  64. data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +42 -140
  65. data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +5 -25
  66. data/src/core/ext/filters/http/server/http_server_filter.cc +50 -135
  67. data/src/core/ext/filters/message_size/message_size_filter.cc +1 -1
  68. data/src/core/ext/filters/message_size/message_size_filter.h +1 -1
  69. data/src/core/ext/filters/rbac/rbac_filter.cc +157 -0
  70. data/src/core/ext/filters/rbac/rbac_filter.h +74 -0
  71. data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +605 -0
  72. data/src/core/ext/filters/rbac/rbac_service_config_parser.h +70 -0
  73. data/src/core/ext/filters/server_config_selector/server_config_selector.h +3 -2
  74. data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +11 -6
  75. data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +1 -1
  76. data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +1 -1
  77. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +89 -29
  78. data/src/core/ext/transport/chttp2/transport/chttp2_plugin.cc +0 -1
  79. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +45 -186
  80. data/src/core/ext/transport/chttp2/transport/frame_data.cc +0 -1
  81. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +341 -279
  82. data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +69 -159
  83. data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +1 -1
  84. data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +2 -0
  85. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +19 -32
  86. data/src/core/ext/transport/chttp2/transport/hpack_parser.h +0 -1
  87. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +94 -1
  88. data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +2 -24
  89. data/src/core/ext/transport/chttp2/transport/internal.h +0 -33
  90. data/src/core/ext/transport/chttp2/transport/parsing.cc +0 -6
  91. data/src/core/ext/transport/chttp2/transport/writing.cc +47 -116
  92. data/src/core/ext/transport/inproc/inproc_plugin.cc +0 -4
  93. data/src/core/ext/transport/inproc/inproc_transport.cc +11 -63
  94. data/src/core/ext/transport/inproc/inproc_transport.h +0 -3
  95. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +61 -0
  96. data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +146 -0
  97. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +188 -0
  98. data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +70 -0
  99. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +56 -0
  100. data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
  101. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +154 -0
  102. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
  103. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.c +58 -0
  104. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.h +55 -0
  105. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.c +44 -0
  106. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.h +40 -0
  107. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +153 -0
  108. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
  109. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.c +75 -0
  110. data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.h +55 -0
  111. data/src/core/ext/xds/upb_utils.h +65 -0
  112. data/src/core/ext/xds/xds_api.cc +81 -3458
  113. data/src/core/ext/xds/xds_api.h +56 -611
  114. data/src/core/ext/xds/xds_bootstrap.cc +189 -125
  115. data/src/core/ext/xds/xds_bootstrap.h +20 -15
  116. data/src/core/ext/xds/xds_certificate_provider.h +1 -0
  117. data/src/core/ext/xds/xds_channel_creds.cc +108 -0
  118. data/src/core/ext/xds/xds_channel_creds.h +50 -0
  119. data/src/core/ext/xds/xds_client.cc +584 -994
  120. data/src/core/ext/xds/xds_client.h +78 -135
  121. data/src/core/ext/xds/xds_cluster.cc +451 -0
  122. data/src/core/ext/xds/xds_cluster.h +111 -0
  123. data/src/core/ext/xds/xds_common_types.cc +388 -0
  124. data/src/core/ext/xds/xds_common_types.h +110 -0
  125. data/src/core/ext/xds/xds_endpoint.cc +364 -0
  126. data/src/core/ext/xds/xds_endpoint.h +135 -0
  127. data/src/core/ext/xds/xds_http_filters.cc +5 -0
  128. data/src/core/ext/xds/xds_http_rbac_filter.cc +563 -0
  129. data/src/core/ext/xds/xds_http_rbac_filter.h +54 -0
  130. data/src/core/ext/xds/xds_listener.cc +1036 -0
  131. data/src/core/ext/xds/xds_listener.h +220 -0
  132. data/src/core/ext/{transport/chttp2/transport/hpack_utils.h → xds/xds_resource_type.cc} +12 -9
  133. data/src/core/ext/xds/xds_resource_type.h +98 -0
  134. data/src/core/ext/xds/xds_resource_type_impl.h +87 -0
  135. data/src/core/ext/xds/xds_route_config.cc +993 -0
  136. data/src/core/ext/xds/xds_route_config.h +215 -0
  137. data/src/core/ext/xds/xds_routing.cc +11 -8
  138. data/src/core/ext/xds/xds_routing.h +8 -5
  139. data/src/core/ext/xds/xds_server_config_fetcher.cc +159 -99
  140. data/src/core/lib/address_utils/parse_address.cc +20 -0
  141. data/src/core/lib/address_utils/parse_address.h +5 -0
  142. data/src/core/lib/address_utils/sockaddr_utils.cc +33 -36
  143. data/src/core/lib/address_utils/sockaddr_utils.h +1 -16
  144. data/src/core/lib/backoff/backoff.cc +4 -30
  145. data/src/core/lib/backoff/backoff.h +3 -3
  146. data/src/core/lib/channel/channel_args.cc +0 -1
  147. data/src/core/lib/channel/channel_stack.cc +8 -0
  148. data/src/core/lib/channel/channel_stack.h +1 -1
  149. data/src/core/lib/channel/channel_stack_builder.cc +5 -9
  150. data/src/core/lib/channel/channel_stack_builder.h +4 -7
  151. data/src/core/lib/channel/channelz.cc +1 -0
  152. data/src/core/lib/compression/compression.cc +19 -111
  153. data/src/core/lib/compression/compression_internal.cc +142 -202
  154. data/src/core/lib/compression/compression_internal.h +64 -69
  155. data/src/core/lib/compression/message_compress.cc +11 -11
  156. data/src/core/lib/compression/message_compress.h +2 -2
  157. data/src/core/lib/gpr/useful.h +4 -0
  158. data/src/core/lib/gprpp/bitset.h +7 -0
  159. data/src/core/lib/gprpp/chunked_vector.h +45 -3
  160. data/src/core/lib/gprpp/status_helper.cc +20 -28
  161. data/src/core/lib/gprpp/status_helper.h +6 -19
  162. data/src/core/lib/gprpp/table.h +11 -0
  163. data/src/core/lib/http/httpcli.cc +37 -46
  164. data/src/core/lib/http/httpcli.h +3 -15
  165. data/src/core/lib/iomgr/call_combiner.cc +15 -4
  166. data/src/core/lib/iomgr/closure.h +29 -9
  167. data/src/core/lib/iomgr/combiner.cc +25 -3
  168. data/src/core/lib/iomgr/error.cc +2 -0
  169. data/src/core/lib/iomgr/error.h +3 -0
  170. data/src/core/lib/iomgr/event_engine/iomgr.cc +3 -2
  171. data/src/core/lib/iomgr/event_engine/resolved_address_internal.cc +6 -0
  172. data/src/core/lib/iomgr/event_engine/resolved_address_internal.h +2 -0
  173. data/src/core/lib/iomgr/event_engine/resolver.cc +66 -48
  174. data/src/core/lib/iomgr/event_engine/resolver.h +56 -0
  175. data/src/core/lib/iomgr/exec_ctx.cc +22 -9
  176. data/src/core/lib/iomgr/executor.cc +10 -1
  177. data/src/core/lib/iomgr/fork_posix.cc +3 -2
  178. data/src/core/lib/iomgr/iomgr_custom.cc +4 -1
  179. data/src/core/lib/iomgr/iomgr_posix.cc +2 -2
  180. data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +2 -2
  181. data/src/core/lib/iomgr/iomgr_windows.cc +2 -2
  182. data/src/core/lib/iomgr/port.h +2 -2
  183. data/src/core/lib/iomgr/resolve_address.cc +5 -24
  184. data/src/core/lib/iomgr/resolve_address.h +47 -44
  185. data/src/core/lib/iomgr/resolve_address_custom.cc +131 -109
  186. data/src/core/lib/iomgr/resolve_address_custom.h +101 -19
  187. data/src/core/lib/iomgr/resolve_address_impl.h +59 -0
  188. data/src/core/lib/iomgr/resolve_address_posix.cc +82 -66
  189. data/src/core/lib/iomgr/resolve_address_posix.h +47 -0
  190. data/src/core/lib/iomgr/resolve_address_windows.cc +93 -74
  191. data/src/core/lib/iomgr/resolve_address_windows.h +47 -0
  192. data/src/core/lib/iomgr/resolved_address.h +39 -0
  193. data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +1 -0
  194. data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +1 -0
  195. data/src/core/lib/iomgr/unix_sockets_posix.cc +22 -34
  196. data/src/core/lib/iomgr/unix_sockets_posix.h +4 -7
  197. data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +6 -15
  198. data/src/core/lib/matchers/matchers.cc +1 -1
  199. data/src/core/lib/promise/activity.h +49 -20
  200. data/src/core/lib/promise/detail/status.h +5 -0
  201. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver.cc +17 -25
  202. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver.h +43 -44
  203. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_factory.h +10 -5
  204. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_registry.cc +3 -2
  205. data/src/core/{ext/filters/client_channel → lib/resolver}/resolver_registry.h +4 -5
  206. data/src/core/{ext/filters/client_channel → lib/resolver}/server_address.cc +1 -1
  207. data/src/core/{ext/filters/client_channel → lib/resolver}/server_address.h +4 -4
  208. data/src/core/lib/resource_quota/api.h +0 -1
  209. data/src/core/lib/{gprpp → resource_quota}/arena.cc +16 -13
  210. data/src/core/lib/{gprpp → resource_quota}/arena.h +24 -13
  211. data/src/core/lib/security/authorization/evaluate_args.cc +30 -15
  212. data/src/core/lib/security/authorization/evaluate_args.h +1 -0
  213. data/src/core/lib/security/authorization/grpc_authorization_engine.cc +60 -0
  214. data/src/core/lib/security/authorization/grpc_authorization_engine.h +62 -0
  215. data/src/core/lib/security/authorization/matchers.cc +227 -0
  216. data/src/core/lib/security/authorization/matchers.h +211 -0
  217. data/src/core/lib/security/authorization/rbac_policy.cc +442 -0
  218. data/src/core/lib/security/authorization/rbac_policy.h +170 -0
  219. data/src/core/lib/security/context/security_context.cc +4 -2
  220. data/src/core/lib/security/context/security_context.h +1 -1
  221. data/src/core/lib/security/credentials/composite/composite_credentials.cc +5 -5
  222. data/src/core/lib/security/credentials/composite/composite_credentials.h +4 -3
  223. data/src/core/lib/security/credentials/credentials.h +10 -20
  224. data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +6 -9
  225. data/src/core/lib/security/credentials/external/external_account_credentials.cc +7 -9
  226. data/src/core/lib/security/credentials/external/external_account_credentials.h +2 -7
  227. data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +2 -3
  228. data/src/core/lib/security/credentials/fake/fake_credentials.cc +5 -4
  229. data/src/core/lib/security/credentials/fake/fake_credentials.h +8 -7
  230. data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +2 -5
  231. data/src/core/lib/security/credentials/iam/iam_credentials.cc +16 -19
  232. data/src/core/lib/security/credentials/iam/iam_credentials.h +6 -5
  233. data/src/core/lib/security/credentials/jwt/json_token.cc +4 -6
  234. data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +16 -28
  235. data/src/core/lib/security/credentials/jwt/jwt_credentials.h +8 -8
  236. data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +6 -13
  237. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +44 -57
  238. data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +13 -15
  239. data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +6 -7
  240. data/src/core/lib/security/credentials/plugin/plugin_credentials.h +5 -4
  241. data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +1 -10
  242. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +6 -0
  243. data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +7 -0
  244. data/src/core/lib/security/credentials/xds/xds_credentials.h +1 -1
  245. data/src/core/lib/security/security_connector/security_connector.cc +0 -4
  246. data/src/core/lib/security/security_connector/security_connector.h +5 -1
  247. data/src/core/lib/security/security_connector/ssl_utils.cc +14 -24
  248. data/src/core/lib/security/security_connector/ssl_utils.h +5 -14
  249. data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +2 -3
  250. data/src/core/lib/security/transport/auth_filters.h +7 -0
  251. data/src/core/lib/security/transport/client_auth_filter.cc +53 -33
  252. data/src/core/lib/security/transport/server_auth_filter.cc +40 -35
  253. data/src/core/{ext → lib}/service_config/service_config.cc +2 -2
  254. data/src/core/{ext → lib}/service_config/service_config.h +4 -4
  255. data/src/core/{ext → lib}/service_config/service_config_call_data.h +5 -5
  256. data/src/core/{ext → lib}/service_config/service_config_parser.cc +1 -1
  257. data/src/core/{ext → lib}/service_config/service_config_parser.h +3 -3
  258. data/src/core/lib/slice/slice.cc +3 -1
  259. data/src/core/lib/slice/slice.h +43 -13
  260. data/src/core/lib/slice/slice_intern.cc +3 -101
  261. data/src/core/lib/slice/slice_internal.h +1 -2
  262. data/src/core/lib/slice/slice_refcount.h +4 -13
  263. data/src/core/lib/slice/slice_refcount_base.h +0 -16
  264. data/src/core/lib/surface/call.cc +140 -382
  265. data/src/core/lib/surface/call.h +4 -4
  266. data/src/core/lib/surface/channel.cc +42 -44
  267. data/src/core/lib/surface/channel.h +4 -4
  268. data/src/core/lib/surface/init.cc +0 -2
  269. data/src/core/lib/surface/lame_client.cc +0 -1
  270. data/src/core/lib/surface/server.cc +12 -29
  271. data/src/core/lib/surface/server.h +2 -2
  272. data/src/core/lib/surface/version.cc +2 -2
  273. data/src/core/lib/transport/error_utils.h +14 -0
  274. data/src/core/lib/transport/metadata_batch.h +799 -717
  275. data/src/core/lib/transport/parsed_metadata.cc +2 -0
  276. data/src/core/lib/transport/parsed_metadata.h +95 -92
  277. data/src/core/lib/transport/timeout_encoding.cc +200 -66
  278. data/src/core/lib/transport/timeout_encoding.h +40 -10
  279. data/src/core/lib/transport/transport.h +1 -1
  280. data/src/core/lib/transport/transport_op_string.cc +6 -39
  281. data/src/core/lib/uri/uri_parser.cc +223 -53
  282. data/src/core/lib/uri/uri_parser.h +36 -23
  283. data/src/core/plugin_registry/grpc_plugin_registry.cc +4 -3
  284. data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -1
  285. data/src/core/tsi/ssl/session_cache/ssl_session.h +2 -4
  286. data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +3 -5
  287. data/src/core/tsi/ssl_transport_security.cc +53 -13
  288. data/src/core/tsi/ssl_transport_security.h +18 -6
  289. data/src/ruby/ext/grpc/extconf.rb +10 -3
  290. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -0
  291. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +3 -0
  292. data/src/ruby/lib/grpc/version.rb +1 -1
  293. data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -1
  294. data/third_party/abseil-cpp/absl/base/internal/fast_type_id.h +48 -0
  295. data/third_party/abseil-cpp/absl/random/bernoulli_distribution.h +200 -0
  296. data/third_party/abseil-cpp/absl/random/beta_distribution.h +427 -0
  297. data/third_party/abseil-cpp/absl/random/discrete_distribution.cc +98 -0
  298. data/third_party/abseil-cpp/absl/random/discrete_distribution.h +247 -0
  299. data/third_party/abseil-cpp/absl/random/distributions.h +452 -0
  300. data/third_party/abseil-cpp/absl/random/exponential_distribution.h +165 -0
  301. data/third_party/abseil-cpp/absl/random/gaussian_distribution.cc +104 -0
  302. data/third_party/abseil-cpp/absl/random/gaussian_distribution.h +275 -0
  303. data/third_party/abseil-cpp/absl/random/internal/distribution_caller.h +92 -0
  304. data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +268 -0
  305. data/third_party/abseil-cpp/absl/random/internal/fastmath.h +57 -0
  306. data/third_party/abseil-cpp/absl/random/internal/generate_real.h +144 -0
  307. data/third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h +245 -0
  308. data/third_party/abseil-cpp/absl/random/internal/nonsecure_base.h +150 -0
  309. data/third_party/abseil-cpp/absl/random/internal/pcg_engine.h +308 -0
  310. data/third_party/abseil-cpp/absl/random/internal/platform.h +171 -0
  311. data/third_party/abseil-cpp/absl/random/internal/pool_urbg.cc +253 -0
  312. data/third_party/abseil-cpp/absl/random/internal/pool_urbg.h +131 -0
  313. data/third_party/abseil-cpp/absl/random/internal/randen.cc +91 -0
  314. data/third_party/abseil-cpp/absl/random/internal/randen.h +102 -0
  315. data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +221 -0
  316. data/third_party/abseil-cpp/absl/random/internal/randen_detect.h +33 -0
  317. data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +239 -0
  318. data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +526 -0
  319. data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.h +50 -0
  320. data/third_party/abseil-cpp/absl/random/internal/randen_round_keys.cc +462 -0
  321. data/third_party/abseil-cpp/absl/random/internal/randen_slow.cc +471 -0
  322. data/third_party/abseil-cpp/absl/random/internal/randen_slow.h +40 -0
  323. data/third_party/abseil-cpp/absl/random/internal/randen_traits.h +88 -0
  324. data/third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h +167 -0
  325. data/third_party/abseil-cpp/absl/random/internal/seed_material.cc +267 -0
  326. data/third_party/abseil-cpp/absl/random/internal/seed_material.h +104 -0
  327. data/third_party/abseil-cpp/absl/random/internal/traits.h +101 -0
  328. data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +244 -0
  329. data/third_party/abseil-cpp/absl/random/internal/wide_multiply.h +111 -0
  330. data/third_party/abseil-cpp/absl/random/log_uniform_int_distribution.h +257 -0
  331. data/third_party/abseil-cpp/absl/random/poisson_distribution.h +258 -0
  332. data/third_party/abseil-cpp/absl/random/random.h +189 -0
  333. data/third_party/abseil-cpp/absl/random/seed_gen_exception.cc +46 -0
  334. data/third_party/abseil-cpp/absl/random/seed_gen_exception.h +55 -0
  335. data/third_party/abseil-cpp/absl/random/seed_sequences.cc +29 -0
  336. data/third_party/abseil-cpp/absl/random/seed_sequences.h +110 -0
  337. data/third_party/abseil-cpp/absl/random/uniform_int_distribution.h +275 -0
  338. data/third_party/abseil-cpp/absl/random/uniform_real_distribution.h +202 -0
  339. data/third_party/abseil-cpp/absl/random/zipf_distribution.h +271 -0
  340. data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -0
  341. data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +13 -0
  342. data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +21 -0
  343. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +12 -0
  344. data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +1 -2
  345. data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +2 -2
  346. data/third_party/boringssl-with-bazel/src/crypto/mem.c +1 -1
  347. data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7.c +29 -0
  348. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +0 -1
  349. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +1 -1
  350. data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +1 -1
  351. data/third_party/boringssl-with-bazel/src/include/openssl/base64.h +8 -0
  352. data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +13 -1
  353. data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +10 -0
  354. data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +1 -1
  355. data/third_party/boringssl-with-bazel/src/include/openssl/pkcs7.h +9 -4
  356. data/third_party/boringssl-with-bazel/src/include/openssl/pkcs8.h +6 -1
  357. data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +23 -2
  358. data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +4 -0
  359. data/third_party/xxhash/xxhash.h +607 -352
  360. metadata +149 -77
  361. data/src/core/ext/transport/chttp2/transport/hpack_encoder_index.h +0 -107
  362. data/src/core/ext/transport/chttp2/transport/hpack_utils.cc +0 -46
  363. data/src/core/ext/transport/chttp2/transport/popularity_count.h +0 -60
  364. data/src/core/lib/compression/algorithm_metadata.h +0 -62
  365. data/src/core/lib/compression/compression_args.cc +0 -140
  366. data/src/core/lib/compression/compression_args.h +0 -58
  367. data/src/core/lib/compression/stream_compression.cc +0 -81
  368. data/src/core/lib/compression/stream_compression.h +0 -117
  369. data/src/core/lib/compression/stream_compression_gzip.cc +0 -231
  370. data/src/core/lib/compression/stream_compression_gzip.h +0 -28
  371. data/src/core/lib/compression/stream_compression_identity.cc +0 -91
  372. data/src/core/lib/compression/stream_compression_identity.h +0 -29
  373. data/src/core/lib/security/credentials/credentials_metadata.cc +0 -61
  374. data/src/core/lib/slice/static_slice.cc +0 -377
  375. data/src/core/lib/slice/static_slice.h +0 -300
  376. data/src/core/lib/transport/metadata.cc +0 -714
  377. data/src/core/lib/transport/metadata.h +0 -449
  378. data/src/core/lib/transport/metadata_batch.cc +0 -99
  379. data/src/core/lib/transport/static_metadata.cc +0 -1032
  380. data/src/core/lib/transport/static_metadata.h +0 -322
  381. data/src/core/lib/transport/status_metadata.cc +0 -63
  382. data/src/core/lib/transport/status_metadata.h +0 -48
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.43.1
4
+ version: 1.44.0.pre2
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: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.18'
19
+ version: '3.19'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.18'
26
+ version: '3.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos-types
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  name: rake-compiler
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - "<="
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.1.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - "<="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.1.1
125
125
  - !ruby/object:Gem::Dependency
@@ -339,8 +339,6 @@ files:
339
339
  - src/core/ext/filters/client_channel/proxy_mapper.h
340
340
  - src/core/ext/filters/client_channel/proxy_mapper_registry.cc
341
341
  - src/core/ext/filters/client_channel/proxy_mapper_registry.h
342
- - src/core/ext/filters/client_channel/resolver.cc
343
- - src/core/ext/filters/client_channel/resolver.h
344
342
  - src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc
345
343
  - src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
346
344
  - src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h
@@ -361,9 +359,6 @@ files:
361
359
  - src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc
362
360
  - src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc
363
361
  - src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h
364
- - src/core/ext/filters/client_channel/resolver_factory.h
365
- - src/core/ext/filters/client_channel/resolver_registry.cc
366
- - src/core/ext/filters/client_channel/resolver_registry.h
367
362
  - src/core/ext/filters/client_channel/resolver_result_parsing.cc
368
363
  - src/core/ext/filters/client_channel/resolver_result_parsing.h
369
364
  - src/core/ext/filters/client_channel/retry_filter.cc
@@ -372,8 +367,6 @@ files:
372
367
  - src/core/ext/filters/client_channel/retry_service_config.h
373
368
  - src/core/ext/filters/client_channel/retry_throttle.cc
374
369
  - src/core/ext/filters/client_channel/retry_throttle.h
375
- - src/core/ext/filters/client_channel/server_address.cc
376
- - src/core/ext/filters/client_channel/server_address.h
377
370
  - src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc
378
371
  - src/core/ext/filters/client_channel/subchannel.cc
379
372
  - src/core/ext/filters/client_channel/subchannel.h
@@ -404,15 +397,14 @@ files:
404
397
  - src/core/ext/filters/max_age/max_age_filter.h
405
398
  - src/core/ext/filters/message_size/message_size_filter.cc
406
399
  - src/core/ext/filters/message_size/message_size_filter.h
400
+ - src/core/ext/filters/rbac/rbac_filter.cc
401
+ - src/core/ext/filters/rbac/rbac_filter.h
402
+ - src/core/ext/filters/rbac/rbac_service_config_parser.cc
403
+ - src/core/ext/filters/rbac/rbac_service_config_parser.h
407
404
  - src/core/ext/filters/server_config_selector/server_config_selector.cc
408
405
  - src/core/ext/filters/server_config_selector/server_config_selector.h
409
406
  - src/core/ext/filters/server_config_selector/server_config_selector_filter.cc
410
407
  - src/core/ext/filters/server_config_selector/server_config_selector_filter.h
411
- - src/core/ext/service_config/service_config.cc
412
- - src/core/ext/service_config/service_config.h
413
- - src/core/ext/service_config/service_config_call_data.h
414
- - src/core/ext/service_config/service_config_parser.cc
415
- - src/core/ext/service_config/service_config_parser.h
416
408
  - src/core/ext/transport/chttp2/alpn/alpn.cc
417
409
  - src/core/ext/transport/chttp2/alpn/alpn.h
418
410
  - src/core/ext/transport/chttp2/client/chttp2_connector.cc
@@ -452,22 +444,18 @@ files:
452
444
  - src/core/ext/transport/chttp2/transport/hpack_constants.h
453
445
  - src/core/ext/transport/chttp2/transport/hpack_encoder.cc
454
446
  - src/core/ext/transport/chttp2/transport/hpack_encoder.h
455
- - src/core/ext/transport/chttp2/transport/hpack_encoder_index.h
456
447
  - src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc
457
448
  - src/core/ext/transport/chttp2/transport/hpack_encoder_table.h
458
449
  - src/core/ext/transport/chttp2/transport/hpack_parser.cc
459
450
  - src/core/ext/transport/chttp2/transport/hpack_parser.h
460
451
  - src/core/ext/transport/chttp2/transport/hpack_parser_table.cc
461
452
  - src/core/ext/transport/chttp2/transport/hpack_parser_table.h
462
- - src/core/ext/transport/chttp2/transport/hpack_utils.cc
463
- - src/core/ext/transport/chttp2/transport/hpack_utils.h
464
453
  - src/core/ext/transport/chttp2/transport/http2_settings.cc
465
454
  - src/core/ext/transport/chttp2/transport/http2_settings.h
466
455
  - src/core/ext/transport/chttp2/transport/huffsyms.cc
467
456
  - src/core/ext/transport/chttp2/transport/huffsyms.h
468
457
  - src/core/ext/transport/chttp2/transport/internal.h
469
458
  - src/core/ext/transport/chttp2/transport/parsing.cc
470
- - src/core/ext/transport/chttp2/transport/popularity_count.h
471
459
  - src/core/ext/transport/chttp2/transport/stream_lists.cc
472
460
  - src/core/ext/transport/chttp2/transport/stream_map.cc
473
461
  - src/core/ext/transport/chttp2/transport/stream_map.h
@@ -561,6 +549,8 @@ files:
561
549
  - src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h
562
550
  - src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c
563
551
  - src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h
552
+ - src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c
553
+ - src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h
564
554
  - src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c
565
555
  - src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h
566
556
  - src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c
@@ -761,6 +751,8 @@ files:
761
751
  - src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h
762
752
  - src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c
763
753
  - src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h
754
+ - src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c
755
+ - src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h
764
756
  - src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c
765
757
  - src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h
766
758
  - src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c
@@ -775,6 +767,8 @@ files:
775
767
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h
776
768
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c
777
769
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h
770
+ - src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c
771
+ - src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h
778
772
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c
779
773
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h
780
774
  - src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c
@@ -837,6 +831,16 @@ files:
837
831
  - src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h
838
832
  - src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c
839
833
  - src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h
834
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c
835
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h
836
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.c
837
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/eval.upbdefs.h
838
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.c
839
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/explain.upbdefs.h
840
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c
841
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h
842
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.c
843
+ - src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/value.upbdefs.h
840
844
  - src/core/ext/upbdefs-generated/google/api/http.upbdefs.c
841
845
  - src/core/ext/upbdefs-generated/google/api/http.upbdefs.h
842
846
  - src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c
@@ -890,6 +894,7 @@ files:
890
894
  - src/core/ext/xds/certificate_provider_store.h
891
895
  - src/core/ext/xds/file_watcher_certificate_provider_factory.cc
892
896
  - src/core/ext/xds/file_watcher_certificate_provider_factory.h
897
+ - src/core/ext/xds/upb_utils.h
893
898
  - src/core/ext/xds/xds_api.cc
894
899
  - src/core/ext/xds/xds_api.h
895
900
  - src/core/ext/xds/xds_bootstrap.cc
@@ -897,16 +902,33 @@ files:
897
902
  - src/core/ext/xds/xds_certificate_provider.cc
898
903
  - src/core/ext/xds/xds_certificate_provider.h
899
904
  - src/core/ext/xds/xds_channel_args.h
905
+ - src/core/ext/xds/xds_channel_creds.cc
906
+ - src/core/ext/xds/xds_channel_creds.h
900
907
  - src/core/ext/xds/xds_channel_stack_modifier.cc
901
908
  - src/core/ext/xds/xds_channel_stack_modifier.h
902
909
  - src/core/ext/xds/xds_client.cc
903
910
  - src/core/ext/xds/xds_client.h
904
911
  - src/core/ext/xds/xds_client_stats.cc
905
912
  - src/core/ext/xds/xds_client_stats.h
913
+ - src/core/ext/xds/xds_cluster.cc
914
+ - src/core/ext/xds/xds_cluster.h
915
+ - src/core/ext/xds/xds_common_types.cc
916
+ - src/core/ext/xds/xds_common_types.h
917
+ - src/core/ext/xds/xds_endpoint.cc
918
+ - src/core/ext/xds/xds_endpoint.h
906
919
  - src/core/ext/xds/xds_http_fault_filter.cc
907
920
  - src/core/ext/xds/xds_http_fault_filter.h
908
921
  - src/core/ext/xds/xds_http_filters.cc
909
922
  - src/core/ext/xds/xds_http_filters.h
923
+ - src/core/ext/xds/xds_http_rbac_filter.cc
924
+ - src/core/ext/xds/xds_http_rbac_filter.h
925
+ - src/core/ext/xds/xds_listener.cc
926
+ - src/core/ext/xds/xds_listener.h
927
+ - src/core/ext/xds/xds_resource_type.cc
928
+ - src/core/ext/xds/xds_resource_type.h
929
+ - src/core/ext/xds/xds_resource_type_impl.h
930
+ - src/core/ext/xds/xds_route_config.cc
931
+ - src/core/ext/xds/xds_route_config.h
910
932
  - src/core/ext/xds/xds_routing.cc
911
933
  - src/core/ext/xds/xds_routing.h
912
934
  - src/core/ext/xds/xds_server_config_fetcher.cc
@@ -942,20 +964,11 @@ files:
942
964
  - src/core/lib/channel/handshaker_registry.h
943
965
  - src/core/lib/channel/status_util.cc
944
966
  - src/core/lib/channel/status_util.h
945
- - src/core/lib/compression/algorithm_metadata.h
946
967
  - src/core/lib/compression/compression.cc
947
- - src/core/lib/compression/compression_args.cc
948
- - src/core/lib/compression/compression_args.h
949
968
  - src/core/lib/compression/compression_internal.cc
950
969
  - src/core/lib/compression/compression_internal.h
951
970
  - src/core/lib/compression/message_compress.cc
952
971
  - src/core/lib/compression/message_compress.h
953
- - src/core/lib/compression/stream_compression.cc
954
- - src/core/lib/compression/stream_compression.h
955
- - src/core/lib/compression/stream_compression_gzip.cc
956
- - src/core/lib/compression/stream_compression_gzip.h
957
- - src/core/lib/compression/stream_compression_identity.cc
958
- - src/core/lib/compression/stream_compression_identity.h
959
972
  - src/core/lib/config/core_configuration.cc
960
973
  - src/core/lib/config/core_configuration.h
961
974
  - src/core/lib/debug/stats.cc
@@ -1013,8 +1026,6 @@ files:
1013
1026
  - src/core/lib/gpr/tmpfile_windows.cc
1014
1027
  - src/core/lib/gpr/useful.h
1015
1028
  - src/core/lib/gpr/wrap_memcpy.cc
1016
- - src/core/lib/gprpp/arena.cc
1017
- - src/core/lib/gprpp/arena.h
1018
1029
  - src/core/lib/gprpp/atomic_utils.h
1019
1030
  - src/core/lib/gprpp/bitset.h
1020
1031
  - src/core/lib/gprpp/chunked_vector.h
@@ -1106,6 +1117,7 @@ files:
1106
1117
  - src/core/lib/iomgr/event_engine/resolved_address_internal.cc
1107
1118
  - src/core/lib/iomgr/event_engine/resolved_address_internal.h
1108
1119
  - src/core/lib/iomgr/event_engine/resolver.cc
1120
+ - src/core/lib/iomgr/event_engine/resolver.h
1109
1121
  - src/core/lib/iomgr/event_engine/tcp.cc
1110
1122
  - src/core/lib/iomgr/event_engine/timer.cc
1111
1123
  - src/core/lib/iomgr/exec_ctx.cc
@@ -1165,8 +1177,12 @@ files:
1165
1177
  - src/core/lib/iomgr/resolve_address.h
1166
1178
  - src/core/lib/iomgr/resolve_address_custom.cc
1167
1179
  - src/core/lib/iomgr/resolve_address_custom.h
1180
+ - src/core/lib/iomgr/resolve_address_impl.h
1168
1181
  - src/core/lib/iomgr/resolve_address_posix.cc
1182
+ - src/core/lib/iomgr/resolve_address_posix.h
1169
1183
  - src/core/lib/iomgr/resolve_address_windows.cc
1184
+ - src/core/lib/iomgr/resolve_address_windows.h
1185
+ - src/core/lib/iomgr/resolved_address.h
1170
1186
  - src/core/lib/iomgr/sockaddr.h
1171
1187
  - src/core/lib/iomgr/sockaddr_posix.h
1172
1188
  - src/core/lib/iomgr/sockaddr_windows.h
@@ -1252,8 +1268,17 @@ files:
1252
1268
  - src/core/lib/promise/poll.h
1253
1269
  - src/core/lib/promise/race.h
1254
1270
  - src/core/lib/promise/seq.h
1271
+ - src/core/lib/resolver/resolver.cc
1272
+ - src/core/lib/resolver/resolver.h
1273
+ - src/core/lib/resolver/resolver_factory.h
1274
+ - src/core/lib/resolver/resolver_registry.cc
1275
+ - src/core/lib/resolver/resolver_registry.h
1276
+ - src/core/lib/resolver/server_address.cc
1277
+ - src/core/lib/resolver/server_address.h
1255
1278
  - src/core/lib/resource_quota/api.cc
1256
1279
  - src/core/lib/resource_quota/api.h
1280
+ - src/core/lib/resource_quota/arena.cc
1281
+ - src/core/lib/resource_quota/arena.h
1257
1282
  - src/core/lib/resource_quota/memory_quota.cc
1258
1283
  - src/core/lib/resource_quota/memory_quota.h
1259
1284
  - src/core/lib/resource_quota/resource_quota.cc
@@ -1267,6 +1292,12 @@ files:
1267
1292
  - src/core/lib/security/authorization/authorization_policy_provider_vtable.cc
1268
1293
  - src/core/lib/security/authorization/evaluate_args.cc
1269
1294
  - src/core/lib/security/authorization/evaluate_args.h
1295
+ - src/core/lib/security/authorization/grpc_authorization_engine.cc
1296
+ - src/core/lib/security/authorization/grpc_authorization_engine.h
1297
+ - src/core/lib/security/authorization/matchers.cc
1298
+ - src/core/lib/security/authorization/matchers.h
1299
+ - src/core/lib/security/authorization/rbac_policy.cc
1300
+ - src/core/lib/security/authorization/rbac_policy.h
1270
1301
  - src/core/lib/security/authorization/sdk_server_authz_filter.cc
1271
1302
  - src/core/lib/security/authorization/sdk_server_authz_filter.h
1272
1303
  - src/core/lib/security/context/security_context.cc
@@ -1286,7 +1317,6 @@ files:
1286
1317
  - src/core/lib/security/credentials/composite/composite_credentials.h
1287
1318
  - src/core/lib/security/credentials/credentials.cc
1288
1319
  - src/core/lib/security/credentials/credentials.h
1289
- - src/core/lib/security/credentials/credentials_metadata.cc
1290
1320
  - src/core/lib/security/credentials/external/aws_external_account_credentials.cc
1291
1321
  - src/core/lib/security/credentials/external/aws_external_account_credentials.h
1292
1322
  - src/core/lib/security/credentials/external/aws_request_signer.cc
@@ -1366,6 +1396,11 @@ files:
1366
1396
  - src/core/lib/security/transport/tsi_error.h
1367
1397
  - src/core/lib/security/util/json_util.cc
1368
1398
  - src/core/lib/security/util/json_util.h
1399
+ - src/core/lib/service_config/service_config.cc
1400
+ - src/core/lib/service_config/service_config.h
1401
+ - src/core/lib/service_config/service_config_call_data.h
1402
+ - src/core/lib/service_config/service_config_parser.cc
1403
+ - src/core/lib/service_config/service_config_parser.h
1369
1404
  - src/core/lib/slice/b64.cc
1370
1405
  - src/core/lib/slice/b64.h
1371
1406
  - src/core/lib/slice/percent_encoding.cc
@@ -1384,8 +1419,6 @@ files:
1384
1419
  - src/core/lib/slice/slice_string_helpers.cc
1385
1420
  - src/core/lib/slice/slice_string_helpers.h
1386
1421
  - src/core/lib/slice/slice_utils.h
1387
- - src/core/lib/slice/static_slice.cc
1388
- - src/core/lib/slice/static_slice.h
1389
1422
  - src/core/lib/surface/api_trace.cc
1390
1423
  - src/core/lib/surface/api_trace.h
1391
1424
  - src/core/lib/surface/builtins.cc
@@ -1430,20 +1463,13 @@ files:
1430
1463
  - src/core/lib/transport/error_utils.cc
1431
1464
  - src/core/lib/transport/error_utils.h
1432
1465
  - src/core/lib/transport/http2_errors.h
1433
- - src/core/lib/transport/metadata.cc
1434
- - src/core/lib/transport/metadata.h
1435
- - src/core/lib/transport/metadata_batch.cc
1436
1466
  - src/core/lib/transport/metadata_batch.h
1437
1467
  - src/core/lib/transport/parsed_metadata.cc
1438
1468
  - src/core/lib/transport/parsed_metadata.h
1439
1469
  - src/core/lib/transport/pid_controller.cc
1440
1470
  - src/core/lib/transport/pid_controller.h
1441
- - src/core/lib/transport/static_metadata.cc
1442
- - src/core/lib/transport/static_metadata.h
1443
1471
  - src/core/lib/transport/status_conversion.cc
1444
1472
  - src/core/lib/transport/status_conversion.h
1445
- - src/core/lib/transport/status_metadata.cc
1446
- - src/core/lib/transport/status_metadata.h
1447
1473
  - src/core/lib/transport/timeout_encoding.cc
1448
1474
  - src/core/lib/transport/timeout_encoding.h
1449
1475
  - src/core/lib/transport/transport.cc
@@ -1637,6 +1663,7 @@ files:
1637
1663
  - third_party/abseil-cpp/absl/base/internal/dynamic_annotations.h
1638
1664
  - third_party/abseil-cpp/absl/base/internal/endian.h
1639
1665
  - third_party/abseil-cpp/absl/base/internal/errno_saver.h
1666
+ - third_party/abseil-cpp/absl/base/internal/fast_type_id.h
1640
1667
  - third_party/abseil-cpp/absl/base/internal/hide_ptr.h
1641
1668
  - third_party/abseil-cpp/absl/base/internal/identity.h
1642
1669
  - third_party/abseil-cpp/absl/base/internal/inline_variable.h
@@ -1744,6 +1771,51 @@ files:
1744
1771
  - third_party/abseil-cpp/absl/profiling/internal/exponential_biased.cc
1745
1772
  - third_party/abseil-cpp/absl/profiling/internal/exponential_biased.h
1746
1773
  - third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h
1774
+ - third_party/abseil-cpp/absl/random/bernoulli_distribution.h
1775
+ - third_party/abseil-cpp/absl/random/beta_distribution.h
1776
+ - third_party/abseil-cpp/absl/random/discrete_distribution.cc
1777
+ - third_party/abseil-cpp/absl/random/discrete_distribution.h
1778
+ - third_party/abseil-cpp/absl/random/distributions.h
1779
+ - third_party/abseil-cpp/absl/random/exponential_distribution.h
1780
+ - third_party/abseil-cpp/absl/random/gaussian_distribution.cc
1781
+ - third_party/abseil-cpp/absl/random/gaussian_distribution.h
1782
+ - third_party/abseil-cpp/absl/random/internal/distribution_caller.h
1783
+ - third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h
1784
+ - third_party/abseil-cpp/absl/random/internal/fastmath.h
1785
+ - third_party/abseil-cpp/absl/random/internal/generate_real.h
1786
+ - third_party/abseil-cpp/absl/random/internal/iostream_state_saver.h
1787
+ - third_party/abseil-cpp/absl/random/internal/nonsecure_base.h
1788
+ - third_party/abseil-cpp/absl/random/internal/pcg_engine.h
1789
+ - third_party/abseil-cpp/absl/random/internal/platform.h
1790
+ - third_party/abseil-cpp/absl/random/internal/pool_urbg.cc
1791
+ - third_party/abseil-cpp/absl/random/internal/pool_urbg.h
1792
+ - third_party/abseil-cpp/absl/random/internal/randen.cc
1793
+ - third_party/abseil-cpp/absl/random/internal/randen.h
1794
+ - third_party/abseil-cpp/absl/random/internal/randen_detect.cc
1795
+ - third_party/abseil-cpp/absl/random/internal/randen_detect.h
1796
+ - third_party/abseil-cpp/absl/random/internal/randen_engine.h
1797
+ - third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc
1798
+ - third_party/abseil-cpp/absl/random/internal/randen_hwaes.h
1799
+ - third_party/abseil-cpp/absl/random/internal/randen_round_keys.cc
1800
+ - third_party/abseil-cpp/absl/random/internal/randen_slow.cc
1801
+ - third_party/abseil-cpp/absl/random/internal/randen_slow.h
1802
+ - third_party/abseil-cpp/absl/random/internal/randen_traits.h
1803
+ - third_party/abseil-cpp/absl/random/internal/salted_seed_seq.h
1804
+ - third_party/abseil-cpp/absl/random/internal/seed_material.cc
1805
+ - third_party/abseil-cpp/absl/random/internal/seed_material.h
1806
+ - third_party/abseil-cpp/absl/random/internal/traits.h
1807
+ - third_party/abseil-cpp/absl/random/internal/uniform_helper.h
1808
+ - third_party/abseil-cpp/absl/random/internal/wide_multiply.h
1809
+ - third_party/abseil-cpp/absl/random/log_uniform_int_distribution.h
1810
+ - third_party/abseil-cpp/absl/random/poisson_distribution.h
1811
+ - third_party/abseil-cpp/absl/random/random.h
1812
+ - third_party/abseil-cpp/absl/random/seed_gen_exception.cc
1813
+ - third_party/abseil-cpp/absl/random/seed_gen_exception.h
1814
+ - third_party/abseil-cpp/absl/random/seed_sequences.cc
1815
+ - third_party/abseil-cpp/absl/random/seed_sequences.h
1816
+ - third_party/abseil-cpp/absl/random/uniform_int_distribution.h
1817
+ - third_party/abseil-cpp/absl/random/uniform_real_distribution.h
1818
+ - third_party/abseil-cpp/absl/random/zipf_distribution.h
1747
1819
  - third_party/abseil-cpp/absl/status/internal/status_internal.h
1748
1820
  - third_party/abseil-cpp/absl/status/internal/statusor_internal.h
1749
1821
  - third_party/abseil-cpp/absl/status/status.cc
@@ -2565,55 +2637,55 @@ required_ruby_version: !ruby/object:Gem::Requirement
2565
2637
  version: 2.5.0
2566
2638
  required_rubygems_version: !ruby/object:Gem::Requirement
2567
2639
  requirements:
2568
- - - ">="
2640
+ - - ">"
2569
2641
  - !ruby/object:Gem::Version
2570
- version: '0'
2642
+ version: 1.3.1
2571
2643
  requirements: []
2572
- rubygems_version: 3.3.5
2644
+ rubygems_version: 3.3.6
2573
2645
  signing_key:
2574
2646
  specification_version: 4
2575
2647
  summary: GRPC system in Ruby
2576
2648
  test_files:
2577
- - src/ruby/spec/channel_connection_spec.rb
2578
- - src/ruby/spec/client_server_spec.rb
2579
- - src/ruby/spec/compression_options_spec.rb
2649
+ - src/ruby/spec/support/services.rb
2650
+ - src/ruby/spec/support/helpers.rb
2651
+ - src/ruby/spec/call_spec.rb
2652
+ - src/ruby/spec/channel_credentials_spec.rb
2653
+ - src/ruby/spec/call_credentials_spec.rb
2580
2654
  - src/ruby/spec/google_rpc_status_utils_spec.rb
2581
- - src/ruby/spec/error_sanity_spec.rb
2582
- - src/ruby/spec/user_agent_spec.rb
2655
+ - src/ruby/spec/client_auth_spec.rb
2583
2656
  - src/ruby/spec/debug_message_spec.rb
2584
- - src/ruby/spec/errors_spec.rb
2585
- - src/ruby/spec/testdata/ca.pem
2586
- - src/ruby/spec/testdata/server1.key
2587
- - src/ruby/spec/testdata/server1.pem
2588
- - src/ruby/spec/testdata/client.key
2589
- - src/ruby/spec/testdata/README
2590
- - src/ruby/spec/testdata/client.pem
2657
+ - src/ruby/spec/time_consts_spec.rb
2591
2658
  - src/ruby/spec/channel_spec.rb
2592
- - src/ruby/spec/generic/rpc_server_pool_spec.rb
2593
- - src/ruby/spec/generic/client_interceptors_spec.rb
2594
- - src/ruby/spec/generic/service_spec.rb
2659
+ - src/ruby/spec/generic/rpc_desc_spec.rb
2660
+ - src/ruby/spec/generic/rpc_server_spec.rb
2595
2661
  - src/ruby/spec/generic/active_call_spec.rb
2662
+ - src/ruby/spec/generic/rpc_server_pool_spec.rb
2663
+ - src/ruby/spec/generic/server_interceptors_spec.rb
2596
2664
  - src/ruby/spec/generic/interceptor_registry_spec.rb
2597
2665
  - src/ruby/spec/generic/client_stub_spec.rb
2598
- - src/ruby/spec/generic/rpc_server_spec.rb
2599
- - src/ruby/spec/generic/server_interceptors_spec.rb
2600
- - src/ruby/spec/generic/rpc_desc_spec.rb
2601
- - src/ruby/spec/channel_credentials_spec.rb
2602
- - src/ruby/spec/server_spec.rb
2603
- - src/ruby/spec/time_consts_spec.rb
2604
- - src/ruby/spec/call_credentials_spec.rb
2605
- - src/ruby/spec/support/services.rb
2606
- - src/ruby/spec/support/helpers.rb
2666
+ - src/ruby/spec/generic/service_spec.rb
2667
+ - src/ruby/spec/generic/client_interceptors_spec.rb
2607
2668
  - src/ruby/spec/spec_helper.rb
2608
- - src/ruby/spec/server_credentials_spec.rb
2609
- - src/ruby/spec/call_spec.rb
2610
- - src/ruby/spec/client_auth_spec.rb
2669
+ - src/ruby/spec/error_sanity_spec.rb
2670
+ - src/ruby/spec/channel_connection_spec.rb
2671
+ - src/ruby/spec/client_server_spec.rb
2672
+ - src/ruby/spec/compression_options_spec.rb
2673
+ - src/ruby/spec/server_spec.rb
2674
+ - src/ruby/spec/errors_spec.rb
2675
+ - src/ruby/spec/testdata/client.pem
2676
+ - src/ruby/spec/testdata/ca.pem
2677
+ - src/ruby/spec/testdata/client.key
2678
+ - src/ruby/spec/testdata/README
2679
+ - src/ruby/spec/testdata/server1.pem
2680
+ - src/ruby/spec/testdata/server1.key
2681
+ - src/ruby/spec/user_agent_spec.rb
2682
+ - src/ruby/spec/pb/health/checker_spec.rb
2611
2683
  - src/ruby/spec/pb/codegen/package_option_spec.rb
2612
- - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
2613
2684
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto
2614
- - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
2685
+ - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
2615
2686
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto
2687
+ - src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto
2616
2688
  - src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto
2617
- - src/ruby/spec/pb/codegen/grpc/testing/package_options.proto
2689
+ - src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto
2618
2690
  - src/ruby/spec/pb/duplicate/codegen_spec.rb
2619
- - src/ruby/spec/pb/health/checker_spec.rb
2691
+ - src/ruby/spec/server_credentials_spec.rb
@@ -1,107 +0,0 @@
1
- // Copyright 2021 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_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HPACK_ENCODER_INDEX_H
16
- #define GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HPACK_ENCODER_INDEX_H
17
-
18
- #include <grpc/support/port_platform.h>
19
-
20
- #include "absl/types/optional.h"
21
-
22
- namespace grpc_core {
23
-
24
- // A fixed size mapping of a key to a chronologically ordered index
25
- template <typename Key, size_t kNumEntries>
26
- class HPackEncoderIndex {
27
- public:
28
- using Index = uint32_t;
29
-
30
- HPackEncoderIndex() : entries_{} {}
31
-
32
- // If key exists in the table, update it to a new index.
33
- // If it does not and there is an empty slot, add it to the index.
34
- // Finally, if it does not and there is no empty slot, evict the oldest
35
- // conflicting member.
36
- void Insert(const Key& key, Index new_index) {
37
- auto* const cuckoo_first = first_slot(key);
38
- if (cuckoo_first->UpdateOrAdd(key, new_index)) return;
39
- auto* const cuckoo_second = second_slot(key);
40
- if (cuckoo_second->UpdateOrAdd(key, new_index)) return;
41
- auto* const clobber = Older(cuckoo_first, cuckoo_second);
42
- clobber->key = key.stored();
43
- clobber->index = new_index;
44
- }
45
-
46
- // Lookup key and return its index, or return empty if it's not in this table.
47
- absl::optional<Index> Lookup(const Key& key) {
48
- auto* const cuckoo_first = first_slot(key);
49
- if (key == cuckoo_first->key) return cuckoo_first->index;
50
- auto* const cuckoo_second = second_slot(key);
51
- if (key == cuckoo_second->key) return cuckoo_second->index;
52
- return {};
53
- }
54
-
55
- private:
56
- using StoredKey = typename Key::Stored;
57
-
58
- // One entry in the index
59
- struct Entry {
60
- Entry() : key{}, index{} {};
61
-
62
- StoredKey key;
63
- Index index;
64
-
65
- // Update this entry if it matches key, otherwise if it's empty add it.
66
- // If neither happens, return false.
67
- bool UpdateOrAdd(const Key& new_key, Index new_index) {
68
- if (new_key == key) {
69
- index = new_index;
70
- return true;
71
- } else if (key == StoredKey()) {
72
- key = new_key.stored();
73
- index = new_index;
74
- return true;
75
- } else {
76
- return false;
77
- }
78
- }
79
- };
80
-
81
- static Entry* Older(Entry* a, Entry* b) {
82
- if (a->index < b->index) {
83
- return a;
84
- } else {
85
- return b;
86
- }
87
- }
88
-
89
- // Return the first slot in which key could be stored.
90
- Entry* first_slot(const Key& key) {
91
- return &entries_[key.hash() % kNumEntries];
92
- }
93
-
94
- // Return the second slot in which key could be stored.
95
- Entry* second_slot(const Key& key) {
96
- return &entries_[(key.hash() / kNumEntries) % kNumEntries];
97
- }
98
-
99
- // Fixed size entry map.
100
- // We store each key/value pair in two slots based on it's hash value.
101
- // They can be evicted individually.
102
- Entry entries_[kNumEntries];
103
- };
104
-
105
- } // namespace grpc_core
106
-
107
- #endif // GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_HPACK_ENCODER_INDEX_H
@@ -1,46 +0,0 @@
1
- // Copyright 2021 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 <grpc/support/port_platform.h>
16
-
17
- #include "src/core/ext/transport/chttp2/transport/hpack_utils.h"
18
-
19
- #include "src/core/lib/surface/validate_metadata.h"
20
-
21
- namespace grpc_core {
22
-
23
- namespace {
24
- size_t Base64EncodedSize(size_t raw_length) {
25
- static constexpr uint8_t tail_xtra[3] = {0, 2, 3};
26
- return raw_length / 3 * 4 + tail_xtra[raw_length % 3];
27
- }
28
- } // namespace
29
-
30
- // Return the size occupied by some metadata in the HPACK table.
31
- size_t MetadataSizeInHPackTable(grpc_mdelem elem,
32
- bool use_true_binary_metadata) {
33
- const uint8_t* key_buf = GRPC_SLICE_START_PTR(GRPC_MDKEY(elem));
34
- size_t key_len = GRPC_SLICE_LENGTH(GRPC_MDKEY(elem));
35
- size_t overhead_and_key = 32 + key_len;
36
- size_t value_len = GRPC_SLICE_LENGTH(GRPC_MDVALUE(elem));
37
- if (grpc_key_is_binary_header(key_buf, key_len)) {
38
- return overhead_and_key + (use_true_binary_metadata
39
- ? value_len + 1
40
- : Base64EncodedSize(value_len));
41
- } else {
42
- return overhead_and_key + value_len;
43
- }
44
- }
45
-
46
- } // namespace grpc_core