pub struct EnrollmentSubjectContextResolver { /* private fields */ }Expand description
The SubjectContextResolver for a delegated actor, backed by the signed
policy’s enrollment table (CompiledPolicy::clearance_for, #698 PR A).
#698 Decision D (operator-ratified, 2026-07-03): a delegated actor proves
only DPoP possession of a classical ephemeral key at the grant path — UCAN
chain validation (GlobalPqUcanVerifier, require_pq: true) proves issuers,
never the audience — so this resolver clamps assurance to
VerifiedKeyMaterial::Classical unconditionally, regardless of the enrolled
clearance’s own level/compartments. That is the truthful label for what the
crypto actually proves; assigning anything higher would let an unverified
actor claim PqHybrid assurance, defeating #548. An object labeled with a
PqHybrid assurance requirement is therefore structurally unreachable through
this resolver — by construction, not by a missing rule (see
docs/mac-architecture.md). Raising a specific enrolled actor above Classical
is the enrollment-key-registration follow-up (#718), not this resolver.
An unenrolled DID resolves to None — the existing fail-closed contract
(SubjectContextResolver::resolve’s None ⇒ deny) is unchanged.
Implementations§
Source§impl EnrollmentSubjectContextResolver
impl EnrollmentSubjectContextResolver
Sourcepub fn new(policy: Arc<CompiledPolicy>) -> Self
pub fn new(policy: Arc<CompiledPolicy>) -> Self
Construct a resolver over a verified, installed CompiledPolicy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnrollmentSubjectContextResolver
impl RefUnwindSafe for EnrollmentSubjectContextResolver
impl Send for EnrollmentSubjectContextResolver
impl Sync for EnrollmentSubjectContextResolver
impl Unpin for EnrollmentSubjectContextResolver
impl UnsafeUnpin for EnrollmentSubjectContextResolver
impl UnwindSafe for EnrollmentSubjectContextResolver
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
§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>
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>
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>
T in a tonic::Request