pub struct PipelineClientAuth {
pub own: Caller,
pub extra_client_uris: Vec<String>,
pub verifier: Arc<dyn ClientCertVerifier>,
}Expand description
The client verifier and admitted callers of a pipeline or coordinator server. Its certificate chain names the pipeline in the leaf and ends with the private CA chain, which the runner appends, so the server needs no separate CA file.
Fields§
§own: Caller§extra_client_uris: Vec<String>URI SANs of the external clients that the server admits like the control plane.
verifier: Arc<dyn ClientCertVerifier>Implementations§
Source§impl PipelineClientAuth
impl PipelineClientAuth
pub fn from_chain( chain: &[CertificateDer<'static>], extra_client_uris: &[String], ) -> Result<Self, String>
Sourcepub fn is_allowed(&self, caller: &Caller) -> bool
pub fn is_allowed(&self, caller: &Caller) -> bool
Whether a pipeline or coordinator server admits caller: the control plane, the
pipeline itself (the coordinator calls the hosts of its pipeline), or a listed external
client.
Auto Trait Implementations§
impl !RefUnwindSafe for PipelineClientAuth
impl !UnwindSafe for PipelineClientAuth
impl Forget for PipelineClientAuth
impl Freeze for PipelineClientAuth
impl Move for PipelineClientAuth
impl Send for PipelineClientAuth
impl Sync for PipelineClientAuth
impl Unpin for PipelineClientAuth
impl UnsafeUnpin for PipelineClientAuth
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
Mutably borrows from an owned value. Read more
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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