pub struct MacSubscribeAuthorizer { /* private fields */ }Expand description
SubscribeAuthorizer backed by the shared MoqEventPep MAC floor.
Maps the PeerIdentity’s verified subject to a Subject, resolves the
track label + subject clearance via the PEP’s seams, and applies
can_access. Both seams fail closed (None ⇒ SubscribeDecision::Deny);
there is no permissive bypass (epic #547: no permissive mode). Key possession
(the §7.5 DH-derived topic capability) never substitutes for this decision —
it gates metadata visibility, the MAC floor gates the labeled content.
Typed identity (v16 §10 / #1510): the track name is parsed into the stream-plane typed identity exactly once at this boundary; a name that does not decode denies as an unknown identity.
Constructing this adapter installs an active PEP, so missing clearance and missing labels deny. Leaving the containing transport’s authorizer unset is the dormant pre-activation state and remains pass-through.
Implementations§
Source§impl MacSubscribeAuthorizer
impl MacSubscribeAuthorizer
Sourcepub fn new(pep: MoqEventPep) -> Self
pub fn new(pep: MoqEventPep) -> Self
Build with a caller-supplied PEP (real resolver + clearance source).
Trait Implementations§
Source§impl SubscribeAuthorizer for MacSubscribeAuthorizer
impl SubscribeAuthorizer for MacSubscribeAuthorizer
peer may subscribe to track_name.Auto Trait Implementations§
impl Freeze for MacSubscribeAuthorizer
impl !RefUnwindSafe for MacSubscribeAuthorizer
impl Send for MacSubscribeAuthorizer
impl Sync for MacSubscribeAuthorizer
impl Unpin for MacSubscribeAuthorizer
impl UnsafeUnpin for MacSubscribeAuthorizer
impl !UnwindSafe for MacSubscribeAuthorizer
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
§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 more