Skip to main content

Security

The IntelliAsk Admin Panel security model — roles, JWT sessions, API keys, the audit log, the optional /mcp endpoint, and a production hardening checklist.

The Admin Panel has direct read/write access to IntelliAsk's MongoDB, so treat it as a privileged, internal-only tool.

Accounts and roles

Panel accounts are stored in the dashboard database. They are separate from IntelliAsk users.

RoleCan
viewerView the Dashboard, browse data in Explorer, use Saved Queries and Reports
editorEverything a viewer can, plus insert, edit, and delete documents in Explorer
adminEverything, including Credits, Users & Roles, the Agent Catalog, IntelliCollab, Backups, Administration, and index and collection management

These panel roles are separate from IntelliAsk's own roles (USER, ADMIN, and custom roles). Only panel admins can change those under Users & Roles.

On first start the panel seeds admin / admin and forces a password change at first sign-in. PW_MIN_LENGTH sets the minimum password length.

Sessions

POST /api/auth/login returns a JWT signed with JWT_SECRET (HS256), valid for JWT_EXPIRE_HOURS. The UI sends it as Authorization: Bearer <token>.

The only routes that do not require authentication are /health, the API docs (/docs, /redoc, /openapi.json), login, the password policy, the UI configuration, static assets, and /mcp (which has its own check — see below).

API keys

Admins issue API keys under Administration → API Keys for scripts, Grafana, and other integrations.

  • Send the key in the x-api-key header.
  • Keys start with API_KEY_PREFIX (mdb_ by default), are stored only as SHA-256 hashes, and are shown once at creation.
  • A key acts with its owner's role and can have an expiry date.
  • Revoke a key at any time; it stops working immediately.

Audit log

Administrative actions are recorded with the acting user, the action, and the target — for example user changes, IntelliAsk role changes (user_role, role_create, role_update, role_delete), Agent promotion and ownership transfers, IntelliCollab catalog changes, and restores. PI review decisions are recorded in IntelliCollab's own sensitivity audit trail. Review it under Administration → Audit Log.

Built-in MCP endpoint

With MCP_ENABLED=true, the panel serves a Streamable HTTP MCP server at /mcp. Each request is authenticated only by an X-User-Email header, which must match the email of a panel account; tools are then limited by that account's role.

X-User-Email is not a credential

Anyone who can reach /mcp can impersonate any panel user, including admins, by sending their email address. Only enable it when /mcp is reachable solely from a trusted caller — for example IntelliAsk on the private intelliask network, configured to send X-User-Email: {{INTELLIASK_USER_EMAIL}} — and block /mcp at your reverse proxy.

Hardening checklist

  • Set JWT_SECRET to a long random value (openssl rand -hex 32). The default is public. In the IntelliAsk stack, intelliask module enable admin-panel and intelliask secrets generate it as ADMIN_PANEL_JWT_SECRET.
  • Change the seeded admin password at first sign-in, then create named accounts and stop using the shared admin account.
  • Do not expose the panel publicly. Bind it to localhost or a private network and publish it only through a TLS reverse proxy, VPN, or SSH tunnel. In the IntelliAsk stack, intelliask module enable proxy --admin-host <name> serves it through the bundled proxy with TLS while the raw port stays on loopback — prefer an internal DNS name. --admin-path /admin (serving it under a path of the IntelliAsk site) is a convenience, but it shares IntelliAsk's browser origin, so the panel's sign-in token is not isolated from scripts on the IntelliAsk site — prefer a separate hostname where the panel is reachable from the internet.
  • Leave MCP_ENABLED=false unless you need it, and then follow the callout above.
  • Grant roles sparingly. editor can change any document in any database the MongoDB user can reach; use a least-privilege MongoDB user where possible.
  • Mount and protect /backups. Backup files contain full database contents, including user data and encrypted credentials.
  • Use expiring API keys for integrations, and revoke keys that are no longer used.

Last updated on