Commit Graph

3422 Commits

Author SHA1 Message Date
Doug Fawley 44d73dff99
cmd/protoc-gen-go-grpc: rework service registration (#3828) 2020-08-25 09:28:01 -07:00
Menghan Li 410880dd7d
eds: fix priority timeout failure when EDS removes all priorities (#3830)
Without this fix, when the EDS response removes all priorities, after the timeout, the priority check panics because priority is unset.
2020-08-24 11:09:31 -07:00
Garrett Gutierrez 0e72e09474
server: prevent hang in Go HTTP transport in some error cases (#3833) 2020-08-21 18:04:04 -07:00
Garrett Gutierrez b9bc8e75a6
End stream flag bugfix (#3803) 2020-08-21 14:22:17 -07:00
Easwar Swaminathan e14f1c23f6
certprovider: API update to include certificate name. (#3797) 2020-08-21 13:59:11 -07:00
Easwar Swaminathan 6c0171fad0
rls: Update rls protos and code/test to reflect those changes. (#3832) 2020-08-21 10:41:53 -07:00
Doug Fawley d16bb4c338
transport: use escaped string instead of int->string conversion (#3831) 2020-08-20 12:50:29 -07:00
ZhenLian f640ae6a4f
security/authorization: util function for converting CEL expression string (#3822)
* security/authorization: add the util function to compile string cel expr
2020-08-19 12:01:00 -07:00
Easwar Swaminathan 0f73133e3a
xds: Export a WatchListener() method on the xdsClient. (#3817) 2020-08-18 15:40:27 -07:00
Easwar Swaminathan a3740e5ed3
grpc: Bump up support package version. (#3818)
This was missed out in https://github.com/grpc/grpc-go/pull/3816.
2020-08-14 13:07:10 -07:00
Easwar Swaminathan f30caa90ad
server: Add ServiceRegistrar interface. (#3816) 2020-08-14 10:26:20 -07:00
Menghan Li 1dbe29f669
examples: update grpc version (#3813) 2020-08-13 14:26:49 -07:00
Easwar Swaminathan 6768e33c1f
xds: Fix TestV2ClientBackoffAfterRecvError (#3815)
The failure seems to have been because of the following:
* After the stream failure, and after the backoff, the client tries to
  register all its existing watches. And there seems to have been a race
  between the re-register and the client close. Hence a log message was
  getting printing saying "send failed because of EOF".

I've fixed this by making sure that the test waits for the xDS request
corresponding to the re-registered watch. I've also tried running it a
1000 times without a failure.
2020-08-13 12:40:42 -07:00
Easwar Swaminathan 9310253e11
meshca: Pull in the MeshCA service proto from istio repo. (#3814) 2020-08-13 12:27:18 -07:00
Menghan Li 1605756d15
xds: add LRS balancing policy (#3799) 2020-08-13 11:47:23 -07:00
Easwar Swaminathan 0baf4c2d4c
meshca: Pull in the MeshCA config proto from grpc-proto repo. (#3807) 2020-08-13 08:58:51 -07:00
Yi-Shu Tai 7d8921505e
internal/wrr: introduce order offset to edf scheduler as a tiebreaker for entries with same deadline (#3800) 2020-08-12 11:47:16 -07:00
Easwar Swaminathan b54ea173dc
xds: Support xDS v3 transport protocol. (#3778) 2020-08-11 17:09:24 -07:00
Easwar Swaminathan 6aaac03d17
internal/serviceconfig: Fix typo and improve docs. (#3802) 2020-08-11 06:57:51 -07:00
Easwar Swaminathan 2983360ff4
Fix interop tests which rely on the old certs/keys. (#3804) 2020-08-10 15:53:34 -07:00
cindyxue 244f9ece7c
credentials: Migrate helper functions to /internal/credentials for future cleanup (#3780)
* credentials: migrate functions in credentials/internal to internal/credentials to be used for other modules
2020-08-10 11:52:32 -07:00
Elizabeth Zou d3e3e7a46f
security/authorization: Added CEL-based authorization engine (#3707)
* Add CEL-based authorization engine in a new module under security/authorization
2020-08-07 09:49:45 -07:00
Easwar Swaminathan 7419b444ee
xds: Improve TestClientWrapperWatchEDS. (#3783)
* One subtest should not depend on a previous one. So, refactored the test to be a single one, instead of having multiple subtests.
* Added a channel on the fake server to notify when it receives a connection. This test was sometimes failing because it went ahead and sent EDS requests and expected responses, before the connection to the fake server was up.
2020-08-06 15:36:15 -07:00
Menghan Li 8beeedb8b1
internal: clean up all usages of grpclog, and replace with component (#3719) 2020-08-06 13:19:17 -07:00
Easwar Swaminathan a5514c9e50
grpc: Minor refactor in server code. (#3779) 2020-08-06 13:10:09 -07:00
cindyxue b830b5f361
advancedtls: fixed SNI testing and put SNI functions back in advancedtls.go (#3774)
* Fixed sni unit test
2020-08-06 11:10:47 -07:00
cindyxue 446b4dba54
advancedtls: add spiffe support in aTLS (#3777)
* Add SPIFFE ID in TLSInfo
2020-08-06 10:40:31 -07:00
Easwar Swaminathan b2f0b7930d
xds: Pass WatchExpiryTimeout to Client via Options. (#3784)
Tests can pass a different value when necessary. This avoids overriding a global variable from tests, leading to unnecessary races.
2020-08-05 14:37:15 -07:00
Easwar Swaminathan fd393c8989
testdata: Update testdata certs. (#3786)
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new  files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -07:00
Easwar Swaminathan 94d8df7536
xds: Avoid mutex copy in log statement. (#3788) 2020-08-05 08:54:38 -07:00
Easwar Swaminathan 5f7b337d95
Add some appengine build constraints. (#3787)
Support for Go1.9 and appengine was removed in https://github.com/grpc/grpc-go/pull/3767. But it looks like we still need some way to do things differently for certain appengine builds.
2020-08-04 17:46:48 -07:00
Doug Fawley 8bec2f5d89
Re-add Go1.11 support (#3776) 2020-07-31 11:00:10 -07:00
Doug Fawley bc714cd8ae
Remove Go 1.9 / AppEngine support; assume go1.12 build tag (#3767) 2020-07-30 16:15:35 -07:00
cindyxue b72d07f816
advancedtls: migrate testing to grpctest (#3773)
advancedtls: migrate tests to use grpctest
2020-07-30 13:48:30 -07:00
Achyuta Das b2e49701d9
examples: break from 'PerRPCCredsCallOption' status checking loop (#3772)
If *grpc.PerRPCCredsCallOption is not found in the option array then change credentialConfigStatus to true and break from the loop. No need to iterate further.
2020-07-30 13:43:56 -07:00
Hiroyuki Tanaka f92f534396
README: change badge to pkg.go.dev (#3768) 2020-07-30 13:39:09 -07:00
Easwar Swaminathan 97c30a1419
xds: Client refactor in preparation for xDS v3 support (#3743) 2020-07-30 10:27:09 -07:00
Menghan Li d6c4e49aab
internal: delete mock from examples (#3766) 2020-07-29 13:03:27 -07:00
Doug Fawley 1c32b02682
typo: upate->update (#3765) 2020-07-28 12:49:56 -07:00
Eric Gribkoff 0e6096e9a1
interop: update --fail_on_failed_rpc to wait for initial success (#3763) 2020-07-28 11:43:27 -07:00
Menghan Li 067255ffae
xds testing: add path_matching and header_matching (#3764) 2020-07-28 10:33:47 -07:00
cindyxue dfc0c05b2d
advancedtls: Add SNI logic to ServerOptions.GetCertificate (#3697)
* Add SNI support in the user-provided GetCertificate callback
2020-07-27 23:50:43 -07:00
Menghan Li 8b7764bddb
xds interop: update interop client to support new tests (#3737) 2020-07-27 18:27:21 -07:00
Menghan Li 7408372e0e
xdsrouting: remove env variable for routing (#3754) 2020-07-27 13:55:02 -07:00
Menghan Li 9106c3fff5
Change version to 1.32.0-dev (#3757) 2020-07-23 11:26:53 -07:00
Garrett Gutierrez cee815dbe3
Added support for proto3 field presence (#3752) 2020-07-23 09:01:20 -07:00
Menghan Li a1ace9105a
xdsrouting: resolver to generate service config with routes, and pick routing balancer (#3751) 2020-07-22 14:36:22 -07:00
Garrett Gutierrez a5a36bd3f0
client: set auth header to localhost for unix target (#3730) 2020-07-21 14:07:03 -07:00
Menghan Li 5f0e72845e
xdsrouting: balancer implementation (#3746) 2020-07-21 11:55:49 -07:00
Menghan Li ca3959a1b2
xdsrouting: handle route fields in xds_client (#3747) 2020-07-20 14:04:46 -07:00