Expand description
Coverage-gated MAC activation control and verified-subject context cache.
The reference monitor is always present. The process defaults to
MacActivationMode::IdentityAware (standard IAM: the verified subject
context from Claims × VerifiedKeyMaterial). The operator can narrow to
MacActivationMode::FloorOnly as a killswitch via
MacActivationControl::narrow_to_floor, and can re-widen with
MacActivationControl::widen_identity_aware once the genesis report
evidence is complete.
Structs§
- MacActivation
Control - Process-wide widen/narrow control. It never removes a PEP.
- MacActivation
Error - Why an operator-requested widening was refused.
- MacActivation
Evidence - Operator-supplied evidence for the epic’s G1-G7 decision gate.
Enums§
- MacActivation
Mode - The two allowed production enforcement states.
Functions§
- anonymous_
floor - Canonical anonymous-floor context used by every PEP during narrowing.
- block_
identity_ widening_ for_ unverified_ attach_ transport - Register a live production 9P transport that still uses a deny-only authenticator. Once registered, this process cannot widen identity-aware MAC until that constructor is replaced with a verified credential carrier in a fresh process.
- flush_
verified_ subject_ cache_ generation - Advance the verified-subject cache generation and remove all prior entries.
- global_
mac_ activation_ control - The process-global activation control. It starts floor-only.
- remember_
verified_ claims - Cache an already-verified Claims binding for a lower-level PEP boundary
that does not carry an
EnvelopeContext(notably unified 9P attach). - remember_
verified_ claims_ with_ credential - Cache a verified-Claims binding with an explicit [
CredentialId], for credential encodings whose identifier is not derivable fromClaims::jti(notably CWTctibyte strings). - remember_
verified_ subject - Cache the context of a request whose envelope and Claims have already been
verified. This is the bridge for in-process VFS/CAS/MoQ APIs that carry a
verified
Subjectbut not the fullEnvelopeContext. - revoke_
verified_ subject_ credential - Revoke every cached subject context derived from the given credential.
- subject_
context - Resolve a VFS/CAS/MoQ subject through the verified-Claims cache and current activation mode. Tenant mismatch is a hard miss.
- subject_
context_ with subject_contextagainst explicit authority handles instead of the process-global ones.Nonebehaves exactly like an unpublished global: credential-bearing and session-bearing hits fail closed.