Role Based Access Control
Asset Reality's access control system(s) is configured to enforce assignment of privileges to individuals based on job classification and function.
-
Role-Based Access in the Backend
The backend implements a flexible Role-Based Access Control (RBAC) system. Each user gains access by being assigned to one or more groups. Groups are associated with roles, and roles define specific permissions through attached policies. This structure ensures permissions are centrally managed and consistently applied within an organisation.
-
RBAC Model Components
The access control system uses the following components:
-
Enforcement via Middleware
Each protected route is wrapped in a centralised middleware that checks for required policies. For example, a route to create a user may require the
TEAM_CREATE_USERpolicy. If the user does not have this policy, access is denied. -
Auditing and Traceability
All access attempts to protected routes are logged using an audit middleware. These logs include the user ID, route, action attempted, and result. This ensures traceability and supports internal compliance audits.