From 22d7484113b62b4ae2e0d8957c425b5c60e52bcc Mon Sep 17 00:00:00 2001 From: "data-plane-api(CircleCI)" Date: Wed, 10 Jul 2019 17:09:03 +0000 Subject: [PATCH] http: allowing altering the x-envoy header prefix (#7458) Adding bootstrap configuration so Envoy can trust and generate x-random-prefix headers instead fo x-envoy headers Risk Level: Medium Testing: UT, sorta integration test Docs Changes: n/a Release Notes: yes Fixes #5363 Signed-off-by: Alyssa Wilk Mirrored from https://github.com/envoyproxy/envoy @ 8017bf28b72d66aeed2cd4557b4604c9f1e4b8c8 --- envoy/config/bootstrap/v2/bootstrap.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/envoy/config/bootstrap/v2/bootstrap.proto b/envoy/config/bootstrap/v2/bootstrap.proto index f8083ca6b..ab841058c 100644 --- a/envoy/config/bootstrap/v2/bootstrap.proto +++ b/envoy/config/bootstrap/v2/bootstrap.proto @@ -133,6 +133,17 @@ message Bootstrap { // over the wire individually because the statsd protocol doesn't have any way to represent a // histogram summary. Be aware that this can be a very large volume of data. bool enable_dispatcher_stats = 16; + + // Optional string which will be used in lieu of x-envoy in prefixing headers. + // + // For example, if this string is present and set to X-Foo, then x-envoy-retry-on will be + // transformed into x-foo-retry-on etc. + // + // Note this applies to the headers Envoy will generate, the headers Envoy will sanitize, and the + // headers Envoy will trust for core code and core extensions only. Be VERY careful making + // changes to this string, especially in multi-layer Envoy deployments or deployments using + // extensions which are not upstream. + string header_prefix = 18; } // Administration interface :ref:`operations documentation