Roles & Permissions

Role requirements for PostgreSQL-backed management and application access: viewer, member, admin and owner.

Authentication before authorization

On a gateway with admin authentication enabled, missing credentials on protected management routes return 401. An authenticated caller below the route's required role receives 403. Public signup, login and setup are bootstrap routes; public probes and discovery surfaces do not share every management rule.

Role Hierarchy

Ingate uses a linear role hierarchy. Each role is assigned a numeric level, and higher roles automatically inherit all permissions of lower roles.

RoleLevelDescription
viewer0Read access to logs, metrics, evals, prompts, usage
member1Viewer + create/update prompts, evals, apps. Proxy access.
admin2Member + manage teams, keys, budgets, webhooks, providers, org settings
owner3Admin + transfer/delete org, manage billing

A user with role level N can perform any action that requires level N or below. For example, an admin (level 2) can do everything a member (level 1) and viewer (level 0) can do.

Permissions by Resource

The table below shows the minimum role required for read and write access to each resource. A dash means that operation is not applicable to the resource.

ResourceReadWrite
Proxy (LLM requests)n/amember
Providersvieweradmin
Logsviewern/a
Metricsviewern/a
Usage analyticsviewern/a
Sessions & usersviewern/a
Promptsviewermember
Prompt renderviewern/a
Evalsviewermember
Appsviewermember
App key listing / creationviewermember
Key revocationn/aadmin
Key rotationn/aadmin
Teamsvieweradmin
Budgetsadminadmin
Webhooksadminadmin
Audit logviewern/a
Org settingsn/aadmin
Ingestion APIn/amember
OTel trace exportn/amember
Playgroundn/amember
Datasetsviewermember
BYOS storagen/aadmin (enterprise)

Error Responses

Authentication and role failures have different responses. These examples apply to protected management routes with admin authentication enabled:

json401 Response - missing authentication
{
  "error": "authentication required",
  "error_code": "auth_required",
  "hint": "provide Authorization: Bearer <token> or X-Ingate-Key header"
}
json403 Response - insufficient role
{
  "error": "insufficient permissions",
  "error_code": "forbidden",
  "required_role": "admin"
}

Enforcement scope

Role checks apply to registered protected operations when DB-backed RBAC is enabled. Public POST /api/v1/signup, /api/v1/login and/api/v1/setup do not require an existing session. App-key creation is a member operation; revocation and rotation require admin. Plan gates, scopes and tenant ownership checks can also refuse a request after its role check passes.

Use a session token for the selected organization and check the operation's response. A read-only retry repeats the same GET with that organization and resource ID; it does not replay an administrative write. See Authentication for copied key creation, listing and revocation examples.