tls: add options to validate SANs and send SNI for upstream hostname (#36903)
These options are related, but do not have to be used together. The existing `auto_sni` and `auto_san_validation` make Envoy set upstream TLS SNI and validate SANs based on the downstream requests's `:authority` (or override header). The new `auto_host_sni` option causes Envoy to set the upstream TLS SNI to the hostname in the cluster for the host being connected to. For example, in a DNS cluster with server1.example.com and server2.example as the cluster members, connections would have SNI of server1.example.com and server2.example.com, respectively. The new `auto_sni_san_validation` option causes Envoy to validate that the peer's server certificate has a DNS SAN that matches whatever SNI value was sent (regardless of how it's configured). This is appropriate to set in many/most configurations for normally-behaving upstream servers without special certificate validation requirements. Signed-off-by: Greg Greenway <ggreenway@apple.com> Mirrored from https://github.com/envoyproxy/envoy @ 8ef1ecc4fae1699b8fcea839a510a8a760ddecd8main
parent
6ac3cd177b
commit
a1e6b53d7e
2 changed files with 27 additions and 1 deletions
Loading…
Reference in new issue