Actor model & identity
Every request that hits the platform is performed by an actor. The actor model is how identity, audit, and access control work together.
What you'll learn
- The four actor types and when each is used
- How the gateway authenticates and how services trust headers
- How delegation works (one actor acting on behalf of another)
The four actor types
| Type | Who it is | How they auth |
|---|---|---|
user | A human signed in to the app | Password + session cookie, SSO, or MFA |
app | A registered application | OAuth client credentials or API key |
service | A platform service calling internally | Service-to-service token (issued by the gateway) |
super_admin | An operator with cross-tenant scope | MFA-required, audit-logged |
Every audit log row records the actor that performed the action.
How auth flows
- A request hits the API gateway with a credential (cookie, bearer, OAuth).
- The gateway validates the credential and resolves the actor.
- The gateway calls the relevant service module (federated GraphQL) with HTTP headers:
x-actor-id: <uuid>x-actor-type: user | app | service | super_adminx-workspace-id: <uuid>(workspace-layer requests only)
- The service module trusts those headers. Services never validate tokens. That's the gateway's job.
Why? Centralizing token validation means new auth methods (passkeys, SCIM, mTLS) only need to be added in one place, and every services automatically benefits.
Delegation
An app actor can act on behalf of a user via delegation. When a user grants the app delegated scope, the gateway forwards extra headers:
x-consent-granted-by: <user-id>x-consent-scope: read:files,write:notesx-consent-granted-at: <iso8601>x-consent-expires-at: <iso8601>
The audit log records both the app and the on-behalf-of user.
→ User-facing guide: App delegations
What changes when?
| You change | Where |
|---|---|
| How users sign in | Gateway (centralized) |
| What an actor can do | RBAC directives on service schemas |
| Who can delegate to whom | The app's delegation scope at registration |
Next steps
- RBAC overview — what an actor is allowed to do
- Federation & multi-tenancy — how the gateway routes calls
- Authentication for developers — calling the API as an app