Commit Graph

4711 Commits

Author SHA1 Message Date
Zach Reyes 10401b9289
stats/opencensus: the backend to Sent. Attempt. and Recv. (#6173) 2023-04-05 17:00:35 -04:00
Anirudh Ramachandra b0a8b1b9c1
Use string instead of enum for xds resource type (#6163) 2023-04-04 17:25:40 -07:00
Mskxn 1d5b73a103
xds: add stop to avoid hanging in TestServeWithStop (#6172) 2023-04-04 15:19:25 -07:00
Arvind Bright ea0a038347
xds/xdsclient: ignore resource deletion as per gRFC A53 (#6035) 2023-04-04 10:11:54 -07:00
Arvind Bright a51779dfbf
xdsclient/test: deflake TestTimerAndWatchStateOnSendCallback (#6169) 2023-04-03 11:54:07 -07:00
my4 e97991991c
internal/grpcsync: move CallbackSerializer from xdsclient/internal to here (#6153) 2023-03-31 10:13:33 -07:00
Zach Reyes c2899dddf5
examples/features/observability: Point o11y example to latest gcp/observability module (#6162) 2023-03-30 20:46:44 -04:00
Zach Reyes 113d75fb45
gcp/observability: Add isSampled bool to log entries (#6160) 2023-03-30 20:10:51 -04:00
Zach Reyes 4a12595692
stats/opencensus: Switch helper to return Span Context from context (#6156) 2023-03-30 15:37:05 -04:00
Zach Reyes c3f1d5e59e
gcp/observability: Set the opencensus_task label only for metrics, not tracing and logging (#6155) 2023-03-30 15:36:17 -04:00
ulas 42dd7ac9d9
Use anypb.New instead of ptypes.MarshalAny (#6074) 2023-03-29 17:04:12 -07:00
Easwar Swaminathan 415ccdf154
go.mod: update all dependencies after 1.54 branch cut (#6132) 2023-03-28 16:03:41 -07:00
Doug Fawley a357bafad1
status: FromError: return entire error message text for wrapped errors (#6150) 2023-03-27 15:36:22 -07:00
apolcyn 44cebb8ff5
xds: enable XDS federation by default (#6151) 2023-03-27 15:23:22 -07:00
Zach Reyes c018273e53
examples: Add observability example (#6149) 2023-03-23 19:57:26 -04:00
Zach Reyes 277bb6429a
Revert "credentials/alts: defer ALTS stream creation until handshake time (#6077)" (#6148)
This reverts commit c84a5005d9.
2023-03-23 19:34:27 -04:00
Zach Reyes 0fdfd40215
gcp/observability: Generate unique process identifier unconditionally (#6144) 2023-03-23 17:33:06 -04:00
Gregory Cooke 1d20f1b500
security/advancedtls: swap from deprecated pkix.CertificateList to x509.RevocationList (#6054)
Swap from deprecated pkix.CertificateList to x509.RevocationList

pkix.CertificateList is deprecated.
We have an internal wrapper around this for representing CRLs. This PR updates that wrapper to use the preferred x509.RevocationList.

This also replaces x509.ParseCRL (deprecated) with x509.ParseRevocationList. The former supported PEM input, while the latter requires DER, so I added a utility function parseRevocationList that does the PEM -> DER conversion if needed, taken from the x509.ParseCRL implementation.

The one issue here is that x509.RevocationList was introduced in golang 1.19. We are still supporting 1.18. To solve this, I've put build restrictions on crl.go and crl_test.go to only build on 1.19+. Also, I also added the files crl_deprecated.go and crl_deprecated_test.go, which are identical copies to the crl.go and crl_test.go files before this PR. They have the build restriction of <go1.19, so they will be used in the 1.18 build. This change is luckily very isolated and these are the only 2 files that needed the build restrictions.
2023-03-23 13:34:01 -04:00
Easwar Swaminathan a8a25ce994
transport: use prefix logging (#6135) 2023-03-22 09:20:36 -07:00
Easwar Swaminathan 9c25653be0
cdsbalancer: improve log messages (#6134) 2023-03-22 09:19:57 -07:00
Knut Zuidema a02aae6168
CONTRIBUTING.md: remove duplicated bullet point (#6139) 2023-03-21 19:28:53 -04:00
Easwar Swaminathan cdab8ae5c4
clusterresolver: push empty config to child policy upon removal of cluster resource (#6125) 2023-03-21 15:37:39 -07:00
Doug Fawley 7651e62090
transport: add a draining state check before creating streams (#6142) 2023-03-21 13:58:51 -07:00
Doug Fawley a2ca46c484
examples: organize READMEs better (#6121) 2023-03-21 13:19:15 -07:00
Zach Reyes 4efec30eb3
stats/opencensus: remove leading slash for per call metrics (#6141) 2023-03-20 19:31:30 -04:00
Zach Reyes 78099db03f
gcp/observability: Switch hex encoding to string() method (#6138) 2023-03-20 16:32:08 -04:00
Zach Reyes 70c5291509
observability: remove import replace directive and switch it to point to latest commit (#6122) 2023-03-17 20:55:52 -04:00
Rusakov Andrei 66e35339a4
status: handle wrapped errors (#6031) 2023-03-17 16:21:22 -07:00
Easwar Swaminathan a75fd73d61
Change version to 1.55.0-dev (#6131) 2023-03-17 13:38:15 -07:00
Zach Reyes b638faff22
stats/opencensus: Add message prefix to metrics names (#6126) 2023-03-17 14:34:52 -04:00
Matthew Stevenson c84a5005d9
credentials/alts: defer ALTS stream creation until handshake time (#6077) 2023-03-17 09:09:42 -07:00
wenxuwan 6f44ae89b1
metadata: add benchmark test for FromIncomingContext and ValueFromIncomingContext (#6117) 2023-03-15 16:19:40 -04:00
Sergey Matyukevich a1e657ce53
client: log last error on subchannel connectivity change (#6109) 2023-03-15 10:19:01 -07:00
Zach Reyes 36fd0a4396
gcp/observability: Add compressed metrics to observability module and synchronize View data with exporter (#6105) 2023-03-14 22:50:56 -04:00
Easwar Swaminathan 52ca957106
xds: make comparison of server configs in bootstrap more reliable (#6112) 2023-03-14 18:37:14 -07:00
Zach Reyes 7507ea6bcb
gcp/observability: Change logging schema and set queue size limit for logs and batching delay (#6118) 2023-03-14 20:20:09 -04:00
Doug Fawley 16c3b7df7f
examples: add example for ORCA load reporting (#6114) 2023-03-14 14:01:16 -07:00
Doug Fawley b458a4f11a
transport: stop always closing connections when loopy returns (#6110) 2023-03-14 13:32:25 -07:00
Arvind Bright 11e2506cb6
tests: Scale down keepalive test timings (#6088) 2023-03-14 10:40:00 -07:00
Stanley Cheung 5796c409ee
interop/observability: Pass interop parameters to client/server as-is (#6111) 2023-03-10 10:44:04 -08:00
Easwar Swaminathan abd4db22a7
xdsclient/tests: fix flaky test NodeProtoSentOnlyInFirstRequest (#6108) 2023-03-10 10:27:04 -08:00
Easwar Swaminathan 3633361c26
tests: support LRS on the same port as ADS (#6102) 2023-03-10 10:00:13 -08:00
Arvind Bright 0558239af0
Update CONTRIBUTING.md (#6089) 2023-03-10 09:28:07 -08:00
Easwar Swaminathan 22608213b8
go.mod: upgrade golang.org/x/net to address CVE-2022-41723 (#6106) 2023-03-09 16:30:30 -08:00
Easwar Swaminathan 60a1aa38f8
testutils: add support for creating endpoint resources with options (#6103) 2023-03-09 14:35:40 -08:00
Arvind Bright 92d9e77ac7
xds: NACK route configuration if sum of weights of weighted clusters exceeds uint32_max (#6085) 2023-03-09 14:34:15 -08:00
Luwei Ge d02039b685
Deflake the integration test. (#6093)
The short test timeout was causing the DialContext to return an error
even if it was non-blocking when a large number of tests are executed
simultaneously. The way I think we should do with is to stick with the
normal time out but cancel the context promptly, instead of deferring it
at the end to release resources.
2023-03-09 12:28:57 -08:00
Zach Reyes 55d8783479
gcp/observability: Link logs and traces by logging Trace and Span IDs (#6056) 2023-03-09 13:56:23 -05:00
Doug Fawley ad4057fcc5
transport: stop returning errors that are always nil (#6098) 2023-03-08 13:40:47 -08:00
Doug Fawley 558e1b6f7f
examples/authz: add token package docstring (#6095) 2023-03-07 14:50:03 -08:00