grpc_json_transcoder: to support reject request if binding and body value are conflict (#21772)

Updated `grpc-httpjson-transcoding` repo to have this [change](grpc-ecosystem/grpc-httpjson-transcoding#70).
Additional Description:
grpc_json_transcoder: to support reject request if binding and body value are conflict
Risk Level: Low
Testing: unit test
Docs Changes: N/A
Release Notes: Add an option in grpc_json_transcoder to support reject request if binding and body value are conflict.
Platform Specific Features: N/A

Signed-off-by: yangshuo <yangshuo@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ f40d62f6a2e11486f397c688ffc6c01a85738582
pull/626/head
data-plane-api(Azure Pipelines) 3 years ago
parent 1ee5de9f2b
commit 7a3dc79110
  1. 14
      envoy/extensions/filters/http/grpc_json_transcoder/v3/transcoder.proto

@ -87,6 +87,20 @@ message GrpcJsonTranscoder {
// :ref:`ignored_query_parameters <envoy_v3_api_field_extensions.filters.http.grpc_json_transcoder.v3.GrpcJsonTranscoder.ignored_query_parameters>`
// have priority over this strict validation behavior.
bool reject_unknown_query_parameters = 2;
// By default, transcoding will default to the value in the body if there
// are conflict values in the bindings. For example,
//
// post: '/resources/a?id=123'
// body: {
// id: 456,
// }
// "id: 456" in the body will override "id=123" in the binding.
//
// If this field is set to true, the request will be rejected if the binding
// value is different from the body value.
bool reject_binding_body_field_collisions = 3;
}
oneof descriptor_set {

Loading…
Cancel
Save