SecurityRBAC & Roles

RBAC & Roles

ClawNex includes a full role-based access control system with 5 operator roles, 28 permissions, session governance, and progressive lockout.

5 Roles

RoleAccess Level
AdminFull platform access — manage users, configure RBAC, change all settings, perform every action
Security ManagerManage shield rules, whitelist entries, alert triage, break-glass activation
OperatorMonitor traffic, acknowledge and investigate alerts, run shield tests
ViewerRead-only access to all dashboards and reports — no configuration changes
AuditorRead-only access to audit trails, compliance reports, and security logs

28 Permissions

When RBAC is enabled, every API route requires requireSession() + requirePermission(). Key permissions:

PermissionDescription
config:readRead configuration settings
config:writeModify configuration (admin only)
shield:scanRun shield scans
shield:manageManage shield rules and whitelist
alerts:readView alerts
alerts:manageAcknowledge, investigate, resolve alerts
audit:readView audit trail
system:manageSystem operations — install, restart, backup (admin only)
workspace:readView agent workspace files
chat:useUse the chat/proxy endpoint
voice:useUse voice and avatar features

Session Management

  • Timeout — configurable from 1 to 720 hours
  • Concurrent limit — maximum 5 sessions per operator; oldest revoked when exceeded
  • Password change — revokes all sessions for that operator
  • My Sessions card — operators can view and revoke their own sessions

Progressive Account Lockout

Failed AttemptsLockout Duration
51 minute
105 minutes
1530 minutes
20+Account auto-disabled (requires admin re-enable)

Lockout is per-account, not per-IP. A successful login resets the failure counter.

Security Implementation

  • SQLite sessions with SHA-256 hashed tokens
  • bcryptjs password hashing (12 rounds)
  • CSRF double-submit cookie on all mutations
  • Last-admin protection — cannot demote, deactivate, or delete the last admin

Enterprise Features

FeatureDescription
SSO / SAMLFederated authentication with your identity provider
MFAMulti-factor authentication (TOTP, hardware key)
Custom RolesDefine custom permission sets beyond the 5 built-in roles
Session IP BindingLock sessions to the originating IP address
Two-Person Break-GlassRequire a second admin to approve break-glass activation

Enterprise features are visible in the UI with an “Enterprise” badge.