Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/bufbuild/protovalidate-go](https://redirect.github.com/bufbuild/protovalidate-go) | `v0.7.3` -> `v0.8.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fbufbuild%2fprotovalidate-go/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fbufbuild%2fprotovalidate-go/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fbufbuild%2fprotovalidate-go/v0.7.3/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fbufbuild%2fprotovalidate-go/v0.7.3/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [github.com/grpc-ecosystem/go-grpc-middleware/v2](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware) | `v2.1.0` -> `v2.2.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgrpc-ecosystem%2fgo-grpc-middleware%2fv2/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgrpc-ecosystem%2fgo-grpc-middleware%2fv2/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgrpc-ecosystem%2fgo-grpc-middleware%2fv2/v2.1.0/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgrpc-ecosystem%2fgo-grpc-middleware%2fv2/v2.1.0/v2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [google.golang.org/grpc](https://redirect.github.com/grpc/grpc-go) | `v1.68.1` -> `v1.69.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/google.golang.org%2fgrpc/v1.69.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/google.golang.org%2fgrpc/v1.69.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/google.golang.org%2fgrpc/v1.68.1/v1.69.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/google.golang.org%2fgrpc/v1.68.1/v1.69.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>bufbuild/protovalidate-go (github.com/bufbuild/protovalidate-go)</summary> ### [`v0.8.0`](https://redirect.github.com/bufbuild/protovalidate-go/releases/tag/v0.8.0) [Compare Source](https://redirect.github.com/bufbuild/protovalidate-go/compare/v0.7.3...v0.8.0) **Breaking Change**: The `protovalidate.ValidationError` type is no longer a protobuf `buf.validate.Violations` message alias, but a struct containing a slice of `protovalidate.Violation` instances. **In most cases, accessing the `Proto` member of the violation is all that needs to be done:** ```diff for _, violation := range err.Violations { - fmt.Println(violation.GetMessage()) + fmt.Println(violation.Proto.GetMessage()) } ``` `protovalidate.ValidationError` still has a `ToProto()` method that returns the protobuf `buf.validate.Violations` message equivalent. *** The new `protovalidate.Violation` structure contains additional in-memory information about the violation which cannot be serialized to the wire: - `FieldValue`: A `protoreflect.Value` containing the value of the field failing validation, if there is a field corresponding to the violation. - `FieldDescriptor`: A `protoreflect.FieldDescriptor` corresponding to the field failing validation. - `RuleValue`: A `protoreflect.Value` containing the value of the rule failing validation, if there is a rule corresponding to the violation. - `RuleDescriptor`: A `protoreflect.FieldDescriptor` corresponding to the rule failing validation. Take, for example, the following protobuf message schema: ```proto message User { string email = 1 [(buf.validate.field).string.email = true]; } ``` If you try to validate the struct `pb.User{Email: "invalid"}`, the `FieldValue` will be `"invalid"` and the `RuleValue` will be `true`. Some violations do not correspond directly to a field, such as a message constraint failure; in these cases, the `FieldValue` will be an invalid value and the `FieldDescriptor` will be `nil`. #### What's Changed - Implement structured field and rule paths, add field and rule values to ValidationErrors by [@​jchadwick-buf](https://redirect.github.com/jchadwick-buf) in [https://github.com/bufbuild/protovalidate-go/pull/154](https://redirect.github.com/bufbuild/protovalidate-go/pull/154) - Bump the go group with 2 updates by [@​dependabot](https://redirect.github.com/dependabot) in [https://github.com/bufbuild/protovalidate-go/pull/161](https://redirect.github.com/bufbuild/protovalidate-go/pull/161) **Full Changelog**: bufbuild/protovalidate-go@v0.7.3...v0.8.0 </details> <details> <summary>grpc-ecosystem/go-grpc-middleware (github.com/grpc-ecosystem/go-grpc-middleware/v2)</summary> ### [`v2.2.0`](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/releases/tag/v2.2.0) [Compare Source](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/compare/v2.1.0...v2.2.0) #### What's Changed - Call retry callback on retry by [@​fredr](https://redirect.github.com/fredr) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/700](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/700) - interceptors: Update logging interceptor Reporter to re-extract fields from context before logging by [@​chancez](https://redirect.github.com/chancez) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/702](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/702) - logging: Document correct WithFieldsFromContext/WithFieldsFromContextAndCallMeta usage by [@​chancez](https://redirect.github.com/chancez) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/703](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/703) - Include error details in protovalidate responses by [@​akshayjshah](https://redirect.github.com/akshayjshah) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/714](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/714) - protovalidate: avoid pointer comparisons by [@​akshayjshah](https://redirect.github.com/akshayjshah) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/715](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/715) - Support for namespace in grpc prometheus counter and histogram metrics by [@​hyungi](https://redirect.github.com/hyungi) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/718](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/718) - Protovalidate interceptor cleanup, Go version bump by [@​ash2k](https://redirect.github.com/ash2k) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/721](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/721) - Use ValueFromIncomingContext() to reduce allocations and copying by [@​ash2k](https://redirect.github.com/ash2k) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/723](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/723) - Update examples to the latest otelgrpc API by [@​nmittler](https://redirect.github.com/nmittler) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/729](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/729) - Fix grpc middleware interceptor not PostCall-ing when a streaming RPC with non-streaming server finishes successfully. by [@​alexandrupitis1](https://redirect.github.com/alexandrupitis1) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/725](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/725) - x-retry-attempt to StreamClientInterceptor by [@​Boklazhenko](https://redirect.github.com/Boklazhenko) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/733](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/733) - logging: add WithErrorFields by [@​kindermoumoute](https://redirect.github.com/kindermoumoute) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/734](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/734) - example: use slog instead of go-kit by [@​kindermoumoute](https://redirect.github.com/kindermoumoute) in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/735](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/735) #### New Contributors - [@​fredr](https://redirect.github.com/fredr) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/700](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/700) - [@​marefr](https://redirect.github.com/marefr) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/706](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/706) - [@​akshayjshah](https://redirect.github.com/akshayjshah) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/714](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/714) - [@​hyungi](https://redirect.github.com/hyungi) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/718](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/718) - [@​nmittler](https://redirect.github.com/nmittler) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/729](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/729) - [@​alexandrupitis1](https://redirect.github.com/alexandrupitis1) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/725](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/725) - [@​Boklazhenko](https://redirect.github.com/Boklazhenko) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/733](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/733) - [@​kindermoumoute](https://redirect.github.com/kindermoumoute) made their first contribution in [https://github.com/grpc-ecosystem/go-grpc-middleware/pull/734](https://redirect.github.com/grpc-ecosystem/go-grpc-middleware/pull/734) **Full Changelog**: grpc-ecosystem/go-grpc-middleware@v2.1.0...v2.2.0 </details> <details> <summary>grpc/grpc-go (google.golang.org/grpc)</summary> ### [`v1.69.0`](https://redirect.github.com/grpc/grpc-go/releases/tag/v1.69.0): Release 1.69.0 [Compare Source](https://redirect.github.com/grpc/grpc-go/compare/v1.68.1...v1.69.0) ### Known Issues - The recently added `grpc.NewClient` function is incompatible with forward proxies, because it resolves the target hostname on the client instead of passing the hostname to the proxy. A fix is expected to be a part of grpc-go v1.70. ([#​7556](https://redirect.github.com/grpc/grpc-go/issues/7556)) ### New Features - stats/opentelemetry: Introduce new APIs to enable OpenTelemetry instrumentation for metrics on servers and clients ([#​7874](https://redirect.github.com/grpc/grpc-go/issues/7874)) - xdsclient: add support to fallback to lower priority servers when higher priority ones are down ([#​7701](https://redirect.github.com/grpc/grpc-go/issues/7701)) - dns: Add support for link local IPv6 addresses ([#​7889](https://redirect.github.com/grpc/grpc-go/issues/7889)) - The new experimental `pickfirst` LB policy (disabled by default) supports Happy Eyeballs, interleaving IPv4 and IPv6 address as described in [RFC-8305 section 4](https://www.rfc-editor.org/rfc/rfc8305#section-4), to attempt connections to multiple backends concurrently. The experimental `pickfirst` policy can be enabled by setting the environment variable `GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST` to `true`. ([#​7725](https://redirect.github.com/grpc/grpc-go/issues/7725), [#​7742](https://redirect.github.com/grpc/grpc-go/issues/7742)) - balancer/pickfirst: Emit metrics from the `pick_first` load balancing policy ([#​7839](https://redirect.github.com/grpc/grpc-go/issues/7839)) - grpc: export `MethodHandler`, which is the type of an already-exported field in `MethodDesc` ([#​7796](https://redirect.github.com/grpc/grpc-go/issues/7796)) - Special Thanks: [@​mohdjishin](https://redirect.github.com/mohdjishin) ### Bug Fixes - credentials/google: set scope for application default credentials ([#​7887](https://redirect.github.com/grpc/grpc-go/issues/7887)) - Special Thanks: [@​halvards](https://redirect.github.com/halvards) - xds: fix edge-case issues where some clients or servers would not initialize correctly or would not receive errors when resources are invalid or unavailable if another channel or server with the same target was already in use . ([#​7851](https://redirect.github.com/grpc/grpc-go/issues/7851), [#​7853](https://redirect.github.com/grpc/grpc-go/issues/7853)) - examples: fix the debugging example, which was broken by a recent change ([#​7833](https://redirect.github.com/grpc/grpc-go/issues/7833)) ### Behavior Changes - client: update retry attempt backoff to apply jitter per updates to [gRFC A6](https://redirect.github.com/grpc/proposal/blob/master/A6-client-retries.md). ([#​7869](https://redirect.github.com/grpc/grpc-go/issues/7869)) - Special Thanks: [@​isgj](https://redirect.github.com/isgj) - balancer/weightedroundrobin: use the `pick_first` LB policy to manage connections ([#​7826](https://redirect.github.com/grpc/grpc-go/issues/7826)) ### API Changes - balancer: An internal method is added to the `balancer.SubConn` interface to force implementors to embed a delegate implementation. This requirement is present in the interface documentation, but wasn't enforced earlier. ([#​7840](https://redirect.github.com/grpc/grpc-go/issues/7840)) ### Performance Improvements - mem: implement a `ReadAll()` method for more efficient `io.Reader` consumption ([#​7653](https://redirect.github.com/grpc/grpc-go/issues/7653)) - Special Thanks: [@​ash2k](https://redirect.github.com/ash2k) - mem: use slice capacity instead of length to determine whether to pool buffers or directly allocate them ([#​7702](https://redirect.github.com/grpc/grpc-go/issues/7702)) - Special Thanks: [@​PapaCharlie](https://redirect.github.com/PapaCharlie) ### Documentation - examples/csm_observability: Add xDS Credentials and switch server to be xDS enabled ([#​7875](https://redirect.github.com/grpc/grpc-go/issues/7875)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cerbos/cerbos-sdk-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXJlYS9kZXBlbmRlbmNpZXMiLCJib3RzIiwia2luZC9jaG9yZSJdfQ==--> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information