forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext_proc: Support trailer callbacks (envoyproxy#16102)
Existing trailers will be sent to the processing server if the processing mode is set to enable them. If the processing mode is set to sent trailers, but there are no trailers present, then empty trailers will be sent to the server for modification. However, trailers may only be added in the end of the data callback in Envoy, which may come in before a previous gRPC reply returns. Filters that need to be able to consistently add trailers where none existed should enable trailer processing in the Envoy filter configuration instead of relying on being able to turn it on dynamically. Risk Level: Low. Trailers only enabled if a service called by the filter is configured to ask for them. Testing: New integration and unit tests added. Docs Changes: API docs updated in .proto files. Release Notes: When the processing mode is changed to SEND for request or response trailers, a corresponding message will be sent to the server, which can respond with trailer mutations as desired. In addition, if trailer processing is enabled in the filter configuration, then trailer messages will be sent to the server even if trailers are not present. This makes it possible for the server to add trailers where none exist. Finally, at the moment Envoy only implements trailers for the HTTP/2 protocol. Nothing will happen if trailer processing is enabled and Envoy is using HTTP/1 until Envoy implements trailers for HTTP/1. Signed-off-by: Gregory Brail <gregbrail@google.com> Signed-off-by: Gokul Nair <gnair@twitter.com>
- Loading branch information
Showing
12 changed files
with
771 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
generated_api_shadow/envoy/extensions/filters/http/ext_proc/v3alpha/ext_proc.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 37 additions & 19 deletions
56
generated_api_shadow/envoy/service/ext_proc/v3alpha/external_processor.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.