Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Users, roles and SSO

Sign-in methods

MethodUsed byDetails
Local accountsPeopleEmail and password, hashed with Argon2id. The first account created is the instance owner.
Session cookiesThe web UIHttpOnly, Secure (behind HTTPS), SameSite=Lax, with a CSRF token for state-changing requests.
API keysScripts, CLI, MCP clientsSent as Authorization: Bearer <key>. Stored hashed, scoped, optionally expiring, with last-used time recorded.
OIDC single sign-onPeopleAny 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

RoleCan
ownerEverything, including instance settings, key rotation and multi-tenant overrides. One or more owners.
adminManage users, projects and project membership; enable exec-class nodes for projects; read the audit log.
memberUse the projects they are a member of.

Project roles

RoleWorkflowsExecutionsCredentialsMembers and settings
adminCreate, edit, activate, deleteView, retry, cancelCreate, edit, delete, useManage
editorCreate, edit, activate, deleteView, retry, cancelCreate, useView
operatorView, run, activate and deactivateView, retry, cancelUse (through workflows)View
viewerViewViewSee names onlyView

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 with TAPPET_OIDC_LINK_BY_EMAIL=true and 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_ROLE applies; none refuses the sign-in.
  • TAPPET_OIDC_COOKIE_KEY signs 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

ProviderIssuerGroup claim
Keycloakhttps://<host>/realms/<realm>Add a “Group Membership” mapper to the client scope, claim name groups.
Oktahttps://<org>.okta.com/oauth2/defaultAdd a groups claim to the authorization server.
Auth0https://<tenant>.auth0.com/Add roles to the ID token with an Action, under a namespaced claim.
Googlehttps://accounts.google.comNo group claim; map by email domain or assign roles in Tappet.
Microsoft Entra IDhttps://login.microsoftonline.com/<tenant>/v2.0Enable 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,
  • $env unavailable in expressions,
  • connector template env empty,
  • project isolation enforced for every lookup cache and blob reference.