Commit Graph

1632 Commits

Author SHA1 Message Date
Lidi Zheng a3ae8e00a2
Revert "Allow to specify user provided audience in google default credentials and JWT credentials (#26392)" (#26440)
This reverts commit 304262e135.
2021-06-07 15:24:54 -07:00
Ashitha Santhosh b9a643a817
Static policy provider implementation. (#26134) 2021-06-03 23:18:08 -07:00
yihuaz 304262e135
Allow to specify user provided audience in google default credentials and JWT credentials (#26392)
* support user provided audience in gdc and jwt

* fix 1st round of comments

* fix ruby and php to use new GDC API

* fix python clang issue

* address 2nd round of comments

* fix string_view issue

* remove length param in string_view constructor
2021-06-03 16:02:19 -07:00
Yash Tibrewal a989179ace
Bump master to v1.39.0 (#26207)
* Bump version to v1.39.0

* Regenerate projects

* Buildifier format
2021-05-11 06:49:10 -07:00
Yash Tibrewal 81276fff2e
Update protobuf version to 3.15.8 (#26105)
* Update protobuf version to 3.15.8

* Run tools/distrib/python/make_grpcio_tools.py
2021-04-30 11:03:23 -07:00
Mark D. Roth feff79abc7
add test-only channel arg to set per-channel xDS bootstrap config (#25936)
* pass XdsClient to LB policies via channel args

* add channel arg for overriding bootstrap config on a per-channel basis

* change tests to use new channel arg approach -- currently failing for server-side tests

* use the same channel args approach on the server side

* clang-format

* fix CircuitBreakingMultipleChannelsShareCallCounter test

* fix XdsEnabledServerTest test

* add TODO

* clang-format

* generate_projects

* fix clang-tidy

* fix build

* attempt to fix python
2021-04-21 10:16:33 -07:00
Stanley Cheung ab3096f12c
Fix header_matching for PHP and Ruby (#26017) 2021-04-20 11:37:03 -07:00
Stanley Cheung 6855314067
Ruby: Fix xds fault_injection test (#26006) 2021-04-19 16:15:02 -07:00
Brian Buchalter 5917984194
Update Ruby documentation for Gemfile usage (#25705) 2021-04-19 14:31:26 -07:00
Bouke van der Bijl 1fdc534e67
ruby: use x86_64 binary on M1 macs (#25756) 2021-04-07 11:49:01 -07:00
Richard Belleville 9964ae875b
Bump master version to 1.38 (#25838)
* Bump version to 1.38

* Regenerate projects
2021-03-30 13:57:13 -07:00
Lidi Zheng 1040fbdb9f
Re-introduce "CSDS Implementation" (#25762)
* Revert "Revert "CSDS Implementation (#25038)" (#25745)"

This reverts commit 98fd4e1e36.

* Add xDS special Bazel build rules

* Add 2 todos to remove the added rules
2021-03-22 13:14:19 -07:00
Lidi Zheng 98fd4e1e36
Revert "CSDS Implementation (#25038)" (#25745)
This reverts commit 27de24a38e.
2021-03-17 13:38:47 -07:00
Lidi Zheng 27de24a38e
CSDS Implementation (#25038)
* Implement the xDS Config Dump as CSDS in Core

* Revemp the logic of caching and constructing the CSDS response
* Unref created error
* Fix the clang tidy complains
* Resolve comments about symbol preload and Json ctor
* Improve readability
* Merge with new ADS logic && support latest CSDS
  * Refactor the version/client_status logic
  * Add support for error_state
  * Add support for does_not_exist
  * Add node information
* Fix the ProtoBuf segfault
* More test cases
* Refactor to use bytes as cache instead of JSON

* Apply clang_tidy's suggestion

* Resolve reviewer's requests

* Tiny stylish fixes && make sanity test happy

* WIP: still working on the matchers

* Update a bunch of matchers

* Improve readability a bit

* Resolve reviewer's suggestions

* Resolve reviewer's comments

* Make Unpack fail fast
2021-03-16 18:17:37 -07:00
Yash Tibrewal 7021b72d1f
Revert Revert Xds Status Notifier (#25718)
* Revert "Revert "xDS status notifier (#25321)" (#25702)"

This reverts commit 3c9f3972e3.

* Remove connection from map when OnClose is not registered

* Reviewer comments
2021-03-15 14:29:06 -07:00
Yash Tibrewal 3c9f3972e3
Revert "xDS status notifier (#25321)" (#25702)
This reverts commit 81e90432e1.
2021-03-12 08:54:34 -08:00
Yash Tibrewal 81e90432e1
xDS status notifier (#25321)
* Serving status notification for xds enabled servers
2021-03-08 21:47:13 -08:00
Minku Lee 3ca079faad
ruby: add conditional on darwin based on arch (#25419) 2021-03-08 11:38:46 -08:00
Stanley Cheung e6e82104e2
Fix access to empty list in proto (#25625) 2021-03-04 20:14:19 -08:00
Hannah Shi 0fc521067b
Ruby: support for PSM security (#25330)
* support for PSM security, SSL fallback

* Ruby Server, support for PSM security, SSL fallback

* address review comments

* add more tests, address review comments

* add XdsChannelCredentials class for PSM security, ruby client

* XdsServerCredentials

* address review comments

* re-run tools/distrib/clang_format_code.sh

* address comments, add entries to grpc_class_init_test

* fix to pass end2end ci test

* re-run tools/distrib/clang_format_code.sh

* address comments
2021-03-04 13:32:30 -08:00
apolcyn cac3cebe1a
Relax ruby test check on protobuf error message (#25507) 2021-02-19 15:54:06 -08:00
Stanley Cheung 45e41137a8
Replaces disrespectful terms (#25501) 2021-02-19 01:27:17 -08:00
Stanley Cheung c04bf9f5c9
Merge pull request #25378 from stanley-cheung/ruby-xds-timeout
Ruby: add xds timeout test
2021-02-18 13:54:54 -08:00
apolcyn 6102f67ade
Merge pull request #25442 from apolcyn/fix_ruby_e2e_test_port_picking
Fix child process port allocation in ruby end-to-end tests
2021-02-12 17:00:52 -08:00
Alexander Polcyn 27687563d6 Fix child process port selection in ruby end-to-end tests 2021-02-12 13:45:42 -08:00
apolcyn 5c214d57e4
Merge pull request #25406 from apolcyn/fix_ruby_flake
Fix flake in ruby call creds timeout test
2021-02-12 09:13:11 -08:00
Alexander Polcyn b14019661f Don't perform unnecessary RPCs in call creds timeout test 2021-02-11 20:02:08 -08:00
Alexander Polcyn 01c52d7c77 Fix no free threads flake in ruby call creds timeout test 2021-02-11 15:56:53 -08:00
Stanley Cheung beaf86dc43 review fixes 2021-02-11 23:54:19 +00:00
Stanley Cheung ac9bf63631 Ruby xds timeout test 2021-02-11 23:21:08 +00:00
Yash Tibrewal 7c8defd5c9
Merge pull request #25377 from yashykt/removedisrespecfulterm2
Replace disrespectful term
2021-02-10 15:20:27 -08:00
Lidi Zheng a72c72f6e3
Merge pull request #25388 from lidizheng/master
Bump version of HEAD to v1.37.0-dev
2021-02-09 15:11:35 -08:00
Lidi Zheng 51659eb06e Regenerate projects 2021-02-09 11:45:06 -08:00
Yash Tibrewal f4e55b85bc Replace disrespectful term 2021-02-08 15:29:53 -08:00
Yash Tibrewal 7a5288d2a0 Replace disrespectful words 2021-02-08 14:29:18 -08:00
Stanley Cheung 769689ec89 Re-generate Ruby protos 2021-02-01 14:15:07 -08:00
Stanley Cheung fe2e96f9f3 Regenerate projects 2021-01-06 19:52:32 -08:00
apolcyn c95ed7a477
Merge pull request #24962 from qnighy/ruby-extension-implicit-declaration
Fix implicit decalaration in rb_event_thread.c
2021-01-06 15:07:18 -08:00
Chuan Ren 06cc42eb85 Add support of implicit and explicit flows for external account creds 2021-01-05 13:20:42 -08:00
Stanley Cheung 09e4bce53e Review comment fixes: need synchronization 2020-12-22 02:25:48 +00:00
Stanley Cheung d04f80a156 review comment fixes 2020-12-22 01:20:12 +00:00
Stanley Cheung e4ebd44cd6 Ruby: add support to circuit_breaking xds interop test case 2020-12-22 01:20:12 +00:00
Yash Tibrewal 4105d2ce20 XdsServerBuilder, config fetching per resolved address and delaying bind/listen till fetch is complete 2020-12-16 12:15:52 -08:00
Masaki Hara 73fac77b3f Fix implicit decalaration in rb_event_thread.c 2020-12-11 11:33:28 +09:00
Jan Tattermusch a35cd4f89d build protoc artifacts with cmake 2020-12-09 11:54:44 +01:00
Yash Tibrewal a6d9e49f27
Merge pull request #24843 from yashykt/insecureservercreds
Experimental API for xDS server credentials
2020-12-03 03:05:34 -08:00
Stanley Cheung 6c142d76de Re-generate protos for Ruby 2020-12-02 11:08:14 -08:00
Yash Tibrewal 096b2324e1 Experimental API for XdsServerCredentials 2020-12-01 12:47:52 -08:00
Esun Kim ac080fd17a Fix readability-inconsistent-declaration-parameter-name manually 2020-11-30 14:22:40 -08:00
ZhenLian d74e43da95 Add File Watcher Certificate Provider API 2020-11-19 13:36:13 -08:00
yulin-liang 2ffa791ae6 Regenerate projects 2020-11-17 13:10:08 -08:00
ZhenLian 518ed1303c Add Credential Loading From Static Providers For TLS Credentials 2020-10-22 13:55:31 -07:00
Esun Kim 4f26aecea4 Bump MACOSX_DEPLOYMENT_TARGET to 10.10 for Ruby 2020-10-19 14:15:09 -07:00
Donna Dionne aafe657978 Bump version to v1.34.x: regenerate projects 2020-10-07 12:51:27 -07:00
yang-g bf83c577e1 generate projects 2020-10-06 16:48:41 -07:00
Yash Tibrewal 48ec53971a gRPC Core API to create Xds channel credentials 2020-10-05 14:52:08 -07:00
Yash Tibrewal 139895d2c8
Merge pull request #23894 from yashykt/removegrpcchannelping
Remove grpc_channel_ping from surface API
2020-09-08 11:33:29 -07:00
Mark D. Roth 30e4170dc3 Update version of master to 1.33-dev ("geeky"). 2020-08-28 09:20:30 -07:00
Yash Tibrewal 4a03ce5a14 Remove grpc_channel_ping from surface API 2020-08-20 17:07:04 -07:00
Stanley Cheung 7c794b9700 Review fixes 2020-08-17 18:45:32 +00:00
Stanley Cheung cbe0f31e08 Update XDS interop tests for PHP and Ruby 2020-08-17 18:45:32 +00:00
Stanley Cheung f873ad04a0
Merge pull request #23765 from HannahShiSFB/issue23672
Ruby: use absolute module name for request/response namespaces
2020-08-14 11:26:14 -07:00
Hannah Shi 09a3424c70 generate proto ruby 2020-08-14 08:22:45 +00:00
Alexander Polcyn cd13d5ab88 Copy channel args hash before appending ruby user agent 2020-08-13 12:51:45 -07:00
Hannah Shi 0765a1c70a change test case to absolute package name 2020-08-12 05:36:00 +00:00
Hannah Shi c8986bc73e use absolute package name, add test cases 2020-08-11 22:52:01 +00:00
Yash Tibrewal d35c1c13cd
Merge pull request #23636 from yashykt/settingsdeadline
Receive SETTINGS frame on clients before declaring subchannel READY
2020-08-03 14:04:02 -07:00
Yash Tibrewal e310d4366c Receive SETTINGS frame on clients before declaring subchannel READY 2020-07-31 02:01:40 -07:00
apolcyn 4e7ec48b0e
Merge pull request #23670 from apolcyn/fix_segv
Fix ruby segfault on nil optional creds params
2020-07-29 18:31:04 -07:00
Alexander Polcyn a12cf6996b Fix ruby segfault on nil optional creds params 2020-07-29 15:26:08 -07:00
Alexander Polcyn 9b4ef62cb9 Split up run_ruby_end2end_tests.sh into more granular test targets 2020-07-27 15:07:23 -07:00
apolcyn 3d4d992470
Merge pull request #23619 from apolcyn/fix_ruby_call_cred_timeout_test
Remove an invalid assumption from ruby call creds timeout test
2020-07-27 15:04:35 -07:00
Alexander Polcyn cba97021a9 Remove an invalid assumption from ruby call creds timeout test 2020-07-27 10:42:13 -07:00
Alexander Polcyn 59da17dd7d Fix parent/child process synchronization in two ruby tests 2020-07-26 23:10:18 -07:00
Jan Tattermusch aa0193db42
Merge pull request #23576 from jtattermusch/bump_master_1_32
update master version to 1.32.0-dev
2020-07-23 07:48:24 +02:00
Richard Belleville 089d90933a
Merge pull request #23203 from gnossen/python_google_default_creds
Implement compute_engine_channel_credentials in Python
2020-07-22 13:14:54 -07:00
Jan Tattermusch 80daba44d9 regenerate projects 2020-07-22 17:38:48 +02:00
Alexander Polcyn d88b77aaab Add logs to a flakey ruby test that can help to diagnose issue 2020-07-21 12:11:35 -07:00
Stanley Cheung 0f34ccbfa8 Fix ruby protoc plugin when message is in another package 2020-07-16 14:02:05 -07:00
Richard Belleville 0ef84e4306 Regenerate projects 2020-07-13 19:36:54 +00:00
Richard Belleville 56ed8f3be4 Merge remote-tracking branch 'origin/master' into python_google_default_creds 2020-07-10 01:09:58 +00:00
miyucy f9111b2a82
Fix ruby 2.7 keyword arguments deprecation
Similar to https://github.com/grpc/grpc/pull/22915
2020-07-08 15:06:51 +09:00
Richard Belleville c8a8a6aea4 Get new core API design building 2020-07-07 00:18:42 +00:00
apolcyn 4cacc60651
Merge pull request #23333 from apolcyn/bad_md_drops_call_creds_thread
Make sure call creds user callbacks can't kill the ruby call credentials thread
2020-07-05 23:22:54 -07:00
Esun Kim 34027f60fc Refactored AR in makefile 2020-06-29 22:51:31 -07:00
Alexander Polcyn 9e8f671cee Update license date; fix format and typo 2020-06-26 23:00:31 -07:00
Alexander Polcyn 95387716dc Make sure call creds user callbacks can't kill the ruby call credentials thread 2020-06-26 18:29:22 -07:00
apolcyn 56c04ddaed
Merge pull request #19756 from apolcyn/fix_ruby_md
Fix auth plugin context use-after-free in ruby
2020-06-26 17:54:50 -07:00
Alexander Polcyn b88c0a22c7 Fix use-after-free in ruby call creds 2020-06-26 13:26:54 -07:00
Alexander Polcyn 1df2cb3760 Dump details around ruby call creds user callback invocation when debug logs are enabled 2020-06-26 11:26:55 -07:00
Richard Belleville 4de06d0e22 Regenerate projects 2020-06-26 02:18:16 +00:00
Richard Belleville 1aae547e2c Regenerate projects 2020-06-25 04:48:28 +00:00
Patrice Chalin 4c4933e056 Docs: fix links to quick start pages 2020-06-16 08:40:59 -04:00
Srini Polavarapu 057091fe1f Regenerate projects 2020-06-05 13:54:32 -07:00
Stanley Cheung 88be358e0d Set timeout on PHP/Ruby xDS test 2020-06-05 01:52:51 +00:00
Stanley Cheung 503e2f8766 Fix format 2020-06-04 20:44:17 +00:00
Stanley Cheung bd061ecf47 Add debug info to xds test 2020-06-04 13:14:25 -07:00
Stanley Cheung 5b5c5f4478 Ruby xDS interop client 2020-05-19 11:19:02 -07:00
apolcyn fed09cbe2c
Merge pull request #20417 from casperisfine/ruby-27-frozen-strings
Fix Ruby 2.7 compatibility in GenericService.underscore
2020-05-14 16:32:28 -07:00
Alexander Polcyn 90f13f08f0 plumb recv_stats_op error_string field up to the ruby surface 2020-05-12 18:23:22 -07:00
apolcyn 6640651bcf
Merge pull request #20867 from yoshimaru46/fix-to-use-immutable-string-literal
Fix to use immutable string literal
2020-05-12 13:24:17 -07:00
apolcyn e63fa5fdf0
Merge pull request #22734 from south37/fix-yard-annotation-of-client-interceptor
Fix YARD annotation of GRPC::ClientInterceptor
2020-05-12 11:44:47 -07:00
Jason Meller 3e17411774
Covert hash to keyword arguments for ruby 2.7
Ruby 2.7 deprecated passing a hash as the last argument for a method that takes keyword params. This commit coverts the hash explicitly to keyword args using the double splat.


```
grpc-1.28.0-universal-darwin/src/ruby/lib/grpc/generic/service.rb:170: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
```
2020-05-10 17:15:30 -04:00
apolcyn 4046ee6367
Merge pull request #22594 from Oshiumi/fix-nested-message-output-generation
Fix generating method output with nested resource
2020-05-08 13:34:30 -07:00
Nicolas "Pixel" Noble 791729d09f Bumping version. 2020-04-30 08:12:29 +02:00
Jean Boussier d6bebcd248 Fix Ruby 2.7 compatibility in GenericService.underscore 2020-04-27 12:38:46 +02:00
Nao Minami c76ad73712 Fix yard annotation of ClientInterceptor 2020-04-22 18:50:48 +09:00
Jan Tattermusch 6ffa02a389 do not eat errors when generating protos 2020-04-18 18:43:55 +02:00
Jan Tattermusch 0432f7f6ca use bazel-built protoc and plugin for generate_proto_*.sh scripts
modify scripts
2020-04-17 13:13:36 +02:00
Jan Tattermusch 555804bb94 regenerate ruby protos 2020-04-17 13:13:36 +02:00
Oshiumi fc70267f0e Fix generating output with nested resource 2020-04-07 01:51:59 +09:00
jiangtaoli2016 951abee174 Revert "Append old ca.pem"
This reverts commit 13c6b6c612.
2020-03-20 16:49:15 -07:00
jiangtaoli2016 13c6b6c612 Append old ca.pem 2020-03-20 14:48:02 -07:00
jiangtaoli2016 2620763fdd Update test creds for php, python, ruby 2020-03-18 16:48:22 -07:00
Richard Belleville 5ef379870d Regenerate projects 2020-02-26 10:39:34 -08:00
Alexander Polcyn 1197454f5a Regenerate projects 2020-01-17 15:36:25 -08:00
Jan Tattermusch d53663750c regenerate ruby protobufs 2020-01-15 04:43:59 -05:00
Yihua Zhang c8c284ed3a merge with upstream/master 2020-01-07 15:33:26 -08:00
Yihua Zhang e10d90ba27 add security level negotiation between call creds and channel. 2020-01-06 11:40:27 -08:00
Akshay Kumar 3eadaa1aa8 FullChainExperimental-01-200106-rb 2020-01-06 11:19:40 -08:00
Richard Belleville 6feae07504 Regenerate projects 2019-12-03 15:08:50 -08:00
Esun Kim 81df105ac8 Deprecate gpr_get/set_allocation_functions 2019-11-04 19:47:33 -08:00
Yoshihiro Saito 4ba9b6d44e Fix to use immutable string literal 2019-10-30 15:47:38 +09:00
Yash Tibrewal 07ef24344c Regenerate projects 2019-10-24 11:54:20 -07:00
Esun Kim a67213158c Use -static-libstdc++ for ruby.linux 2019-10-04 15:56:47 -07:00
tanjunchen 64cdea5a07 fix some spelling mistakes in document 2019-10-04 09:07:35 +08:00
chentanjun 05b3eeff77 fix-up some spelling mistakes 2019-09-25 23:29:47 +08:00
Esun Kim cf444b9cab Regenerate projects 2019-09-10 14:08:50 -07:00
Esun Kim 49b9fb2b3c Enable C++ standard library 2019-09-03 09:27:54 -07:00
apolcyn 79fc2e5c56
Merge pull request #19939 from blowmage/ruby-struct-status-rb
Define Struct::Status in Ruby
2019-08-15 23:48:21 -07:00
Mike Moore 0f8dced6c4
Define Struct::Status in Ruby
Update error end2end test for loading when calling to_status.
Update error end2end test for loading when calling to_rpc_status.
2019-08-15 17:34:51 -06:00
apolcyn 4a1ef56a54
Merge pull request #19940 from jbolinger/fix-rubyname-gen
Allow Ruby style (::) package names in Ruby codegen
2019-08-15 13:53:25 -07:00
Joe Bolinger f463965084 Allow :: in ruby_package 2019-08-15 09:45:47 -07:00
apolcyn 460ccabf27
Merge pull request #19893 from blowmage/ruby-load-errors-early
Allow loading grpc/errors.rb before grpc.rb
2019-08-13 11:54:18 -07:00
Mike Moore b132c34c61
Allow loading grpc/errors before grpc 2019-08-13 10:36:07 -06:00
Yihua Zhang ae863630d5 Add spiffe client-side credential reload 2019-08-12 14:12:13 -07:00
Esun Kim f88bd06ee5 Go UPB! 2019-08-06 15:27:14 -07:00
Karthik Ravi Shankar fcb43f9dee Regenerate projects 2019-08-01 17:34:02 -07:00
apolcyn 8b71bd082e
Merge pull request #19585 from michaelherold/dont-require-relative-for-absolute-path
Don't require_relative for an absolute path
2019-07-17 09:58:54 -07:00
apolcyn 8cd016f597
Merge pull request #18913 from sat0yu/sat0yu/fix-typo
Fix a typo in the GRPC::RpcServer constructor description
2019-07-15 00:15:43 -07:00
Michael Herold 957fc7bab7
Don't require_relative for an absolute path
Ruby's `require_relative` method currently converts paths to absolute
paths. This idiosyncrasy means that the implementation of the require
for the distributed shared library works, however the semantics do not
mesh with the semantics of `require_relative`.

This is an issue when you redefine `require_relative` and follow the
semantics of the method, as [derailed_benchmarks does][1]. This means
that any project that uses `grpc` also cannot use that project (which
I will also be patching).

In the event that a new version of Ruby follows the semantics of the
method (whether or not that is likely), this will break as well.

By switching to `require` here instead of `require_relative`, we
maintain the functionality but do not use a semantically incompatible
method to do so.

[1]: 1b0c425720/lib/derailed_benchmarks/core_ext/kernel_require.rb (L24-L27)
2019-07-08 16:15:27 -05:00
Julien Boeuf 189c2c8c30 Adding support for STS Token Exchange Creds in core:
- IETF specification is available here:
https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16
2019-06-26 12:48:05 -07:00
Esun Kim cd27a36924 Regenerate projects 2019-06-18 15:40:50 -07:00
Yihua Zhang a887f35a9b add a new struct - grpc_ssl_verify_peer_options and an API - grpc_ssl_credentials_create_ex. 2019-05-30 16:00:50 -07:00
Vijay Pai 64528cdf4d
Merge pull request #18915 from MrMage/patch-1
Add `void` arguments to two function declarations.
2019-05-13 22:49:39 -07:00
Srini Polavarapu 6bc2ff1b5f Regenerate projects 2019-05-10 10:38:59 -07:00
Vijay Pai cb8c4afdea Resolve consistency checks 2019-05-09 15:21:42 +02:00
Alex Polcyn b0db0f3fb4 Lazily load protobuf from the grpc ruby errors module 2019-05-06 20:57:28 +00:00
Yusuke Sato 7d55a8a904 Fix a typo in the GRPC::RpcServer constructor description 2019-04-30 15:25:05 +09:00
apolcyn cdbab7bd72
Merge pull request #18752 from blowmage/bad_status-to_rpc_status
[Ruby]  Add BadStatus#to_rpc_status
2019-04-26 18:16:33 -07:00