Chuyển tới nội dung chính

Permissions

Egret authorizes actions with a catalog of named permissions. This page lists all 64 of them, grouped by area, with what each allows and which built-in roles hold it on a fresh install. The catalog is defined in code (crates/egret-core/src/rbac.rs) and every role's permission rows must name a key from it. The same list appears in the app under Control Plane → Permissions, with the number of roles each is granted to.

How permissions work​

  • A permission is a string resource:action, for example dataset:manage or engine:read.

  • A role is a named set of permissions. Roles are assigned to users and groups: platform roles under Control Plane, workspace roles per workspace under Manage → Workspace settings → Members. See Access control and Roles and permissions.

  • Each permission has a scope:

    ScopeChecked againstGranted by
    platformThe whole platform: control-plane routes such as engines, storage, catalogs, secrets, usersA platform role
    workspaceOne workspace: the datasets, charts, dashboards, queries and flows inside itA workspace role, or an object-level grant on one object
  • platform_admin passes every check. The authorization model has a rule that lets members of the role do anything, so a permission that no other built-in role holds is, in practice, an administrator's permission.

  • A person's effective permissions come from every role they hold directly and through groups. Access Explorer in the Control Plane shows what a user can reach and which grant gives it.

  • Permissions that guard changes to the authorization graph itself (creating roles, assigning permissions to roles, putting users in groups, assigning platform roles, reading the audit log) are not in the catalog. They are reserved to platform_admin, so nobody can delegate the power to give themselves more power.

Built-in roles​

RoleScopeDescriptionPermissions
platform_adminplatformFull platform controlEverything, through the bypass above
data_stewardplatformManage catalog, policy, databases16
ws_adminworkspaceManage workspace members and resources25
ws_editorworkspaceCreate and edit workspace content17
ws_viewerworkspaceView workspace content7
data_api_invokerworkspaceCall one published Data API endpoint. Granted object-scoped to a service account, never assigned as a workspace membership1

You can create more roles under Control Plane → Roles.

The catalog​

The last column is what a fresh install grants; your roles may differ.

Engines​

PermissionScopeWhat it allowsBuilt-in roles that hold it
engine:readplatformView enginesdata_steward
engine:createplatformCreate enginesnone (only the platform_admin bypass)
engine:updateplatformUpdate engine confignone (only the platform_admin bypass)
engine:deleteplatformDelete enginesnone (only the platform_admin bypass)
engine:provisionplatformProvision / restart engines on the clusternone (only the platform_admin bypass)
engine:killplatformKill running queriesnone (only the platform_admin bypass)
engine:auditplatformRead statement text in engine query logsnone (only the platform_admin bypass); migration 0218 also grants it to every platform role that holds engine:update

Catalogs​

PermissionScopeWhat it allowsBuilt-in roles that hold it
catalog_registry:readplatformView registry catalogs and their engine attachments, and browse an egret warehouse's namespaces, tables and Catalog Clientsdata_steward
catalog_registry:createplatformCreate registry catalogs and egret warehouses, and mint Catalog Clients (data-lake credentials) and catalog rolesnone (only the platform_admin bypass)
catalog_registry:updateplatformEdit registry catalogs, re-apply them to engines, assign them to workspaces, and change an egret warehouse's settings, protection and format policynone (only the platform_admin bypass)
catalog_registry:deleteplatformDelete registry catalogs and egret warehouses, and revoke Catalog Clients and catalog rolesnone (only the platform_admin bypass)

Storage​

PermissionScopeWhat it allowsBuilt-in roles that hold it
storage:readplatformView storage registrationsdata_steward
storage:createplatformCreate storage registrationsnone (only the platform_admin bypass)
storage:updateplatformUpdate storage registrationsnone (only the platform_admin bypass)
storage:deleteplatformDelete storage registrationsnone (only the platform_admin bypass)

Secrets​

PermissionScopeWhat it allowsBuilt-in roles that hold it
secret:readplatformView secrets (metadata)none (only the platform_admin bypass)
secret:createplatformCreate secretsnone (only the platform_admin bypass)
secret:updateplatformUpdate secretsnone (only the platform_admin bypass)
secret:deleteplatformDelete secretsnone (only the platform_admin bypass)

Data API​

PermissionScopeWhat it allowsBuilt-in roles that hold it
service_account:readworkspaceView service accounts and their OAuth2 clients (never the secret)ws_admin
service_account:manageworkspaceCreate and delete service accounts and issue their OAuth2 clientsws_admin
data_api_endpoint:readworkspaceView Data API endpoints and their versionsws_admin
data_api_endpoint:manageworkspaceCreate, edit, publish and roll back Data API endpointsws_admin
data_api_endpoint:invokeworkspaceCall a published Data API endpointdata_api_invoker, ws_admin

Workflows​

PermissionScopeWhat it allowsBuilt-in roles that hold it
workflow:readworkspaceView flow drafts, their validation report, and their published versionsws_admin, ws_editor
workflow:manageworkspaceCreate, edit, publish and delete flow drafts; restore a flow from the trash or delete it permanentlyws_admin, ws_editor
workflow:use_secretsworkspaceSave and publish flows that call secret(), which reads any secret of the workspacews_admin

Policies​

PermissionScopeWhat it allowsBuilt-in roles that hold it
policy:readplatformView Ranger policiesdata_steward
policy:createplatformCreate policiesdata_steward
policy:updateplatformUpdate policiesdata_steward
policy:deleteplatformDelete policiesdata_steward
policy:seedplatformSeed default policies for a profiledata_steward

Classifications​

PermissionScopeWhat it allowsBuilt-in roles that hold it
tag:readplatformView classification tagsdata_steward
tag:manageplatformCreate, edit, and delete classification tagsdata_steward

Workspaces​

PermissionScopeWhat it allowsBuilt-in roles that hold it
workspace:readplatformView workspacesdata_steward, platform_admin
workspace:createplatformCreate workspacesplatform_admin
workspace:updateplatformUpdate workspacesplatform_admin
workspace:archiveplatformArchive workspacesplatform_admin
workspace:manage_membersworkspaceManage workspace members and workspace-scoped resourcesws_admin

Users​

PermissionScopeWhat it allowsBuilt-in roles that hold it
user:readplatformView usersdata_steward, platform_admin
user:createplatformCreate local usersnone (only the platform_admin bypass)
user:updateplatformUpdate users (name/status)none (only the platform_admin bypass)
user:disableplatformDisable usersnone (only the platform_admin bypass)
user:deleteplatformDelete usersnone (only the platform_admin bypass)

Groups​

PermissionScopeWhat it allowsBuilt-in roles that hold it
group:readplatformView groupsdata_steward
group:createplatformCreate local groupsnone (only the platform_admin bypass)
group:updateplatformUpdate local groupsnone (only the platform_admin bypass)
group:deleteplatformDelete local groupsnone (only the platform_admin bypass)

Roles​

PermissionScopeWhat it allowsBuilt-in roles that hold it
role:readplatformView rolesdata_steward

SQL Lab​

PermissionScopeWhat it allowsBuilt-in roles that hold it
query:runworkspaceRun SQL queries in a workspacews_admin, ws_editor
saved_query:readworkspaceView saved queriesws_admin, ws_editor, ws_viewer
saved_query:manageworkspaceCreate, edit, and delete saved queriesws_admin, ws_editor

Datasets​

PermissionScopeWhat it allowsBuilt-in roles that hold it
dataset:readworkspaceView datasetsws_admin, ws_editor, ws_viewer
dataset:manageworkspaceCreate, update, and delete datasetsws_admin, ws_editor
dataset:certifyplatformMark datasets and their metrics as certified, and withdraw certificationdata_steward

Charts​

PermissionScopeWhat it allowsBuilt-in roles that hold it
chart:readworkspaceView chartsws_admin, ws_editor, ws_viewer
chart:manageworkspaceCreate, update, and delete chartsws_admin, ws_editor

Dashboards​

PermissionScopeWhat it allowsBuilt-in roles that hold it
dashboard:readworkspaceView dashboardsws_admin, ws_editor, ws_viewer
dashboard:manageworkspaceCreate, update, and delete dashboardsws_admin, ws_editor
dashboard:certifyplatformMark dashboards as certified, and withdraw certificationdata_steward

Apps​

PermissionScopeWhat it allowsBuilt-in roles that hold it
app:readworkspaceOpen published data appsws_admin, ws_editor, ws_viewer
app:writeworkspaceAuthor, publish and restore data appsws_admin, ws_editor
app:manageworkspaceManage data-app sharesws_admin

Alerts & Reports​

PermissionScopeWhat it allowsBuilt-in roles that hold it
alert:manageworkspaceCreate, edit, and delete scheduled alerts and reportsws_admin, ws_editor
alert:readworkspaceView scheduled alerts and reportsws_admin, ws_editor, ws_viewer

Reading the table​

  • "none (only the platform_admin bypass)" means no built-in role holds the permission, so only an administrator can act until you grant it to a role of your own.
  • *:read permissions let you view; *:manage lets you create, edit and delete within the workspace. Note that these are flat: a role that may edit a flow must also hold workflow:read to list it.
  • dataset:certify and dashboard:certify are platform-scope permissions that control who can mark a dataset, metric or dashboard as certified.
  • The four catalog_registry:* permissions are wider than their name: they also cover browsing an Egret warehouse's namespaces and tables, creating and deleting warehouses, and minting and revoking Catalog Clients, which are real data-lake credentials. Grant them as you would grant access to the lake.
  • workflow:use_secrets is separate from workflow:manage on purpose: a flow's author decides where a secret's value goes (into a query, into a connection URL), so saving a flow that calls secret() is its own permission.
  • data_api_endpoint:invoke is meant to be held object-scoped by a service account (one grant per endpoint), not workspace-wide by a person.
  • A 403 from the REST API names the missing permission, for example Missing dataset:manage permission. The REST API reference lists it under every endpoint.

Further reading​