Skip to main content

Module PermissionManager

Module PermissionManager 

Source
Expand description

§Permission Manager (IPC Security)

Role-based access control for the IPC layer with built-in audit logging. Manager::Struct is the enforcement core; SecurityContext::Struct is the per-request envelope; SecurityEvent::Struct + SecurityEventType::Enum carry the audit trail.

Modules§

Manager
Manager::Struct - the IPC RBAC enforcement core. Holds the role / permission tables and the rolling 1k audit log; validate_permission is the gate every IPC operation passes through before dispatch. The struct + impl + tests stay in one file - tightly coupled cluster.
SecurityContext
Security envelope used by Manager::Struct::validate_permission. Carries the user id, roles, direct permissions, origin IP, and request timestamp. ipc_default produces the loopback “ipc-connection” context used for local IPC.
SecurityEvent
Audit log entry written by Manager::Struct::log_security_event. Pairs a SecurityEventType::Enum with the user id, attempted operation, timestamp, and free-form details.
SecurityEventType
Discriminator for SecurityEvent::Struct - the kind of audit-log entry being recorded.