Struct aws_sdk_appmesh::types::TlsValidationContext
source · #[non_exhaustive]pub struct TlsValidationContext {
pub trust: Option<TlsValidationContextTrust>,
pub subject_alternative_names: Option<SubjectAlternativeNames>,
}
Expand description
An object that represents how the proxy will validate its peer during Transport Layer Security (TLS) negotiation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.trust: Option<TlsValidationContextTrust>
A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
subject_alternative_names: Option<SubjectAlternativeNames>
A reference to an object that represents the SANs for a Transport Layer Security (TLS) validation context. If you don't specify SANs on the terminating mesh endpoint, the Envoy proxy for that node doesn't verify the SAN on a peer client certificate. If you don't specify SANs on the originating mesh endpoint, the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. Since SPIRE vended certificates have a SPIFFE ID as a name, you must set the SAN since the name doesn't match the service discovery name.
Implementations§
source§impl TlsValidationContext
impl TlsValidationContext
sourcepub fn trust(&self) -> Option<&TlsValidationContextTrust>
pub fn trust(&self) -> Option<&TlsValidationContextTrust>
A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
sourcepub fn subject_alternative_names(&self) -> Option<&SubjectAlternativeNames>
pub fn subject_alternative_names(&self) -> Option<&SubjectAlternativeNames>
A reference to an object that represents the SANs for a Transport Layer Security (TLS) validation context. If you don't specify SANs on the terminating mesh endpoint, the Envoy proxy for that node doesn't verify the SAN on a peer client certificate. If you don't specify SANs on the originating mesh endpoint, the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. Since SPIRE vended certificates have a SPIFFE ID as a name, you must set the SAN since the name doesn't match the service discovery name.
source§impl TlsValidationContext
impl TlsValidationContext
sourcepub fn builder() -> TlsValidationContextBuilder
pub fn builder() -> TlsValidationContextBuilder
Creates a new builder-style object to manufacture TlsValidationContext
.
Trait Implementations§
source§impl Clone for TlsValidationContext
impl Clone for TlsValidationContext
source§fn clone(&self) -> TlsValidationContext
fn clone(&self) -> TlsValidationContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TlsValidationContext
impl Debug for TlsValidationContext
source§impl PartialEq for TlsValidationContext
impl PartialEq for TlsValidationContext
source§fn eq(&self, other: &TlsValidationContext) -> bool
fn eq(&self, other: &TlsValidationContext) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TlsValidationContext
Auto Trait Implementations§
impl Freeze for TlsValidationContext
impl RefUnwindSafe for TlsValidationContext
impl Send for TlsValidationContext
impl Sync for TlsValidationContext
impl Unpin for TlsValidationContext
impl UnwindSafe for TlsValidationContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more