Commit Graph

4711 Commits

Author SHA1 Message Date
Ikko Eltociear Ashimine 89790ea90c
grpclb: fix typo (#6356) 2023-06-08 00:02:21 -04:00
Matthew Stevenson 907bdaa1eb
alts: Read max number of concurrent ALTS handshakes from environment variable. (#6267)
* Read max number of concurrent ALTS handshakes from environment variable.

* Refactor to use new envconfig file.

* Remove impossible if condition in acquire().

* Use weighted semaphore.

* Add e2e test for concurrent ALTS handshakes.

* Separate into client and server semaphores.

* Use TryAcquire instead of Acquire.

* Attempt to fix go.sum error.

* Run go mod tidy compat=1.17.

* Update go.mod for examples subdirectory.

* Run go mod tidy -compat=1.17 on examples subdirectory.

* Update go.mod in subdirectories.

* Update go.mod in security/advancedtls/examples.

* Missed another go.mod update.

* Do not upgrade glog because it requires Golang 1.19.

* Fix glog version in examples/go.sum.

* More glog cleanup.

* Fix glog issue in gcp/observability/go.sum.

* Move ALTS env var into envconfig.go.

* Fix go.mod files.

* Revert go.sum files.

* Revert interop/observability/go.mod change.

* Run go mod tidy -compat=1.17 on examples/.

* Run gofmt.

* Add comment describing test init function.
2023-06-07 18:54:06 -07:00
Doug Fawley 2ac1aaedb8
weightedroundrobin: prefer application_utilization to cpu_utilization (#6358) 2023-06-07 13:49:09 -07:00
Doug Fawley 7aeea8f496
orca: add application utilization and range checking (#6357) 2023-06-07 13:31:08 -07:00
Doug Fawley 6578ef7224
client: handle empty address lists correctly in addrConn.updateAddrs (#6354) 2023-06-07 08:37:11 -07:00
Doug Fawley 761c084e5a
xds/ringhash: cache connectivity state of subchannels inside picker (#6351) 2023-06-06 17:09:22 -07:00
Sergey Matyukevich 1b6666374d
benchmark: Add sleepBetweenRPCs and connections parameters (#6299) 2023-06-06 17:09:16 -04:00
Doug Fawley 81c513a49c
opencensus: stop overwriting ctx parameter in tests (#6350) 2023-06-06 10:37:24 -07:00
Anirudh Ramachandra 68576b3c42
client: encode the authority by default (#6318) 2023-06-06 08:36:01 -07:00
Chris Smith c9d3ea5673
deps: google.golang.org/genproto to latest in all modules (#6319) 2023-06-02 10:38:02 -07:00
Doug Fawley 02188e6437
Change version to 1.57.0-dev (#6346) 2023-06-02 10:25:54 -07:00
erm-g 8edfa1a17b
authz: End2End test for AuditLogger (#6304)
* Draft of e2e test

* No Audit, Audit on Allow and Deny

* Audit on Allow, Audit on Deny

* fix typo

* SPIFFE related testing

* SPIFFE Id validation and certs creation script

* Address PR comments

* Wrap tests using grpctest.Tester

* Address PR comments

* Change package name to authz_test to fit other end2end tests

* Add licence header, remove SPIFFE slice

* Licence year change

* Address PR comments part 1

* Address PR comments part 2

* Address PR comments part 3

* Address PR comments final part

* Drop newline for a brace

* Address PR comments, fix outdated function comment

* Address PR comments

* Fix typo

* Remove unused var

* Address PR comment, change most test error handling to Errorf

* Address PR comments
2023-06-01 19:32:33 -04:00
Doug Fawley 2b1d70be02
xds: enable RLS in xDS by default (#6343) 2023-06-01 15:31:27 -07:00
Xuan Wang 47f8ed8172
interop: Don't fail target if sub-target already failed (#6332) 2023-05-31 17:46:03 -07:00
Doug Fawley 1f23f6c2e0
client: fix Connect to handle channel idleness properly (#6331) 2023-05-31 10:23:01 -07:00
Doug Fawley 3ea58ce432
client: disable channel idleness by default (#6328) 2023-05-30 16:33:59 -07:00
Doug Fawley 6c2529bca8
xds: support pick_first custom load balancing policy (A62) (#6314) 2023-05-30 09:52:23 -07:00
Zach Reyes 9b9b364f69
internal/envconfig: Set Custom LB Env Var to true by default (#6317) 2023-05-25 19:54:17 -04:00
Matthew Stevenson e325737cac
alts: Fix flaky ALTS TestFullHandshake test. (#6300)
* Fix flaky ALTS FullHandshake test.

* Fix one other flake possibility.

* fix typo in comment

* Wait for full handshake frames to arrive from peer.

* Remove runtime.GOMAXPROCS from the test.

* Only set vmOnGCP once.
2023-05-25 15:05:50 -07:00
Zach Reyes 4d3f221d1d
xds/internal/xdsclient: Add support for String Matcher Header Matcher in RDS (#6313) 2023-05-25 18:05:14 -04:00
Zach Reyes 157db1907e
stats/opencensus: Fix flaky test span (#6296) 2023-05-25 17:13:37 -04:00
Gregory Cooke f19266cca4
xds: support built-in Stdout audit logger type (#6298)
This PR adds the functionality to parse and build the known StdoutLogger that we include as an implemented AuditLogger.
2023-05-25 13:24:45 -04:00
Doug Fawley 59134c303c
client: add support for pickfirst address shuffling from gRFC A62 (#6311) 2023-05-24 10:37:54 -07:00
Easwar Swaminathan a6e1acfc44
grpc: support sticky TF in pick_first LB policy (#6306) 2023-05-23 13:39:38 -07:00
Anirudh Ramachandra 2ae10b2883
xdsclient: remove interface check related to ResourceData (#6308) 2023-05-23 12:50:47 -07:00
Doug Fawley e9799e79db
client: support a 1:1 mapping with acbws and addrConns (#6302) 2023-05-23 09:48:08 -07:00
Arvind Bright 2a266e78a0
authz: use pointer to to structpb.Struct instead of value (#6307) 2023-05-22 15:39:17 -07:00
apolcyn 511a96359f
interop: let the interop client send additional metadata, controlled by a flag (#6295) 2023-05-22 15:32:29 -07:00
Easwar Swaminathan 9b7a947cdc
grpc: support channel idleness (#6263) 2023-05-22 12:42:45 -07:00
Zach Reyes 098b2d00c5
xds/internal/balancer/outlierdetection: Switch Outlier Detection to use new duration field (#6286) 2023-05-18 14:28:53 -04:00
Doug Fawley 417d4b6895
examples: add error_handling example; move errors to error_details (#6293) 2023-05-17 14:57:56 -07:00
Gregory Cooke 390c392f84
authz: Rbac engine audit logging (#6225)
add the functionality to actually do audit logging in rbac_engine.go and associated tests for that functionality.
2023-05-17 10:21:06 -04:00
erm-g 52fef6da12
authz: Stdout logger (#6230)
* Draft of StdoutLogger

* Fitting StdoutLogger to lb patterns

* conversion from proto to json for laudit loggers

* Tests for multiple loggers and empty Options

* Added LoggerConfig impl

* Switched to grpcLogger and added a unit test comparing log with os.StdOut

* Minor fix in exception handling wording

* Added timestamp for logging statement

* Changed format to json and added custom marshalling

* Migration to log.go and additional test for a full event

* Migration of stdout logger to a separate package

* migration to grpcLogger, unit test fix

* Delete xds parsing functionality. Will be done in a separate PR

* Delete xds parsing functionality. Will be done in a separate PR

* Address PR comments (embedding interface, table test, pointer optimizations)

* vet.sh fixes

* Address PR comments

* Commit for go tidy changes

* vet.sh fix for buf usage

* Address PR comments

* Address PR comments

* Address PR comments (easwars)

* Address PR comments (luwei)

* Migrate printing to standard out from log package level func to a Logger struct func. Add timestamp testing logic. Add registry presense test.

* Changed event Timestamp format back to RFC3339

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments
2023-05-17 10:03:37 -04:00
Sergii Tkachenko 92e65c890c
test/kokoro: Add custom_lb_test to the xds_k8s_lb job (#6290) 2023-05-16 18:20:55 -04:00
Zach Reyes 756119c7de
xds/outlierdetection: forward metadata from child picker (#6287) 2023-05-16 15:46:31 -04:00
Doug Fawley 8eba9c2de1
github: upgrade to v3 of checkout & setup-go (#6280) 2023-05-15 15:49:19 -07:00
Doug Fawley 24fd252163
proto: update generated code to match grpc-proto changes (#6283) 2023-05-15 15:49:07 -07:00
Doug Fawley 4eb88d7d67
cleanup: use new Duration type in base ServiceConfig (#6284) 2023-05-15 15:48:02 -07:00
Zach Reyes 1230f0e43c
xds/internal/xdsclient: Split registry up and two separate packages (#6278) 2023-05-15 18:19:18 -04:00
Doug Fawley 0bdae48058
interop: fix interop_test.sh shutdown (#6279) 2023-05-15 14:40:35 -07:00
Doug Fawley 5dcfb37c0b
interop: hold lock on server for OOB metrics updates; share 30s timeout (#6277) 2023-05-12 14:09:59 -07:00
Zach Reyes 68381e7bd2
xds: WRR in xDS (#6272) 2023-05-12 15:28:07 -04:00
Doug Fawley fd376a5cbd
test: fix flaky TimeoutOnDeadServer test; some cleanups (#6276) 2023-05-12 11:01:06 -07:00
Doug Fawley 1db474c85c
weightedroundrobin: fix duration format in lb config (#6271) 2023-05-11 14:56:53 -04:00
Doug Fawley 523dcddf9a
weightedroundrobin: fix test race accessing timeNow (#6269) 2023-05-11 09:37:17 -07:00
Zach Reyes 1536887cc6
interop/xds: Add Custom LB needed for interop test (#6262) 2023-05-11 12:29:32 -04:00
Doug Fawley 7d6134424a
examples: fix authz example to receive streaming error properly (#6270) 2023-05-11 09:24:03 -07:00
Zach Reyes afcbdc9ace
xds/internal/xdsclient/xdslbregistry: Continue in converter if type not found (#6268) 2023-05-10 19:30:34 -04:00
Doug Fawley b3fbd87a9e
interop: add ORCA test cases and functionality (#6266) 2023-05-10 13:26:37 -07:00
Zach Reyes 5e587344ee
xds: Add support for Custom LB Policies (#6224) 2023-05-08 21:29:36 -04:00