Skip to main content

Module activation

Module activation 

Source
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§

MacActivationControl
Process-wide widen/narrow control. It never removes a PEP.
MacActivationError
Why an operator-requested widening was refused.
MacActivationEvidence
Operator-supplied evidence for the epic’s G1-G7 decision gate.

Enums§

MacActivationMode
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 from Claims::jti (notably CWT cti byte 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 Subject but not the full EnvelopeContext.
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_context against explicit authority handles instead of the process-global ones. None behaves exactly like an unpublished global: credential-bearing and session-bearing hits fail closed.