Skip to content

Commit

Permalink
http: allowing altering the x-envoy header prefix (#7458)
Browse files Browse the repository at this point in the history
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 <alyssar@chromium.org>

Mirrored from https://github.com/envoyproxy/envoy @ 8017bf28b72d66aeed2cd4557b4604c9f1e4b8c8
  • Loading branch information
data-plane-api(CircleCI) committed Jul 10, 2019
1 parent 965c278 commit 22d7484
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions envoy/config/bootstrap/v2/bootstrap.proto
Expand Up @@ -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
Expand Down

0 comments on commit 22d7484

Please sign in to comment.