pub struct TlsProfile {
pub tls_enabled: bool,
pub require_client_mtls: bool,
pub encrypted_server_cert: Vec<u8>,
pub encrypted_server_key: Vec<u8>,
pub encrypted_client_ca_bundle: Vec<u8>,
pub encrypted_upstream_ca_bundle: Vec<u8>,
pub encrypted_upstream_client_cert: Vec<u8>,
pub encrypted_upstream_client_key: Vec<u8>,
pub client_cert_ttl_hours: u32,
pub sni: Option<String>,
pub subject_alt_name_template: Option<String>,
pub allowed_dns_names: Vec<String>,
}Expand description
TLS profile configuration for a service
Fields§
§tls_enabled: boolWhether TLS is enabled for this service
require_client_mtls: boolWhether client mTLS is required
encrypted_server_cert: Vec<u8>Encrypted server certificate PEM
encrypted_server_key: Vec<u8>Encrypted server private key PEM
encrypted_client_ca_bundle: Vec<u8>Encrypted client CA bundle PEM
encrypted_upstream_ca_bundle: Vec<u8>Encrypted upstream CA bundle PEM
encrypted_upstream_client_cert: Vec<u8>Encrypted upstream client certificate PEM
encrypted_upstream_client_key: Vec<u8>Encrypted upstream client private key PEM
client_cert_ttl_hours: u32Maximum client certificate TTL in hours
sni: Option<String>Optional SNI hostname for this service
subject_alt_name_template: Option<String>Template to derive subjectAltNames for issued certificates
allowed_dns_names: Vec<String>Allowed DNS names for issued certificates
Implementations§
Source§impl TlsProfile
impl TlsProfile
Trait Implementations§
Source§impl Clone for TlsProfile
impl Clone for TlsProfile
Source§fn clone(&self) -> TlsProfile
fn clone(&self) -> TlsProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TlsProfile
impl Debug for TlsProfile
Source§impl Default for TlsProfile
impl Default for TlsProfile
Source§impl<'de> Deserialize<'de> for TlsProfile
impl<'de> Deserialize<'de> for TlsProfile
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for TlsProfile
impl Message for TlsProfile
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Auto Trait Implementations§
impl Freeze for TlsProfile
impl RefUnwindSafe for TlsProfile
impl Send for TlsProfile
impl Sync for TlsProfile
impl Unpin for TlsProfile
impl UnwindSafe for TlsProfile
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more