Roles and permissions
The four OpenLakeForge roles and what each can do in every service. The roles
are defined by the product in release/identity-roles.yaml, not by a
deployment, and this page is derived from that file.
A person holds the highest role among the GitHub teams they belong to, and
GitHub teams are mapped to roles in spec.identity
(Map teams to roles). With
authentication off, everyone is an administrator everywhere.
Highest first. A role holding a service’s grant implies that every role above it holds one too.
| Role | Intended for |
|---|---|
platform-admin |
Running the platform: administrator in every service |
data-engineer |
Building and running pipelines, models and metadata |
analyst |
Reading and building dashboards on published data |
viewer |
Reading dashboards and metadata |
What each role opens
Section titled “What each role opens”A role with no entry for a service is denied at the perimeter, before the request reaches the service. The cell is the role the person gets inside the service. A grant applies on every enabled stage.
| Service | platform-admin |
data-engineer |
analyst |
viewer |
|---|---|---|---|---|
| Portal | opens | opens | opens | opens |
| Dagster | full | full | denied | denied |
| Trino UI | opens | opens | denied | denied |
| Superset | Admin |
Alpha |
Gamma |
read-only |
| OpenMetadata | Admin |
write |
read |
read |
Trino /v1 (olf query) |
opens | opens | opens | opens |
A person refused a service sees an “Access is role-restricted” page.
What each role reads and writes
Section titled “What each role reads and writes”With GitHub sign-in, olf query runs SQL as you
(CLI reference). Your role then decides, per stage
and medallion layer, which tables you read and write. Polaris enforces it, and
the storage credentials your query reads with are issued for those tables
only.
| Role | DEV | UAT | PROD |
|---|---|---|---|
platform-admin |
write every layer | write every layer | write every layer |
data-engineer |
write every layer | read every layer | read every layer |
analyst |
read Gold | read Gold | read Gold |
viewer |
none | read Gold | read Gold |
Writing includes creating schemas and tables. A role that may only read is
refused when it writes: by Polaris for a new schema or table, and by storage for
new rows, because its credentials are read-only. The rows apply only with GitHub
sign-in, to olf query, the platform API’s queries and Superset’s dashboards,
which query as each viewer. Pipelines and dbt do not use them: they write as the
stage’s processing principal, as does olf infra query. Bronze has no row: it is
raw files with no catalog namespace, and only the stage’s own pipelines reach it.
The source is data_access in release/identity-roles.yaml; the rules are
ADR 0019 D1 and D2.
How Polaris holds it
Section titled “How Polaris holds it”Each row is held as Polaris objects, so no query engine carries a role
(ADR 0019 D5, D7). Names
carry the olf- prefix so they never collide with the workload principals.
| Object | Scope | Content | Created by, phase |
|---|---|---|---|
Principal github |
realm | Every person’s Dex token names it (the Dex connector id); granted the four principal roles below and olf-signed-in |
olf’s Polaris bootstrap, platform |
Principal role olf-signed-in |
realm | No catalog role. Active on every person’s request, so the active role set is never empty | bootstrap, platform |
Principal roles olf-platform-admin, olf-data-engineer, olf-analyst, olf-viewer |
realm | Each assigned the catalog role its data_access row needs, per stage catalog |
bootstrap, platform |
Catalog role olf-write |
each lakehouse_<stage> |
CATALOG_MANAGE_CONTENT on the catalog |
bootstrap, platform |
Catalog role olf-read |
each lakehouse_<stage> |
On the catalog: TABLE_READ_DATA, NAMESPACE_READ_PROPERTIES, VIEW_READ_PROPERTIES |
bootstrap, platform |
Catalog role olf-gold-read |
each lakehouse_<stage> |
NAMESPACE_LIST on the catalog; on each Gold namespace: TABLE_READ_DATA, NAMESPACE_READ_PROPERTIES, VIEW_READ_PROPERTIES |
catalog grant: bootstrap, platform; namespace grants: olf infra catalog sync-namespaces, artifacts |
Principal trino-catalog-<stage> |
realm | No catalog role: the credential of the stage Trino’s catalog, used only for the configuration call | bootstrap, platform |
| Principal-roles mapper | Polaris chart values | Roles from groups and federated_claims/connector_id; one mapping per role_mapping value to PRINCIPAL_ROLE:olf-<role>, plus the connector id to PRINCIPAL_ROLE:olf-signed-in; regexes use character classes and no backslash |
Terraform, platform |
TABLE_READ_DATA implies TABLE_READ_PROPERTIES and TABLE_LIST, and is what
read delegation needs, so a read grant yields read-only storage credentials;
only CATALOG_MANAGE_CONTENT yields write credentials. Grants on a catalog
apply to everything in it, including namespaces and tables created later.
olf-read lists namespaces without NAMESPACE_LIST.
Per service
Section titled “Per service”Portal
Section titled “Portal”Every signed-in person with a role opens it. It lists the services and, with GitHub sign-in, links to the organization’s teams page where membership is managed.
Dagster
Section titled “Dagster”Dagster has no authorization of its own, so the perimeter is the only control.
platform-admin and data-engineer have full capability: launching jobs with
run configuration, terminating and deleting runs, reloading code locations and
toggling schedules. The pods that run those jobs hold the stage’s storage and
catalog credentials, so assign data-engineer on that basis.
Trino UI
Section titled “Trino UI”platform-admin and data-engineer open the Trino web UI. analyst and
viewer do not. The UI opens as the fixed user olf-web behind the
perimeter. Opening it changes nothing about what a query may read: Trino
holds no credential and no access rules of its own, and Polaris decides each
table access from the token the query carries (see
CLI and automation). Your own queries go through
olf query
(What each role reads and writes).
Superset
Section titled “Superset”| Action | platform-admin (Admin) |
data-engineer (Alpha) |
analyst (Gamma) |
viewer (read-only) |
|---|---|---|---|---|
| View published dashboards | all | all | granted schemas | granted schemas |
| Create and edit own charts and dashboards | yes | yes | yes, on granted datasets | no |
| Create and edit datasets | yes | yes | no | no |
| SQL Lab | yes | no | no | no |
| Add, edit, delete database connections | yes | no | no | no |
| Import and export dashboards, alerts and reports | yes | yes | no | no |
| User and role administration | yes | no | no | no |
analyst and viewer see the Gold schemas of the imported dashboards. SQL Lab
is for administrators only. The viewer role is a custom read-only role
(olf_viewer), because Superset has no read-only dashboard role of its own.
OpenMetadata
Section titled “OpenMetadata”| Action | platform-admin |
data-engineer |
analyst |
viewer |
|---|---|---|---|---|
| Search, browse, view assets and lineage | yes | yes | yes | yes |
| Edit descriptions, tags, glossary terms, tier, certification | yes | yes | no | no |
| Edit display names and lineage; trigger ingestion pipelines | yes | yes | no | no |
| Change owners | yes | yes | no | no |
| Create or delete entities | yes | no | no | no |
| Roles, policies, teams, users, bots, settings | yes | no | no | no |
With a GitHub App (not a hand-made OAuth App), a CronJob,
openmetadata-role-sync, applies these roles every 5 minutes from
the mapped GitHub teams: the administrator flag for platform-admin, the
DataSteward role for data-engineer, and neither for the others. A person in
no mapped team cannot sign in. The CronJob is applied from the
openlakeforge.yaml at the project root; a profile passed with -f is not
read for it. Mapped teams must have no child teams. An asset’s owner keeps full control of it
whatever their role, so reassign owned assets when you demote someone.
OpenMetadata’s local admin@open-metadata.org login does not work once sign-in
is on.
CLI and automation
Section titled “CLI and automation”olf infra commands, CI and the pods of the platform are not people and hold no
role; the platform commands olf login, olf whoami and olf query are the
exception and act as you, with your role. The others authenticate with
Kubernetes RBAC (your kubeconfig) or with a service credential from a Secret (to
Trino’s catalogs, the stage’s processing principal’s Polaris token), and reach
services through port-forwards or their in-cluster addresses, never through the
sign-in perimeter. Whoever holds the kubeconfig can therefore reach every
service; a role limits people, not cluster access. olf infra break-glass is
the recorded way to use that when the issuer is down (Break-glass
access).
OpenLakeForge roles are never cloud IAM permissions.
Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/reference/roles-and-permissions.md.