pub struct GatewayTlsBackend {
pub client_certificate_ref: Option<GatewayTlsBackendClientCertificateRef>,
}Expand description
Backend describes TLS configuration for gateway when connecting to backends.
Note that this contains only details for the Gateway as a TLS client, and does not imply behavior about how to choose which backend should get a TLS connection. That is determined by the presence of a BackendTLSPolicy.
Support: Core
Fields§
§client_certificate_ref: Option<GatewayTlsBackendClientCertificateRef>ClientCertificateRef references an object that contains a client certificate and its associated private key. It can reference standard Kubernetes resources, i.e., Secret, or implementation-specific custom resources.
A ClientCertificateRef is considered invalid if:
-
It refers to a resource that cannot be resolved (e.g., the referenced resource does not exist) or is misconfigured (e.g., a Secret does not contain the keys named
tls.crtandtls.key). In this case, theResolvedRefscondition on the Gateway MUST be set to False with the ReasonInvalidClientCertificateRefand the Message of the Condition MUST indicate why the reference is invalid. -
It refers to a resource in another namespace UNLESS there is a ReferenceGrant in the target namespace that allows the certificate to be attached. If a ReferenceGrant does not allow this reference, the
ResolvedRefscondition on the Gateway MUST be set to False with the ReasonRefNotPermitted.
Implementations MAY choose to perform further validation of the certificate content (e.g., checking expiry or enforcing specific formats). In such cases, an implementation-specific Reason and Message MUST be set.
Support: Core - Reference to a Kubernetes TLS Secret (with the type kubernetes.io/tls).
Support: Implementation-specific - Other resource kinds or Secrets with a
different type (e.g., Opaque).
Trait Implementations§
Source§impl Clone for GatewayTlsBackend
impl Clone for GatewayTlsBackend
Source§fn clone(&self) -> GatewayTlsBackend
fn clone(&self) -> GatewayTlsBackend
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GatewayTlsBackend
impl Debug for GatewayTlsBackend
Source§impl Default for GatewayTlsBackend
impl Default for GatewayTlsBackend
Source§fn default() -> GatewayTlsBackend
fn default() -> GatewayTlsBackend
Source§impl<'de> Deserialize<'de> for GatewayTlsBackend
impl<'de> Deserialize<'de> for GatewayTlsBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for GatewayTlsBackend
impl JsonSchema for GatewayTlsBackend
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for GatewayTlsBackend
impl PartialEq for GatewayTlsBackend
Source§impl Serialize for GatewayTlsBackend
impl Serialize for GatewayTlsBackend
impl StructuralPartialEq for GatewayTlsBackend
Auto Trait Implementations§
impl Freeze for GatewayTlsBackend
impl RefUnwindSafe for GatewayTlsBackend
impl Send for GatewayTlsBackend
impl Sync for GatewayTlsBackend
impl Unpin for GatewayTlsBackend
impl UnsafeUnpin for GatewayTlsBackend
impl UnwindSafe for GatewayTlsBackend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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