router: Do not set SNI or SAN due to auto_sni or auto_san if already set (#25800)

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>

Mirrored from https://github.com/envoyproxy/envoy @ 00402e2d11faa830811e0fb5f941240dd8e80116
pull/626/head
data-plane-api(Azure Pipelines) 2 years ago
parent 4a834253e4
commit fdbeed657e
  1. 3
      envoy/config/core/v3/protocol.proto

@ -104,12 +104,14 @@ message UpstreamHttpProtocolOptions {
// upstream connections based on the downstream HTTP host/authority header or any other arbitrary
// header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
// is set, as seen by the :ref:`router filter <config_http_filters_router>`.
// Does nothing if a filter before the http router filter sets the corresponding metadata.
bool auto_sni = 1;
// Automatic validate upstream presented certificate for new upstream connections based on the
// downstream HTTP host/authority header or any other arbitrary header when :ref:`override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>`
// is set, as seen by the :ref:`router filter <config_http_filters_router>`.
// This field is intended to be set with ``auto_sni`` field.
// Does nothing if a filter before the http router filter sets the corresponding metadata.
bool auto_san_validation = 2;
// An optional alternative to the host/authority header to be used for setting the SNI value.
@ -119,6 +121,7 @@ message UpstreamHttpProtocolOptions {
// is not found or the value is empty, host/authority header will be used instead.
// This field is intended to be set with ``auto_sni`` and/or ``auto_san_validation`` fields.
// If none of these fields are set then setting this would be a no-op.
// Does nothing if a filter before the http router filter sets the corresponding metadata.
string override_auto_sni_header = 3
[(validate.rules).string = {well_known_regex: HTTP_HEADER_NAME ignore_empty: true}];
}

Loading…
Cancel
Save