Skip to content

Permissions & Security

ProcessWireConsole ships 9 granular RBAC permissions so you can grant operators read/manage access to specific operational panels without handing out full superuser rights.

Constant Permission Name Granted Section & Scope
PERMISSION_VIEW wire-console Access Setup -> Console and the Overview section.
PERMISSION_MIGRATIONS wire-console-migrations Access Migrations section and inspect site/migrations/.
PERMISSION_QUEUES wire-console-queues Access Queues section and inspect site/queue/.
PERMISSION_SEEDING wire-console-seeding Access Seeding section and inspect site/seeders/.
PERMISSION_SCHEDULING wire-console-scheduling Access Scheduling section and inspect site/schedule/.
PERMISSION_BACKUP wire-console-backup View Backups section (downloading/previewing/restoring .sql dumps strictly requires superuser).
PERMISSION_TESTING wire-console-testing Access Testing section and inspect tests/, site/tests/, and tests/e2e/.
PERMISSION_BOOST wire-console-boost Access Boost & AI section and inspect .agents/.
PERMISSION_LOGS wire-console-logs Access Logs & Audit section and inspect log channels.

If a user opens a section URL they lack permission for, ConsoleRuntime::buildWorkspacePayload() automatically falls back to 'overview' and omits restricted section data from the Inertia payload.

  • Superuser-Only SQL Downloads & Restores: ___executeDownloadBackup() and inspectProjectFile('backup', ...) throw WirePermissionException for non-superusers or whenever $config->demo is active.
  • Request Body Bounds: MAX_JSON_BODY_BYTES = 65536 (64 KB), MAX_JSON_DEPTH = 16, MAX_JSON_ELEMENTS = 256 on ./action/ (and 512 elements on queue/MCP JSON argument payloads).
  • Per-Session Cooldowns (checkRateLimit()): Mutating operational actions enforce per-session cooldown windows to prevent accidental double-triggers or abuse.
  • Confirmation Words (ConfirmDialog): Destructive actions (migration reset/refresh/fresh, queue purge, backup restore, log clearing) require explicit confirmation acknowledgment.
  • Audit Trail (ConsoleRuntime::LOG_CHANNEL = 'wire-console-audit'): Every executed action writes a structured JSON audit record with recursive redaction of secrets, tokens, and passwords.

Next steps