Commit Graph

370 Commits

Author SHA1 Message Date
Doug Fawley c285fc70e0
cmd/protoc-gen-go-grpc: update version for release (#5070) 2021-12-20 15:40:38 -08:00
Easwar Swaminathan 50f82701b5
rls: control channel implementation (#5046) 2021-12-15 09:37:05 -08:00
Ashitha Santhosh 5d90b32d9d
authz: fix regex expression match (#5035)
* Fixes regex expression matching.

* Adds tests

* Updates FulMatchWithRegex and regex string for presence match.

* Add tests for FullMatchWithRegex

* Update regex to allow whitespace characters
2021-12-09 15:37:33 -08:00
Zach Reyes fd4e3bdc3a
xds: Added env var for RLS in xDS (#5050)
* xds: Added env var for RLS in xDS
2021-12-09 03:28:58 -05:00
Menghan Li 40916aa021
transport: better error message when per-RPC creds fail (#5033) 2021-12-08 10:05:59 -08:00
Evan Jones ccc060cb43
grpclog.DepthLoggerV2: Correct comment: formats like fmt.Println (#5038) 2021-12-07 13:58:17 -08:00
apolcyn a722e6aaba
xds/c2p: replace C2P resolver env var with experimental scheme suffix (#5044) 2021-12-07 10:51:24 -08:00
Easwar Swaminathan f5dc086d13
internal/balancergroup: eliminate race in exitIdle (#5012)
incomingMu needs to be taken before accessing scToSubBalancer map as part of exitIdle
2021-12-07 10:04:31 -08:00
Easwar Swaminathan 58beff180d
balancergroup: add method to exitIdle a sub-balancer (#4994)
This is required for the RLS LB policy. At pick time, if the RLS picker
finds one of its child policies in IDLE, it needs to be able to ask it
to exit idle.
2021-11-29 14:28:18 -08:00
Easwar Swaminathan f45e617974
rls: move pb.gos to grpc/internal/proto/grpc_lookup_v1 (#4993) 2021-11-18 16:51:41 -08:00
Menghan Li 295d7e66be
internal: move leakcheck to t.Cleanup (#4989) 2021-11-17 12:06:04 -08:00
Doug Fawley d61c7ae86d
internal: merge xds/envconfig into env package (#4923) 2021-11-10 17:05:08 -08:00
Zach Reyes 6603e730b5
xds: Added validation and construction of RBAC matcher engine to ParseConfig (#4964)
* xds: Added validation and construction of RBAC matcher engine to ParseConfig
2021-11-09 19:21:32 -05:00
Doug Fawley c25a52b769
config: remove retry disable via environment variable (#4922) 2021-11-09 13:06:38 -08:00
Easwar Swaminathan 714ba8d517
xds: move balancergroup and weightedtarget our of xds directory (#4966) 2021-11-09 11:59:10 -08:00
Ryan Leung 14ebd917f2
lint: fix some unused parameter issues (#4956) 2021-11-09 11:18:21 -08:00
Anirudh Ramachandra bac0a7e47f
transport: pass handshake info with attributes to custom dialers (#4938) 2021-11-08 14:57:42 -08:00
Menghan Li 82c2825168
xds/federation: support new bootstrap fields and protect them by an env var (#4936) 2021-11-08 14:18:52 -08:00
Uddeshya Singh 670c133e56
transport/http2_server : Move up streamID validation in operate headers (#4873) 2021-11-02 11:06:24 -07:00
Easwar Swaminathan 1163cfabe9
xds: move LocalTCPListener to internal/testutils (#4920) 2021-11-01 14:32:55 -07:00
Easwar Swaminathan 6d465fe912
grpclb: move restartableListener to testutils (#4919) 2021-11-01 11:04:24 -07:00
Zach Reyes 2d7bdf2d23
xds: Set RBAC on by default (#4909) 2021-10-29 13:17:49 -04:00
Zach Reyes d47437c91e
xds: Fix invert functionality for header matcher (#4902)
* Fix invert functionality for header matcher
2021-10-28 12:16:33 -04:00
Doug Fawley f1d87c14c2
client: properly disable retry if GRPC_GO_RETRY=off (#4899) 2021-10-26 10:33:08 -07:00
Ashitha Santhosh 4f21cde702
authz: support empty principals and fix rbac authenticated matcher (#4883)
* authz: support empty principals in SDK and fixes to rbac authenticated
matcher.

* Minor formatting

* Remove pointer from principals fields

* resolving comments
2021-10-21 15:39:02 -07:00
Zach Reyes 4757d0249e
xds: Make regex matchers match on full string, not just partial match (#4875)
* xds: Make regex matchers match on full string, not just partial match
2021-10-15 16:14:49 -04:00
Doug Fawley 36d87572db
attributes: add Equal method; resolver: add AddressMap and State.BalancerAttributes (#4855) 2021-10-15 10:39:56 -07:00
Easwar Swaminathan aaff9e7ab9
grpc: better RFC 3986 compliant target parsing (#4817) 2021-10-14 14:54:02 -07:00
Zach Reyes 03ca7b7d00
Added logs to rbac (#4853)
Added logs to rbac
2021-10-07 22:46:49 -04:00
Zach Reyes d16cfedb5f
Rename env var (#4849)
Rename env var
2021-10-06 19:26:22 -04:00
Doug Fawley f068a13ef0
server: add missing conn.Close if the connection dies before reading the HTTP/2 preface (#4837) 2021-10-04 11:22:00 -07:00
Zach Reyes 34df1b42ae
xds: Small RBAC Changes defined in A41 (#4818)
* xds: Small RBAC Changes defined in A41
2021-09-28 15:27:00 -04:00
Doug Fawley 75f1d4b986
transport: call stats handler for trailers before closeStream (#4816) 2021-09-28 12:20:57 -07:00
Zach Reyes 4555155af2
xds: Small changes at xDS RBAC Layer (#4815)
* xds: Small changes at xDS RBAC Layer
2021-09-27 17:36:16 -04:00
Zach Reyes 689f7b154e
transport: logic specified in A41 to support RBAC xDS HTTP Filter (#4803)
* transport: logic specified in A41 to support RBAC xDS HTTP Filter
2021-09-27 16:55:46 -04:00
Doug Fawley 11437f66f2
test: add option to make httpServer wait for END_STREAM; fix RetryStats race (#4811) 2021-09-24 15:29:25 -07:00
Easwar Swaminathan 78d3aa8b3e
grpc: cleanup parse target and authority tests (#4787) 2021-09-23 07:43:14 -07:00
Zach Reyes 458ea7640a
xds: Added validations for HCM to support xDS RBAC Filter (#4786)
* xds: Added validations for HCM to support xDS RBAC Filter
2021-09-22 15:08:44 -04:00
Yury Frolov 1f12bf4428
transport: fix a typo in http2_server.go (#4745) 2021-09-22 11:04:45 -07:00
Zach Reyes 606403ded2
transport: fix log spam from Server Authentication Handshake errors (#4798)
* transport: fix log spam from Server Authentication Handshake errors
2021-09-21 19:33:18 -04:00
Doug Fawley 4ddf8ceaa7
Revert "transport/server: add :method POST to incoming metadata (#4770)" (#4790)
This reverts commit c84a5de064.
2021-09-21 10:55:00 -07:00
Doug Fawley d53469981f
transport: fix transparent retries when per-RPC credentials are in use (#4785) 2021-09-21 10:39:59 -07:00
Menghan Li 5417cf8091
xds/test: delete use of removed types (#4784)
They were deprecated, and removed later.
2021-09-20 13:27:27 -07:00
Zach Reyes e469f0d5f5
xds: Add env var protection for RBAC HTTP Filter (#4765)
* xds: Add env var protection for RBAC HTTP Filter
2021-09-17 01:01:07 -04:00
Menghan Li 567da6b863
tlogger: print log type (#4774)
Error logs cause tests to fail. This makes it easier (possible) to find
the error log
2021-09-16 13:38:35 -07:00
Menghan Li 03b2ebe508
xds: enable ringhash and retry by default (#4776) 2021-09-16 11:07:04 -07:00
Zach Reyes c84a5de064
transport/server: add :method POST to incoming metadata (#4770)
* transport/server: add :method POST to incoming metadata
2021-09-15 17:02:08 -04:00
Easwar Swaminathan 43e8fd4f69
xds: don't remove env var protection for security on the client yet (#4752)
Set the value to true by default, and remove it one release later.
2021-09-10 10:59:25 -07:00
Doug Fawley a6a63177ae
xds: add retry support (#4738) 2021-09-08 10:00:44 -07:00
Easwar Swaminathan 00a7dc8901
xds: remove env var protection for security on client (#4735) 2021-09-07 10:28:56 -07:00