Sourced from google.golang.org/grpc's releases.
Release 1.42.0
Behavior Changes
- grpc: Dial("unix://relative-path") no longer works (#4817)
- use "unix://absolute-path" or "unix:relative-path" instead in accordance with our documentation
- xds/csds: use new field
GenericXdsConfiginstead ofPerXdsConfig(#4898)New Features
- grpc: support
grpc.WithAuthoritywhen secure credentials are used (#4817)- creds/google: add NewDefaultCredentialsWithOptions() to support custom per-RPC creds (#4830)
- authz: create file watcher interceptor for gRPC SDK API (#4760)
- attributes: add
Equalmethod (#4855)- resolver: add
AddressMapandState.BalancerAttributes(#4855)- resolver: Add
URLfield toTargetto store parsed dial target (#4817)- grpclb: add a
target_namefield to lb config to specify target when used as a child policy (#4847)- grpclog: support formatting log output as JSON (#4854)
Bug Fixes
- server: add missing conn.Close if the connection dies before reading the HTTP/2 preface (#4837)
- grpclb: recover if addresses are received after an empty server list was received previously (#4879)
- authz: support empty principals and fix rbac authenticated matcher (#4883)
- xds/rds: NACK the RDS response if it contains unknown cluster specifier (#4788)
- xds/priority: do not switch to low priority when high priority is in Idle (e.g. ringhash) (#4889)
Documentation
- grpc: stabilize WithDefaultServiceConfig and improve godoc (#4888)
- status: clarify FromError docstring (#4880)
- examples: add example illustrating the use of unix abstract sockets (#4848)
- examples: update load balancing example to use loadBalancingConfig (#4887)
- doc: promote WithDisableRetry to stable; clarify retry is enabled by default (#4901)
API Changes
- credentials: Mark
TransportCredentials.OverrideServerNamemethod as deprecated (#4817)
aff571c Change version to 1.42.0 (#4910)2d7bdf2 xds: Set RBAC on by default (#4909)d47437c xds: Fix invert functionality for header matcher (#4902)9fa2698 xds/csds: populate new GenericXdsConfig field (#4898)6e8625d doc: promote WithDisableRetry to stable; clarify retry is enabled by default ...f1d87c1 client: properly disable retry if GRPC_GO_RETRY=off (#4899)03753f5 creds/google: fix CFE cluster name check (#4893)4f21cde authz: support empty principals and fix rbac authenticated matcher (#4883)f00baa6 resolver: replace AddressMap.Range with Keys (#4891)2a31245 client: don't force passthrough as default resolver (#4890)