Users, roles and SSO
Sign-in methods
| Method | Used by | Details |
|---|---|---|
| Local accounts | People | Email and password, hashed with Argon2id. The first account created is the instance owner. |
| Session cookies | The web UI | HttpOnly, Secure (behind HTTPS), SameSite=Lax, with a CSRF token for state-changing requests. |
| API keys | Scripts, CLI, MCP clients | Sent as Authorization: Bearer <key>. Stored hashed, scoped, optionally expiring, with last-used time recorded. |
| OIDC single sign-on | People | Any OpenID Connect provider: Keycloak, Okta, Auth0, Google, Microsoft Entra ID, GitHub (through an OIDC bridge), and others. |
Projects and roles
Workflows, credentials, executions and variables belong to a project. Users get access to a project through membership with a project role. On top of that, each user has an instance role.
Instance roles
| Role | Can |
|---|---|
owner | Everything, including instance settings, key rotation and multi-tenant overrides. One or more owners. |
admin | Manage users, projects and project membership; enable exec-class nodes for projects; read the audit log. |
member | Use the projects they are a member of. |
Project roles
| Role | Workflows | Executions | Credentials | Members and settings |
|---|---|---|---|---|
admin | Create, edit, activate, delete | View, retry, cancel | Create, edit, delete, use | Manage |
editor | Create, edit, activate, delete | View, retry, cancel | Create, use | View |
operator | View, run, activate and deactivate | View, retry, cancel | Use (through workflows) | View |
viewer | View | View | See names only | View |
Every API route declares the permission it needs, and an automated test asserts that every route is covered by the permission matrix, so a new endpoint cannot ship without an access rule.
API keys act as the user who created them, limited further by the key’s scopes.
OIDC configuration
Register Tappet as a confidential web application in your identity provider with the redirect URI:
<TAPPET_PUBLIC_URL>/api/v1/auth/oidc/callback
Then configure Tappet:
TAPPET_PUBLIC_URL=https://automation.example.com
TAPPET_OIDC_ISSUER=https://login.example.com/realms/main
TAPPET_OIDC_CLIENT_ID=tappet
TAPPET_OIDC_CLIENT_SECRET=... # from your secret store
TAPPET_OIDC_SCOPES="email profile groups" # in addition to openid
TAPPET_OIDC_ROLE_CLAIM=groups # dot path, e.g. realm_access.roles
TAPPET_OIDC_ROLE_RULES='[
{"value": "automation-owners", "instance_role": "owner"},
{"value": "automation-admins", "instance_role": "admin"},
{"value": "staff", "instance_role": "member"},
{"value": "finance-ops", "project": "finance", "project_role": "editor"}
]'
TAPPET_OIDC_DEFAULT_ROLE=none # owner | admin | member | none (refuse)
TAPPET_OIDC_AUTO_PROVISION=true # create users on first sign-in
TAPPET_OIDC_LINK_BY_EMAIL=false # link to an existing local user by verified email
TAPPET_OIDC_COOKIE_KEY=... # base64, at least 32 bytes; same on every API replica
- The issuer’s discovery document is used to find the endpoints and signing keys.
- Users are matched by the provider’s subject (
sub). Linking to an existing local account by email only happens withTAPPET_OIDC_LINK_BY_EMAIL=trueand a provider-verified email. - Each rule matches one exact value of the role claim and can grant an instance role, a project role, or both. Roles are re-evaluated at every sign-in, so removing someone from a group in the identity provider takes effect at their next sign-in.
- When no rule matches,
TAPPET_OIDC_DEFAULT_ROLEapplies;nonerefuses the sign-in. TAPPET_OIDC_COOKIE_KEYsigns the short-lived login state. If it is unset, each process picks a random key, which breaks sign-in when more than one API replica serves traffic. Set it in HA deployments (the Helm chart takes it from the release secret).
The configuration reference lists every OIDC option.
Provider notes
| Provider | Issuer | Group claim |
|---|---|---|
| Keycloak | https://<host>/realms/<realm> | Add a “Group Membership” mapper to the client scope, claim name groups. |
| Okta | https://<org>.okta.com/oauth2/default | Add a groups claim to the authorization server. |
| Auth0 | https://<tenant>.auth0.com/ | Add roles to the ID token with an Action, under a namespaced claim. |
https://accounts.google.com | No group claim; map by email domain or assign roles in Tappet. | |
| Microsoft Entra ID | https://login.microsoftonline.com/<tenant>/v2.0 | Enable group claims in the app registration’s token configuration. |
Multi-tenant mode
TAPPET_MULTI_TENANT=true is for instances shared by independent teams or customers. It switches
on the strictest defaults:
- egress policy
strict(required), - exec-class nodes disabled, overridable only by the owner per project,
$envunavailable in expressions,- connector template
envempty, - project isolation enforced for every lookup cache and blob reference.