pub struct ClientConfigOptions {
pub trust_domain: TrustDomain,
pub authorize_server: AuthorizeSpiffeId,
}Expand description
Options for building a SPIFFE-aware rustls::ClientConfig.
Fields§
§trust_domain: TrustDomainTrust domain whose bundle is used as the verification root set.
Authorization hook invoked with the server SPIFFE ID.
Returning false rejects the peer even if the certificate chain is valid.
Implementations§
Source§impl ClientConfigOptions
impl ClientConfigOptions
Sourcepub fn allow_any(trust_domain: TrustDomain) -> Self
pub fn allow_any(trust_domain: TrustDomain) -> Self
Creates options that accept any server SPIFFE ID for the given trust domain.
Authentication still happens via bundle verification; only authorization is permissive.
Trait Implementations§
Source§impl Clone for ClientConfigOptions
impl Clone for ClientConfigOptions
Source§fn clone(&self) -> ClientConfigOptions
fn clone(&self) -> ClientConfigOptions
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 moreAuto Trait Implementations§
impl Freeze for ClientConfigOptions
impl !RefUnwindSafe for ClientConfigOptions
impl Send for ClientConfigOptions
impl Sync for ClientConfigOptions
impl Unpin for ClientConfigOptions
impl !UnwindSafe for ClientConfigOptions
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request