Skip to content

Identity classes

View as Markdownllms.txt

Every authentication path on the platform belongs to exactly one of three identity classes, and the class names the mechanism that governs it. A workload can use several paths: a run pod is class 2 to Trino and class 3 to S3. This page is the contract documentation for those classes (#178); the path-by-path inventory is in identity-callers.md.

Class Who Governed by Never
1. Human A person reaching a service UI through the issuer: a GitHub account, or a user of an external OIDC issuer Canonical roles from the GitHub team mapping, or from the external issuer’s claim mapping (role_claim, role_mapping), enforced at the perimeter (ADR 0014, ADR 0018) Used by a deploy, a pipeline or any other automated path (the e2e perimeter test below is the one exception)
2. In-cluster workload and automation A pod calling another component, or olf and CI calling the cluster A service credential from a Kubernetes Secret, or Kubernetes RBAC A human account; routed through the perimeter; a member of a canonical role
3. Cloud workload A pod calling a cloud API (object storage, catalog, secrets) Cloud IAM through EKS Pod Identity or Azure workload identity A canonical role

A caller that reaches a service through the issuer is class 1. A caller that authenticates with a service credential or with Kubernetes RBAC is class 2, whether it runs in a pod or on a workstation, and even when a person started it. olf and CI are therefore class 2, with Kubernetes RBAC as their identity.

The consequence is that the four canonical roles apply to class 1 only. A role never grants a pod anything, and a service credential never signs a person in.

Item Detail
Identity A GitHub account, brokered by Dex into an OIDC token; or, with issuer: external, a user of that issuer
Authorization The highest canonical role among the person’s mapped teams, or among the roles the external issuer’s claim maps to (Roles and permissions)
Automated test of the perimeter olf e2e signs in through Dex as stub users, one per mapped role, against a stub GitHub it runs in olf-system. These users exist for the run, hold canonical roles, and are never used by a deploy or a pipeline: the one place a class 1 path is driven by automation, so that the perimeter’s redirects, role refusals and logout are tested through the public hostnames
Enforcement The perimeter (oauth2-proxy behind Traefik forwardAuth) refuses a route the role does not hold; with GitHub sign-in, Superset also maps the role to its native roles, and OpenMetadata gets its native roles only from the GitHub role sync. With issuer: external, Superset and OpenMetadata get no OIDC configuration: users pass the perimeter and then need each service’s own login
Lifetime Perimeter cookie 30 min idle, 10 h absolute; access token 5 min; with Dex, a revocation reaches the perimeter within about 5 min. With an external issuer, a removed role can last up to the issuer’s 10 h SSO lifetime when its refresh responses carry no ID token with the role claim (identity-sessions-and-recovery.md)
Operations Add, change or remove a member

Class 2: in-cluster workload and automation

Section titled “Class 2: in-cluster workload and automation”
Item Detail
Identity A ServiceAccount or kubeconfig user, or a service credential created in the cluster
Examples olf deploy, olf e2e and CI (RBAC, port-forward or in-cluster exec); Superset, dbt and OpenMetadata ingestion to Trino; Trino and Floe to Polaris; pods to PostgreSQL and object storage
Authorization Kubernetes RBAC for operators and CI. For pods, a per-service credential from a Secret that a bootstrap Job generates once and reuses
Network Reachability between pods is decided by default-deny NetworkPolicy (identity-network-policy-and-rbac.md)
Trino Callers authenticate to Trino with a password per principal over HTTPS when trino_workload_authentication is password. The local root defaults to password when the profile has spec.access, and to off otherwise (ADR 0016)
Rotation olf secrets rotate for dex-client-perimeter, dex-client-trino and github-app; the Superset and OpenMetadata clients are rotated by hand (Rotate secrets); other credentials as the inventory states (identity-credentials.md)

Workstation and CI automation reaches services by an RBAC-authorized kubectl port-forward or by in-cluster execution for routes protected by the perimeter, never through those public hostnames and never as a human or administrator account. With spec.access but no perimeter, olf uses the ingress hostname (access.service_url()). Who may automate is who holds pods/portforward and the Secret reads in RBAC.

Known limitation: a service credential is shared by every user of the component it fronts. Every Superset query reaches Trino as the stage’s runtime principal, whatever the person’s role. Per-user data access is deferred in ADR 0019.

Item Detail
Identity The cloud’s workload identity of a pod
Mechanism identity.aws_pod_identity on AWS, identity.azure_workload_identity_ready on Azure, both fields of the provider contract
Authorization Cloud IAM policy on that identity
Status, AWS Implemented: IAM roles with EKS Pod Identity
Status, Azure OIDC readiness only (identity.azure_workload_identity_ready)
Scope Exercising cloud credentials is outside the v0.5 scope

OpenLakeForge roles are never cloud IAM permissions, and a cloud identity never holds a canonical role.

When the issuer is down, a cluster administrator is a class 2 caller: their kubeconfig, not the issuer, is the authority. olf break-glass uses that to reach a service for a bounded time and records the use (Break-glass access). It does not turn the perimeter off.


Synced from openlakeforge @ v0.5.0-alpha.1 (1598142), docs/architecture/identity/identity-classes.md.