pub trait SubjectContextResolver: Send + Sync {
// Required method
fn resolve(&self, audience_did: &str) -> Option<SecurityContext>;
}Expand description
Resolve a UCAN audience DID → the S1 [SecurityContext] it presents at grant
time (clearance clamped to verified key material).
S8 (#574) ships the real derivation. The concrete
ClaimsSubjectContextResolver reads the authority-asserted clearance
off verified [Claims] and derives assurance from the VerifiedKeyMaterial
the caller resolved from the verified crypto (DPoP proof key + PQ trust
store binding). The two-input security_context(key_material) clamps the
assurance axis DOWN to what the verified key supports — the load-bearing
#548 invariant.
SECURITY: the resolution MUST be from authority-asserted clearance (a
field the issuing node signed), never from a self-asserted claim in the
UCAN. The UCAN is the grant; the clearance is independent state the MAC
model holds about the subject. None (→ UnlabeledSubject → deny) remains
the fail-closed posture for a subject the resolver has no verified claims
for.
Required Methods§
Sourcefn resolve(&self, audience_did: &str) -> Option<SecurityContext>
fn resolve(&self, audience_did: &str) -> Option<SecurityContext>
The clearance context for audience_did, or None if the subject is
unlabeled / unverified. None ⇒ evaluate_grant denies.