Repository navigation
Description
Milestone intent
Milestone: v0.3-alpha — Deployment Profiles, Stages, and Promotion
Status: Rebased against released v0.2.0-alpha.1 on 2026-08-27.
OpenLakeForge will introduce a versioned Deployment Profile, isolate shared DEV
and PROD stages on one Kubernetes cluster, and promote one immutable project
revision without rebuilding source or copying data/runtime state.
This release intentionally establishes the stage and promotion architecture
before secure identity, secret management, ingress/networking, and full
observability are attached to it.
Release cut line
v0.3 contains:
- one provider-neutral Deployment Profile;
- shared DEV and PROD, with optional UAT;
- one shared cluster and explicitly shared versus stage-scoped services;
- stage-isolated storage, catalog/query access, and Dagster state;
- stage-aware Superset and OpenMetadata when their capabilities are enabled;
- a build-once immutable project revision;
- exact-revision promotion and executable cross-stage isolation gates.
The following work moved out of v0.3:
- Run personal DEV workspaces locally with DuckDB over Iceberg catalog adapters #117 and Implement personal DEV workspace lifecycle and catalog namespace isolation #118: personal workspaces and local DuckDB execution moved to
Post-beta — Developer Workspaces; - test(customer): external API project and deterministic ~100-table workload #110: realistic source ingestion is a v0.6-beta prerequisite;
- Bootstrap durable remote Terraform state for the secure AWS reference #132: cloud remote-state bootstrap returned to
v0.4-alpha — Secure Service Access.
v0.3 keeps the existing foundation and platform Terraform roots. Stage-scoped
resources are initially owned by the platform root rather than introducing one
Terraform state per stage. A later remote-backend migration can change state
storage without first splitting resource ownership across cyclic roots.
Terms
- Provider: where the deployment runs (
local,aws,azure). - Stage: a shared lifecycle boundary (
dev, optionaluat,prod). - Capability: product behavior enabled for a stage, initially analytics and
governance. - Project revision: a complete immutable build of project-owned code and
artifacts promoted unchanged between stages.
A provider is not a stage. A stage is not a Kubernetes cluster. Runtime choice
is not exposed while Trino remains the only supported shared-stage runtime.
Deployment Profile v1
The project-root openlakeforge.yaml describes product intent, not Terraform,
Helm, or Kubernetes implementation details.
apiVersion: openlakeforge.io/v1alpha1
kind: DeploymentProfile
metadata:
name: acme-data
spec:
provider:
type: aws
region: eu-west-3
preset: slim
stages:
dev:
enabled: true
prod:
enabled: true
capabilities:
analytics: true
governance: trueFrozen v1 rules:
devandprodare canonical shared stage names;uatis optional.- A missing stage is disabled; PROD is never created implicitly.
- Capabilities exist only at stage level.
slimandfullare preset/default sets, not separate architectures.- Provider, stage, and capability are separate typed concepts.
runtime, workspaces, raw resource sizing, availability, replicas, Helm
values, Terraform modules/backends, credentials, image tags, physical
buckets/catalogs, and generated endpoints are not profile fields in v1.- Unknown fields, versions, and illegal combinations fail closed.
olf profile validateandolf profile resolve --jsonexpose the effective
topology before mutation.- Existing
olf deploy --provider local --profile slim|fullremains a
deprecated shorthand that resolves a single DEV-stage profile.
Platform topology
One OpenLakeForge deployment uses one Kubernetes cluster:
cluster
├── olf-system
│ ├── shared PostgreSQL infrastructure
│ ├── one catalog service where the provider uses one
│ ├── one Trino service
│ └── one OpenMetadata service when governance participates
├── olf-dev
│ ├── Dagster DEV
│ └── Superset DEV when analytics=true
├── olf-uat # optional
│ ├── Dagster UAT
│ └── Superset UAT when analytics=true
└── olf-prod
├── Dagster PROD
└── Superset PROD when analytics=true
Dagster and Superset have isolated metadata state per stage. OpenMetadata
remains shared and represents deterministic stage-qualified service roots.
Stage data-plane contract
The provider contract, not the Deployment Profile or project descriptor,
derives physical names.
- Keep distinct Bronze, Silver, and Gold storage identities inside every
stage, preserving ADR 0004's IAM/lifecycle boundary. - Keep ops artifacts outside stage lakehouse storage.
- Local and Azure use the Polaris adapter; AWS uses the Glue adapter.
- Do not specify Polaris as the generic stage contract.
- Define stage-aware provider-contract v3 and prove AWS Glue isolation #153 must prove collision-free AWS Glue and Trino mapping before Implement provider-neutral stage storage, catalog, and namespace isolation #114 freezes
physical naming. - DEV-generated runtime configuration must not resolve PROD objects, and vice
versa.
Logical business asset keys remain the same across stages. Stage identity is a
runtime/catalog boundary, not a prefix added to Dagster business asset keys or
to lakehouse_code descriptors.
Project revision and promotion
v0.2's immutable revision covers Floe runtime artifacts only. #154 introduces
the complete promotable project revision before #115 implements stage
activation.
The revision covers the project-code image digest, Floe revision, descriptors,
dbt and Dagster artifacts, project metadata, and Superset report bundles when
present. It contains no credentials or target-stage endpoints.
Promotion means:
- build and verify one immutable project revision;
- activate that exact revision in shared DEV;
- validate it;
- optionally activate the same revision in UAT;
- activate the same revision in PROD.
Promotion never rebuilds mutable source and never copies Bronze, Silver, Gold,
Dagster state, Superset state, or OpenMetadata state between stages. Each stage
computes from its own Bronze boundary.
Ordered implementation plan
Priority labels express release importance; the dependency order below is the
implementation sequence.
| Order | Priority | Issue | Outcome |
|---|---|---|---|
| 1 | P0 | #112 | Close the remaining external-project boundary gaps without renaming the canonical dashboards/ or pipelines/ paths. |
| 2 | P0 | #113 | Parse and resolve the minimal Deployment Profile v1. |
| 3 | P0 | #153 | Define provider-contract v3 and prove AWS Glue stage isolation. |
| 4 | P0 | #133 | Make the shared-cluster platform root stage-aware. |
| 5 | P0 | #114 | Provision stage data-plane isolation through provider adapters. |
| 6 | P0 | #154 | Build and verify a complete immutable project revision. |
| 7 | P0 | #115 | Activate an existing project revision in a selected stage. |
| 8 | P1 | #116 | Seed deterministic raw DEV Bronze from project CSV fixtures. |
| 9 | P1 | #134 | Deploy isolated Dagster instances per shared stage. |
| 10 | P1 | #130 | Add stage-aware Superset authoring and report promotion. |
| 11 | P1 | #131 | Add stage-qualified OpenMetadata reconciliation. |
| 12 | P1 | #155 | Prove runtime isolation and exact-revision reuse end to end. |
| 13 | P2 | #119 | Publish the final reference promotion CI/CD workflow. |
Release gates
- Profile validation/resolution is deterministic and machine-readable.
- Unknown profile/contract fields and versions fail closed.
- A fresh local Slim profile creates isolated DEV and PROD stages.
- Optional UAT can be added without changing DEV/PROD identities.
- DEV credentials/configuration cannot read or write PROD through normal
generated paths, and vice versa. - DEV and PROD have isolated Dagster operational state.
- The exact same project revision digest deploys to DEV and PROD without a
rebuild. - Promotion copies no lakehouse data or mutable service state.
- Full-profile conformance proves isolated Superset state and
stage-qualified OpenMetadata service roots. - Stage removal requires an explicit destructive lifecycle.
- The v0.2 single-stage CLI has a documented compatibility/migration path.
- Repository checks, Ruff, unit tests, and fresh multi-stage conformance all
pass.
Non-goals
- Personal or per-PR workspaces.
- DuckDB as a shared-stage or workspace runtime in v0.3.
- Live external-source examples.
- Remote Terraform backend bootstrap or per-stage Terraform states.
- Keycloak/OIDC, External Secrets, ingress/TLS, full network policy, or full
observability. - Streaming, hard multi-tenancy, per-stage clusters, or high availability.
Follow-up sequence (2026-09-15)
#183 owns the revised roadmap: v0.4 secure access, v0.5 identity, v0.6 beta readiness, then separate workspace, monitoring, cloud integration and cost optimization milestones. This does not change v0.3's release scope. #110 belongs to beta, #117/#118 to post-beta workspaces, and #132 to the secure-access milestone.
Activity
[-]v0.3-alpha plan: Stages, Workspaces, and Promotion[/-][+]v0.3-alpha plan: Stages, Workspaces, Analytics, and Promotion[/+]malon64 commentedon Aug 19, 2026
Architecture freeze — v0.3 deployment contract
The following decisions are now frozen as the v0.3 target architecture. They are the reference point for reorganizing the implementation subissues once the full milestone scope is complete. Changes to these decisions should be explicit architecture revisions, not incidental implementation choices.
1. Deployment Profile v1 is the user-facing platform contract
An operator creates an OpenLakeForge deployment from one versioned YAML Deployment Profile. The file describes the desired data-platform shape; it does not expose Terraform, Helm, Kubernetes or provider-specific implementation details.
The v1 contract is:
Frozen semantics:
runtimeis the execution choice inside a stage/workspace (duckdb,trino, laterspark).slimandfullremain convenience presets/default sets, not separate deployment architectures.platform.sizedescribes shared/control-plane platform footprint; stagecompute.sizedescribes stage workload-capacity intent.small,medium,large) and provider/runtime adapters translate it to concrete resources.storage.sizerepresents expected storage/platform footprint, not necessarily a hard S3/Blob quota. Workspacestorage_quotais a real bounded allocation where appropriate.analytics,governance) instead of implementation switches (superset,openmetadata).dagster.instances,superset.instances, replica counts, namespaces, Helm values, Terraform variables, etc.olfowns the typed resolution boundary:Conceptual user commands remain:
Exact CLI spelling can evolve, but this abstraction boundary is frozen.
2. User repository and
lakehouse_codemonorepo structureThe OpenLakeForge user's repository is a data-platform project, not an IaC repository.
The golden-path repository created/initialized by
olf initis conceptually:Frozen ownership semantics:
lakehouse_code/bronze/<source>— source-aligned extraction/ingestion and Bronze logic.lakehouse_code/silver/<domain>— domain-aligned Silver transformations/contracts.lakehouse_code/gold/<product>— product/use-case-aligned Gold models.lakehouse_code/dashboard/<product>— product dashboards/report artifacts, including Superset assets when analytics is enabled.lakehouse_code/pipeline/<product>— user-maintained Dagster/pipeline definitions for the product.The user repository does not contain copies of OpenLakeForge Terraform roots/modules, Helm charts or generated Kubernetes manifests. Those remain part of the versioned OpenLakeForge distribution/toolchain.
The Deployment Profile and
lakehouse_codelive in the same project repository by default so platform intent and the data-platform project can evolve through normal Git review. A future external/split repository model may be supported through the project-root contract, but the monorepo above is the v0.3 golden path.3. Shared Kubernetes cluster is the v0.3 golden path
OpenLakeForge targets small teams and should minimize recurring operational cost and platform complexity. DEV/UAT/PROD therefore share one Kubernetes cluster per OpenLakeForge provider deployment in v0.3.
The cluster is logically divided by namespaces:
Frozen service lifecycle:
Stage labels/tags are required for discovery, cost allocation and operations, but tags are metadata, not the stage isolation mechanism. Stage isolation is structural: namespace, state ownership, storage/catalog/database boundaries and later IAM/network policies.
A future stricter profile may support cluster-per-stage deployments for larger/regulatory environments, but that is not part of v0.3. The v0.3 architecture should avoid making such an extension impossible later.
4. Cloud Terraform state is remote and bootstrapped by
olfCloud deployments must not rely on a developer's local Terraform state file.
The intended workflow is:
olf platform bootstrapexists because the Terraform backend must exist before the normal OpenLakeForge Terraform graph can safely use it.Provider intent:
The state backend is intentionally outside the normal platform destroy lifecycle; destroying the platform must not silently destroy the state required to reason about that platform.
Users do not author backend HCL in their project repository.
olfand its provider adapter configure the backend internally.5. Terraform state is split by ownership, including explicit stage state
DEV/PROD are real Terraform lifecycle dimensions. They are not implemented by deploying one resource set and adding a
stagetag, and OpenLakeForge does not use Terraform CLI workspaces for lifecycle stages.The logical state layout is:
Ownership is conceptually:
Optional UAT follows the same stage-root pattern.
One infrastructure resource has exactly one Terraform state owner. Shared resources such as Trino, Polaris and OpenMetadata must never be jointly managed by DEV and PROD state. The resolved platform topology gives shared resources the complete enabled-stage configuration they require (for example Trino DEV/PROD catalogs) while retaining one Terraform owner.
Terraform therefore knows DEV/UAT/PROD structurally through explicit stage inputs/state roots. Provider tags/Kubernetes labels additionally annotate resources with deployment and stage identity but never substitute for that ownership boundary.
Terraform CLI workspaces are not used for OLF lifecycle stages. This also avoids collision with the OpenLakeForge term workspace, which exclusively means a lightweight personal DEV data workspace.
6. Personal DEV workspaces remain outside Terraform
Creating/resetting/deleting a developer workspace must be a cheap runtime/control operation and must not create Terraform state or provision platform copies.
Conceptually:
It must not create a Kubernetes cluster, namespace-per-user, Dagster instance, Superset instance, OpenMetadata instance, Trino instance, PostgreSQL server or Terraform workspace/state root.
7. Platform lifecycle and project lifecycle are separate
Terraform is used when the platform shape changes, primarily through
openlakeforge.yaml.Normal data-team changes under
lakehouse_code/follow the project lifecycle instead:A transformation, source, dashboard or Dagster product-code change must not require a Terraform apply simply because project code changed.
The immutable project revision contains the user project artifacts required for promotion, while platform state remains managed independently.
These decisions are now the frozen v0.3 deployment baseline for #111. The current subissues remain provisional and should be re-cut/reordered only after the remaining architecture questions are resolved against this baseline.
19 remaining items
[-]v0.3-alpha plan: Stages, Workspaces, Analytics, and Promotion[/-][+]v0.3-alpha plan: Deployment Profiles, Stages, and Promotion[/+]feat: build and verify an immutable project revision (#154) (#160)
malon64 commentedon Sep 16, 2026
Milestone-close acceptance: manual DEV+PROD stack review
Deferred to milestone close by decision, rather than done piecemeal. When v0.3 is
otherwise complete, deploy one full-preset DEV+PROD profile locally and
inspect the UIs by hand:
lakehouse_devandlakehouse_prodcatalogs both present and non-collidinglakehouse_<stage>,superset_<stage>,dagster_<stage>Prerequisite, and the reason this is not worth doing sooner: OpenMetadata
registers only ONE stage today.
environments/local/main.tfstill resolves asingle
governance_dagster_stage/governance_superset_stage(lines ~89-90)and instantiates
module "openmetadata"withcount, not per governed stage.#211 landed stage-scoped reconciliation — a PROD deploy can no longer write
DEV's entities — but multi-stage registration is #131's later slice and is not
built. Running this review before that lands shows one stage's services and
proves nothing about the governance gate.
Note also that the conformance profile from #216 (
openlakeforge.conformance.yaml)is Slim, so it deploys neither Superset nor OpenMetadata —
_preset_defaultsresolves both capabilities to false. This review needs its own full-preset
DEV+PROD profile.
Footprint: roughly double the pod count of the full single-stage stack, which
already takes ~18 minutes to deploy in CI. Worth checking Docker's memory
allocation before starting, or it fails on scheduling rather than on anything
real.
malon64 commentedon Sep 16, 2026
Slice tracker — where every open v0.3 issue actually stands
Sliced issues are hard to count: an issue stays open across several PRs and
"open" stops meaning "untouched". This is the state as of
c8a1b83.In development right now
olf project deployimports the frozen reports componentolf report export/import· REST migration off in-podkubectl exec· export by stable UUID notdashboard_title· canonical-Gold + pinned-version rules · #131 governance hookOpenLakeForgeStagetag · OpenLineage stage safety ·superset_<stage>(blocked on #130)Sliced, paused — blocked on a cluster or another issue
Not started
superset.py, which #130 slice 4 is editingClosed this cycle
#134 (#199, #202) · #187 (#213, #215) · #204 (#214) · plus #207 fixing the
nightly topology mismatch and #217 retiring the textual schema restriction.
Deferred to v0.4: #203 rendered Dagster bindings, #206 derived exports by
identity — both subsumed by #155's runtime proof.
Counting rule that makes this legible
An issue closes only when its last slice lands. A PR says "Part of #N"
until then, so
Closesin a PR body is the signal that an issue is genuinelyfinished — anything else leaves it open on purpose.
fix: revoke default PUBLIC connect on the RDS bootstrap path too
fix: revoke default PUBLIC connect on every stage metadata database (#…
malon64 commentedon Sep 29, 2026
Release gates: evidence (2026-09-29)
All 12 gates are met on
main. The multi-stage nightly (local-full-e2e.yml, full DEV+PROD conformance profile) proves the runtime ones every night.olf profile validate,olf profile resolve --jsonolf platform apply -f openlakeforge.conformance.yamlbuild-revision;deploy-stageasserts the recorded revision in each stagefull), #244 (roots). Since #252, per-stage lineage never crosses stages--allow-stage-removal), proven in the nightlydocs/setup/local.md, ADR 0011olf initproject on the built wheel (#255)Remaining before closing v0.3: the manual DEV+PROD stack review (comment of 2026-09-16), then the
v0.3.0-alpha.1release. Deferred follow-ups: #249, #251 and #256 (v0.4/v0.6).malon64 commentedon Oct 1, 2026
Released as v0.3.0-alpha.1: tag on
c475bcc, published by run 36885204867 (attempt 2, after re-registering the PyPI trusted publishers underOpenLakeForge), with dry run 36884732828 beforehand.openlakeforgeandopenlakeforge-domain-model0.3.0a1 are on PyPI, and the signedproject-codeandsupersetimages, SBOMs, checksums and bundle are attached to the release. The manual DEV+PROD review ran on main + #257 and passed both stages' full suites; it found #257. Follow-ups: #249, #251, #256.feat: build and verify an immutable project revision (OpenLakeForge#154…
fix: revoke default PUBLIC connect on every stage metadata database (O…
chore: prepare release 0.3.0-alpha.1 (OpenLakeForge#258)