Skip to content

Roles and RBAC

Fontana applies role-based access control (RBAC) in two layers:

  1. Zitadel decides who you are, whether MFA is met, and which role name you hold (a project role grant).
  2. Flow decides what that role can do, from a permission catalog and the role definitions in Admin.

You grant roles in Zitadel (or through SCIM when enabled) and define permission sets in Admin → Roles. There are no per-person permission overrides: effective permissions always come from the assigned role.

How a Zitadel role becomes permissions in FlowZitadel grants a project role. The sign-in token carries that role name. Flow matches the name to a role defined in Admin, Roles, reads the role's permission set, and checks it on every page and API call. A missing permission fails closed.GRANTSLOGINROLE NAMEDEFINESCHECKSIDENTITYZitadelproject role grant: editorTOKENSign-in tokencarries the role nameFLOWRole matchname must equal a Flow roleADMINAdmin, Rolespermission set per roleRBACEffective permissionsresource:action listGATEPages and API callsmissing permission fails closed

Zitadel grants the role name, the sign-in token carries it, Flow matches it to a role you defined, and every page and API call checks that role’s permissions.

Layer You configure Fontana stores
Identity Zitadel (SSO, MFA, project role grants, SCIM when enabled) Each person’s profile, enabled flag, and role as Fontana Files configuration
Authorization Admin → Roles (permission sets), Admin → Users (enable or disable) Roles as Fontana Files configuration; a permission check on every protected call

Zitadel project role keys must match Fontana role names exactly. Every deployment offers admin, editor, and viewer on both sides. A person whose first sign-in token names no Flow role becomes an editor; a person who already holds a role keeps it until the token names another. Grant viewer in Zitadel to a person who should only read.

Three roles ship with every workspace. Custom roles you create in Admin are never changed by a platform update.

Role Typical use Permission summary
admin Platform and security administrators Wildcard * (all permissions)
editor Builders and analysts who create workflows, agents, and knowledge Read and write on workflows, agents, Knowledge Graph, files, and evals; read skills; chat with agents; model selection; no user administration or platform settings
viewer Read-only operators and reviewers Read workflows, agents, skills, Knowledge Graph, files, and evals; chat with agents; edit own profile

Grant these roles in Zitadel as project roles on the Flow application.

Permissions are resource:action ids, defined in the catalog that ships with Fontana:

Resource Example actions What it gates
workflows read, write, delete The canvas, workflow lists, run and edit
agents read, write The agent catalog; write changes MCP connections, Agent Interop, and chat channels
skills read The skill catalog and AI → Skills
knowledge-graph read, write, delete Knowledge Graph documents and namespaces
evals read, write, run, delete Evaluation tests
files read, write, delete, admin The file browser and uploads. admin opens every namespace, including the costs record and the bug-reports namespace of bug reports, runs their workflows, and manages the asset library
ai page, view_usage, manage_global_spending_caps, … Cost center, spending caps, model approval, defaults
users read, write, create, delete, enable Admin → Users and user management
teams admin Admin → Teams (create, rename, membership)
platform read, write Admin → Email, Admin → Lineage, API keys
profile read, write, allow_email_change Your profile and preferences
audit_logs_own read Activity entries whose chain you started
audit_logs_team read Every Activity entry, and editing shared Activity views

Wildcards work when you edit roles in Admin:

  • *: all permissions (the default admin)
  • workflows.*: every action on one resource

In Admin → Roles you can:

  • Create custom roles from any combination of catalog permissions and wildcards
  • Edit the permission set of a custom role (you can edit a default role too, but the next platform update restores its default permissions)
  • Delete custom roles you no longer need

Roles are kept as Fontana Files configuration: Admin → Roles writes the role list, and Flow applies the change within moments. A role’s name is its key, so you change a role’s permissions, not its name.

After you create a custom role in Flow, grant the same project role name in Zitadel so people receive it on login.

teams:admin lets you create teams, rename teams, and manage membership (viewer or editor on the team) in Admin → Teams. Teams and their members are kept as Fontana Files configuration, like roles.

Creating a Workspace, whether new, cloned, or from a dropped folder, needs a role with files:write (or files:admin). A viewer reads only: Flow shows them no New Workspace or Clone Workspace, and Fontana Files refuses the request. Everyone’s personal storage (memory, conversations, access tokens, preferences) is created for them whatever their role. A grant cannot lift a viewer above reading either: without files:write, an editor or owner grant on a Workspace or namespace counts as viewer, everywhere except the person’s own personal storage.

Workspace workflows follow the Fontana Files grants on that Workspace, plus the global workflows:* permissions. A grant names a person or a team, so team membership can give you access to a Workspace. A team grant names the team itself, not its display name, so renaming a team keeps its grants. If you can read the Workspace, you see its run data. If you can edit it (including through files:admin), you can run any workflow in it.

Agent and skill packages follow the same grants. An editor grant on a namespace lets you edit the packages in it, including an agent’s schedules.json, when your role has files:write. See Agents and Skills.

Flow hides sidebar entries and blocks routes when you lack the required permission. Examples:

Route Permission required
/projects, /workflow workflows:read
/agents, /tools agents:read
/usage, /threads ai:page
Cost center (/ai?view=usage) ai:page (your own spend), ai:view_usage (the whole workspace)
/admin/users, /admin/roles users:read
/admin/teams teams:admin
/admin/assets files:admin
/admin/email, /admin/openlineage platform:read
/audit-logs/activity (own) audit_logs_own:read

Backend mutations run the same permission checks; a missing permission fails closed with an error.

People, teams, and roles are kept as Fontana Files configuration. Every grant, personal namespace, and personal key names a person by the Fontana id kept there, and a team by the team itself. After a workspace is restored from its Fontana Files and its secrets (see Backup and restore), each person signs in to their own namespaces, grants, conversations, personal access tokens, and API keys. If the identity provider was replaced and a person’s sign-in id changed, Fontana matches them to their existing account only by a verified email address.

When an admin disables a person in Admin → Users, their effective permissions become empty at once, whatever their role. Re-enabling restores the permissions of the assigned role.

Role edits, user enable and disable, and team membership changes appear in the Activity log. Identity and privileged administration events also feed the immutable security audit trail; see Immutable audit trail.