Skip to main content

ClearanceSource

Trait ClearanceSource 

Source
pub trait ClearanceSource: Send + Sync {
    // Required method
    fn clearance<'life0, 'life1, 'async_trait>(
        &'life0 self,
        subject: &'life1 Subject,
    ) -> Pin<Box<dyn Future<Output = Option<SecurityContext>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Resolve a verified event/MoQ subject to its MAC security context.

The event plane does not have an EnvelopeContext, so it derives its subject context from the verified identity available at this boundary. Returning None is fail-closed once the PEP is installed.

Async because the production source revalidates credential-bearing cache entries against the canonical revocation authority on every read.

Required Methods§

Source

fn clearance<'life0, 'life1, 'async_trait>( &'life0 self, subject: &'life1 Subject, ) -> Pin<Box<dyn Future<Output = Option<SecurityContext>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§