Skip to main content

Module pep

Module pep 

Source
Expand description

MoQ / event-plane MAC policy-enforcement point (epic #547, #1271; typed resolver v16 §10 / #1510).

This plane consumes the shared RPC-PEP decision contract (MacDecision) rather than defining a parallel decision vocabulary, and resolves labels through this plane’s own typed resolver (MoqEventLabelResolver). A track/prefix string is parsed into the exact typed identity (MoqEventObjectRef) exactly once at the boundary helper (MoqEventPep::check_event_prefix / MoqEventPep::check_stream_track); the resolver never sees a string, so a MoQ/event coordinate can no longer occupy the RPC/VFS resolver’s service-domain slot. Unknown or noncanonical coordinates, unlisted services, missing clearance, and missing labels all deny; a failed lattice-floor check denies. Callers preserve the pre-activation behavior by not installing this PEP; dormant event/MoQ paths remain pass-through.

Structs§

DenyAllClearanceSource
Fail-closed clearance source for an installed event/MoQ PEP.
MoqEventPep
The installed MoQ/event MAC floor.
MoqMacAuditRecord
Plane-neutral denial record handed to the parent crate’s MAC audit adapter.

Enums§

MoqEventAction
The MoQ/event verb being authorized.
MoqMacAuditReason
Why a MoQ MAC denial was recorded.

Constants§

BOUNDED_AUDIT_COORDINATE_MAX_BYTES
Hard upper bound on the audit object text produced for one malformed coordinate: the fixed prefix cap plus the widest marker the format emits ("~b3:" + 16 hex digest chars + "~len:" + u64 decimal).
MAX_AUDIT_COORDINATE_PREFIX_BYTES
Verbatim prefix of a malformed coordinate kept in a deny audit record. Anything beyond it is represented by the digest/length marker of bounded_audit_coordinate.

Traits§

ClearanceSource
Resolve a verified event/MoQ subject to its MAC security context.
MoqMacAuditSink
Required audit destination for an active MoQ/event MAC PEP.

Functions§

bounded_audit_coordinate
Deterministic bounded audit identity for a coordinate that failed to parse into a typed object (PRRT_kwDONmv2Pc6a2ZGv, v16 §14: audit is a trail, never an authorization input).