grpc_json_transcoder: Add option for strict request validation (#14715)
When a downstream request's headers do not follow the transcoding specification: Current behavior: The filter blindly passes the request through to the upstream. This works well when the request is already a gRPC request, but is not ideal if the :path is malformed. New behavior: For cases where the :path is malformed, the filter will reject the request instead of passing it through. This includes paths that are not registered for transcoding and unknown query parameter variable bindings. gRPC requests are still passed through. Risk Level: Low. Backwards compatible, new behavior is guarded by option. I cannot think of a case where a client would prefer the old behavior, but let's be safe with breaking changes. Testing: Integration tests Platform Specific Features: No Ref: GoogleCloudPlatform/esp-v2#459 Signed-off-by: Teju Nareddy <nareddyt@google.com> Mirrored from https://github.com/envoyproxy/envoy @ 6ce641fff03ea137e201cfb6e5f52e513551f2dfpull/624/head
parent
a656f7286e
commit
37f2ec639a
1 changed files with 23 additions and 1 deletions
Loading…
Reference in new issue