pub struct ClientConfigOptions {
pub trust_domain: TrustDomain,
pub authorize_server: AuthorizeSpiffeId,
}Expand description
Configuration options for ClientConfigBuilder.
These options control trust bundle selection and server authorization.
Fields§
§trust_domain: TrustDomainTrust domain whose bundle is used as the verification root set.
Authorization hook invoked with the server SPIFFE ID.
The hook receives the SPIFFE ID extracted from the server certificate’s
URI SAN and must return true to allow the connection.
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 authenticate the server but allow any SPIFFE ID.
This disables authorization while retaining full TLS authentication. Use only if authorization is performed at another layer.
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