Architecture Decision Records
These twenty-one records describe the decisions that shape OpenLakeForge today. Each is binding: if the code disagrees with one, either the code is wrong or the ADR is, and one of them gets fixed.
An ADR is rewritten in place when its decision changes, with a History footer
recording what it absorbed. The log is not an append-only archive — a superseded
decision is interesting until it stops explaining anything about the current
system, and then it lives in git log rather than here.
Start here
Section titled “Start here”0001 for what the platform is made of, 0002 for how it deploys, 0004 for
how user code is laid out, and 0008 for why olf is the only interface.
| ADR | Decision |
|---|---|
| 0001 | Platform baseline and component stack — Kubernetes-native, batch-first, Iceberg; dlt → Floe → dbt-trino → Trino, with Dagster orchestrating and OpenMetadata/Superset optional |
| 0002 | Deployment lifecycle — three ordered phases (foundation, platform, artifacts) in two lifecycle categories (static infrastructure vs. code-derived artifacts); the static/dynamic split is the CD boundary |
| 0003 | Provider contracts are the portability boundary — typed Terraform contracts per capability; components consume contracts, never providers; consumers branch on catalog_type |
| 0004 | Medallion layout, ownership, and catalog namespaces — lakehouse_code/ replaces domains/; Bronze is source-owned, Silver domain-owned, Gold product-owned; per-layer buckets and flat namespaces |
| 0005 | The descriptor model — governance.yml (domains and products) + source.yaml, one shared openlakeforge-core implementation; tables belong to a domain or product by schema |
| 0006 | Dagster runtime and code locations — one project-code image, one merged code location by default, Kubernetes run launcher, Floe as one Kubernetes Job per domain on the same image |
| 0007 | Governance and lineage — OpenMetadata with native OpenLineage emitted by the engine that performed the write; the proxy and custom REST push stay rejected |
| 0008 | olf owns orchestration and its managed toolchain — no tracked shell, olf provisions its own Terraform/Helm/kubectl/kind, cloud auth through SDKs |
| 0009 | Distribution — a PyPI package carrying a verified platform payload; installed project root is the current directory; olf init |
| 0010 | Cloud provider implementations — AWS replaces contract implementations (S3, RDS, Glue, Pod Identity), Azure relocates hosting (AKS/ACR); both POC maturity |
| 0011 | Deployment Profile v1beta1 — provider, stage, and preset are separate typed concepts; openlakeforge.yaml resolves to one effective DeploymentTopology before any Terraform, Helm, or Kubernetes object exists |
| 0012 | Project revisions — a build-once, content-addressed ProjectRevision covering descriptors, Floe contracts, dbt, Dagster, reports, and the project-code image digest; excludes deployment intent and every stage-rendered artifact |
| 0013 | Service access — one ingress everywhere, configured by access.base_domain + access.tls; stage-derived HTTPS routes in shared.access; internal endpoints cannot be user-facing; port-forward only as a dev fallback |
| 0014 | Identity and authorization — three seams (role model, issuer, perimeter), each with its own adapter; canonical roles are the only vocabulary and provider mappings are keyed by them; GitHub teams through Dex are the deployed issuer, with external for any other OIDC issuer; user administration is GitHub’s; OpenLakeForge roles are never cloud IAM |
| 0015 | Polaris identity-provider evaluation — Polaris 1.4.0 can validate issuer tokens but still owns principals and grants; deferred, with the catalog-side findings for the data-plane assessment (#179) |
| 0016 | Trino workload authentication — none — Trino has no authentication, no access rules and no HTTPS listener on the local root; every caller sends its own token and Polaris decides (ADR 0019 section 9, #983); the Web UI signs in as a fixed user behind the perimeter; AWS keeps claim-based rules for Glue until it moves to Polaris (#681) |
| 0017 | Local NetworkPolicy and RBAC — default-deny ingress and egress for olf-system and stage namespaces with a derived flow table, an enforcing-dataplane gate and canary, the RBAC inventory with its exceptions, and the conformance plan; built for the local root (canary, flow table, policies, RBAC), with the cluster-side behaviour of the access-plane rows still unproven; kindnet stays the CNI |
| 0018 | GitHub is the forge — source, CI, release and project images on GitHub today; client CD in GitHub Actions and people and roles from GitHub organisation teams through Dex are decided; olf users removed |
| 0019 | Data-plane authorization — Dex identity, Polaris grants — built for local (#674): olf query runs a person’s SQL with their Dex sign-in, and their canonical role reaches Polaris, whose per-stage catalog grants decide read and write by layer (analyst Gold, viewer UAT and PROD Gold, data-engineer DEV write, UAT and PROD read); engine-agnostic: no engine carries roles, and Polaris vends the storage credentials a person’s query reads with, so DuckDB can follow Trino; AWS to follow on Polaris instead of Glue (#681); Superset stays on the shared principal (V/T marked, #367); section 9 (#960, decided, not built) extends Polaris to every caller: one Trino per stage, per-stage processing principals, a keyless engine, Superset per user, OpenMetadata governing its own users |
| 0020 | Infrastructure, common and platform CLI surfaces — a command’s surface follows the credential it needs: olf infra for cluster and cloud permissions, top-level for no permissions, and a Dex-session platform surface (login, query, and reads through the platform API); old paths stay as hidden aliases; non-interactive platform authentication is short-lived, scoped and never a human token |
| 0021 | The platform API — decided, build step 1 done (every service client and operation is in packages/lakehouse-services) and build steps 3 and 4 begun (packages/platform-api serves Dagster jobs and runs and OpenMetadata domains and data products, which olf jobs, runs, domain list and product list read): one Python backend in this repository serves the portal, olf’s platform commands and agents; a call carries the person’s token wherever the service authorizes it (Trino through Polaris grants, OpenMetadata by its own roles), directly from the CLI or forwarded unchanged by the API; only calls to services that cannot take it (Superset, Dagster, the object store) use the API’s narrowest service credentials, and for those the API validates tokens and enforces a tested role matrix; service operations move to a shared library both olf infra and the API call, and the artifacts phase keeps calling it directly |
Related
Section titled “Related”../technical-debt.md— known weaknesses, mitigations, and the fix path for each../architecture/README.md— how the platform works, as opposed to why it was decided
Synced from openlakeforge @ v0.6.0-alpha.3 (882b426), docs/adr/README.md.