hcm: add match_upstream to SchemeHeaderTransformation (#34099)

Signed-off-by: William <wtzhang23@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ b7d61cb2a3f6e4b3931151bc4d3e026631cdd5c2
main
update-envoy[bot] 9 months ago
parent 8b81957a6e
commit bf59f2d652
  1. 7
      envoy/config/core/v3/protocol.proto

@ -651,6 +651,13 @@ message Http3ProtocolOptions {
message SchemeHeaderTransformation {
oneof transformation {
// Overwrite any Scheme header with the contents of this string.
// If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(validate.rules).string = {in: "http" in: "https"}];
}
// Set the Scheme header to match the upstream transport protocol. For example, should a
// request be sent to the upstream over TLS, the scheme header will be set to "https". Should the
// request be sent over plaintext, the scheme header will be set to "http".
// If scheme_to_overwrite is set, this field is not used.
bool match_upstream = 2;
}

Loading…
Cancel
Save