From 7559768ef61295c2ece90a51ea0c4d546a7634ea Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Mon, 11 Jan 2021 19:59:52 +0000 Subject: [PATCH] Implement request header processing in ext_proc (#14385) Send request headers to the server and apply header mutations based on the response. The rest of the protocol is still ignored. Signed-off-by: Gregory Brail Mirrored from https://github.com/envoyproxy/envoy @ 845f92af869a3aa50856a461265d650ee70d1329 --- envoy/service/ext_proc/v3alpha/external_processor.proto | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/envoy/service/ext_proc/v3alpha/external_processor.proto b/envoy/service/ext_proc/v3alpha/external_processor.proto index cac1dde3..5b0696bf 100644 --- a/envoy/service/ext_proc/v3alpha/external_processor.proto +++ b/envoy/service/ext_proc/v3alpha/external_processor.proto @@ -6,7 +6,6 @@ import "envoy/config/core/v3/base.proto"; import "envoy/extensions/filters/http/ext_proc/v3alpha/processing_mode.proto"; import "envoy/type/v3/http_status.proto"; -import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "udpa/annotations/status.proto"; @@ -289,10 +288,13 @@ message GrpcStatus { // Change HTTP headers or trailers by appending, replacing, or removing // headers. message HeaderMutation { - // Add or replace HTTP headers. + // Add or replace HTTP headers. Attempts to set the value of + // any "x-envoy" header, and attempts to set the ":method", + // ":authority", ":scheme", or "host" headers will be ignored. repeated config.core.v3.HeaderValueOption set_headers = 1; - // Remove these HTTP headers. + // Remove these HTTP headers. Attempts to remove system headers -- + // any header starting with ":", plus "host" -- will be ignored. repeated string remove_headers = 2; }