pub struct VerifiedClearanceSessionFactory<C: NinePClearanceSource> { /* private fields */ }Expand description
Constructs a 9P SessionContext from an identity that an attach
credential verifier has already authenticated and tenant-bound.
Fail-closed by construction — there is no permissive path:
- An unresolvable clearance (unenrolled DID, no policy) →
SessionContext::deny. - A resolvable clearance but no S6 sender-bound token (the token path
is not yet wired into 9P
Tattach) →SessionContext::from_verified_clearance, which denies every op at the token gate.
This type deliberately does not implement AttachAuthenticator:
that trait receives raw Tattach fields, while this factory accepts only a
VerifiedAttachIdentity produced after credential verification. This
prevents raw uname from silently becoming a verified identity when S6 is
wired.
Implementations§
Source§impl<C: NinePClearanceSource> VerifiedClearanceSessionFactory<C>
impl<C: NinePClearanceSource> VerifiedClearanceSessionFactory<C>
pub fn new(clearance: Arc<C>) -> Self
Sourcepub fn session_for(&self, identity: VerifiedAttachIdentity) -> SessionContext
pub fn session_for(&self, identity: VerifiedAttachIdentity) -> SessionContext
Derive a token-less, fail-closed session from a credential-verified, tenant-bound identity.
Auto Trait Implementations§
impl<C> Freeze for VerifiedClearanceSessionFactory<C>
impl<C> RefUnwindSafe for VerifiedClearanceSessionFactory<C>where
C: RefUnwindSafe,
impl<C> Send for VerifiedClearanceSessionFactory<C>
impl<C> Sync for VerifiedClearanceSessionFactory<C>
impl<C> Unpin for VerifiedClearanceSessionFactory<C>
impl<C> UnsafeUnpin for VerifiedClearanceSessionFactory<C>
impl<C> UnwindSafe for VerifiedClearanceSessionFactory<C>where
C: RefUnwindSafe,
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§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§impl<T> JaggedSlice<T> for T
impl<T> JaggedSlice<T> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more