Skip to content

Make OpenMetadata stage-aware while excluding personal workspaces from canonical governance #131

Closed

Description

@malon64

Target release: v0.3-alpha — Deployment Profiles, Stages, and Promotion
Priority: P1
Tracker: #111

Context

v0.3 keeps one shared OpenMetadata deployment while representing canonical shared stages separately. Personal DEV workspace outputs remain intentionally outside the canonical governance catalog.

The stage data-plane identity is already explicit:

Polaris/Trino catalogs:
  lakehouse_dev
  lakehouse_uat    # optional
  lakehouse_prod

OpenMetadata service roots:
  database:  lakehouse_dev / lakehouse_uat / lakehouse_prod
  dashboard: superset_dev / superset_uat / superset_prod
  pipeline:  dagster_dev / dagster_uat / dagster_prod

Business Domains remain business concepts; DEV/UAT/PROD are lifecycle stages, not OpenMetadata Domains.

Architecture decisions

  • Deploy one OpenMetadata instance when at least one enabled stage has governance: true.
  • Use deterministic stage-qualified database/dashboard/pipeline service roots.
  • Represent stage through managed classification/tag/property, not Domain hierarchy.
  • PROD is the canonical governance/lineage surface; shared DEV ingestion is optional according to stage capability.
  • Personal ws_<user>_* namespaces are excluded from canonical crawling/reconciliation.
  • Ambiguous cross-stage OpenLineage identity fails closed; DEV lineage may remain disabled rather than contaminate PROD entities.

Scope

Acceptance criteria

  • One OpenMetadata deployment can represent DEV and PROD, plus optional UAT, with deterministic separate service roots.
  • Database service identity aligns to lakehouse_dev, optional lakehouse_uat, and lakehouse_prod.
  • Dashboard/pipeline services are stage-qualified (superset_<stage>, dagster_<stage>).
  • Business Domains are not duplicated into DEV/PROD pseudo-domains.
  • Stage is visible/filterable through managed classification/tag/property.
  • Reconciliation for one stage cannot overwrite/delete another stage's managed entities.
  • Personal ws_<user>_* namespaces do not appear through the normal canonical ingestion flow.
  • PROD lineage resolves only to canonical PROD entities.
  • DEV OpenLineage is either stage-safe and tested or explicitly disabled; ambiguous identity is never accepted silently.
  • DEV workspace/local DuckDB execution does not require OpenMetadata.

Non-goals

  • One OpenMetadata deployment per stage or per workspace.
  • Full DEV lineage parity with PROD.
  • Modeling lifecycle stage as an OpenMetadata Domain.
  • SSO/RBAC policy for stage visibility.

Dependencies and sequencing

Activity

  1. added
    roadmap
    on Aug 19, 2026
  2. changed the title [-]Make OpenMetadata stage-aware while keeping DEV workspaces out of the governance catalog[/-] [+]Make OpenMetadata stage-aware while excluding personal workspaces from canonical governance[/+] on Aug 19, 2026
  3. self-assigned this
    on Aug 19, 2026
  4. added
    priority: P1
    on Aug 27, 2026
  5. malon64 commented on Sep 9, 2026

    @malon64
    CollaboratorAuthor

    Scope reconciliation — the shared instance and stage gating exist; stage qualification does not

    Auditing the milestone against main (e5134a0). This is the least-started of
    the three remaining P1 features, and the gap is sharper than the issue body
    implies.

    Already delivered by #133 / #114

    The "one shared OpenMetadata deployment when at least one enabled stage has
    governance: true" architecture decision is implemented:
    local/main.tf:283 is count = local.governance_enabled ? 1 : 0, where
    governance_enabled is true when any enabled stage asks for it.

    Stage capability gating exists. local.governed_stages filters the enabled
    stages by governance, and the Dagster module receives enabled = local.governance_enabled && each.value.governance — so a stage that did not
    enable governance gets no OpenLineage configuration and no ingestion-bot
    credential. workload_namespaces is already scoped to governed stages only,
    and revoked_namespaces covers the rest.

    Stage-qualified catalog identity, which this issue's service roots must align
    to, is already canonical: lakehouse_<stage>, validated in
    provider_contracts.py.

    What actually remains — effectively all of it

    tools/olf/olf/openmetadata/ contains zero occurrences of the word
    "stage".
    grep -rn stage tools/olf/olf/openmetadata/ | wc -l returns 0
    across _config.py, _orchestration.py, _payloads.py, _reconciliation.py.

    Worse than absent — the current model actively picks one stage and
    registers a single service for it. local/main.tf:89-90:

    governance_superset_stage = local.selected_stage_analytics ? local.selected_stage : try(sort(keys(local.analytics_stages))[0], local.selected_stage)
    governance_dagster_stage  = contains(keys(local.governed_stages), local.selected_stage) ? local.selected_stage : try(sort(keys(local.governed_stages))[0], local.selected_stage)
    

    and the module takes scalars, not maps —
    modules/governance/openmetadata/variables.tf:201 dagster_webserver_url,
    :213 superset_url. So today OpenMetadata registers one Dagster pipeline
    service and one Superset dashboard service, pointed at whichever stage
    those two expressions selected.

    That means the deterministic stage-qualified roots this issue specifies —
    dagster_<stage>, superset_<stage>, lakehouse_<stage> — do not exist, and
    the acceptance criterion "reconciliation for one stage cannot overwrite or
    delete another stage's managed entities" has nothing to enforce it, because
    there is only one set of managed entities.

    Open work:

    1. Turn the two selected-stage scalars into per-governed-stage service
      registration with deterministic <service>_<stage> roots.
    2. Stage-scope reconciliation in olf/openmetadata/_reconciliation.py so one
      stage's run cannot touch another's managed entities.
    3. Add the managed OpenLakeForgeStage classification/tag, keeping business
      Domains free of DEV/UAT/PROD pseudo-domains.
    4. Exclude ws_<user>_* namespaces from canonical ingestion.
    5. Resolve the OpenLineage namespace/stage mapping — or explicitly disable DEV
      canonical lineage, per the fail-closed decision in the issue body.

    Sequencing

    This depends on #134 and #130 landing their service identities first: step 1
    registers dagster_<stage> and superset_<stage>, which those two issues
    create. Starting here before them means inventing names they may not produce.

    Two pre-existing constraints to design around

    docs/technical-debt.md records both, and neither is introduced by this issue:

    • The OpenMetadata Dagster connector is deferred. The pipeline service and
      ingestion pipeline are registered but never triggered, because the connector
      uses the deprecated PipelineRuns GraphQL type while Dagster 1.x uses Runs
      — still true in OpenMetadata 1.13.0-release. Stage-qualified registration
      is achievable; stage-qualified pipeline ingestion is blocked upstream. The
      acceptance criteria should be read against registration.
    • OpenMetadata metadata seeding is imperative, through script-driven REST
      calls, with no stale managed-asset reconciliation. Making reconciliation
      stage-scoped is a good moment to address that, but it widens the change —
      worth deciding deliberately rather than absorbing.
  6. 9 remaining items

  7. malon64 commented on Sep 29, 2026

    @malon64
    CollaboratorAuthor

    Scope decisions (maintainer, 2026-09-29)

    Remaining for v0.3: the OpenLineage namespace. Every governed stage's Dagster currently sends lineage under the literal namespace dagster (infra/terraform/modules/orchestration/dagster/main.tf), while each stage's pipeline service is dagster_<stage>. With DEV and PROD both governed, their lineage collapses into one ambiguous namespace, which the "ambiguous identity is never accepted silently" criterion forbids. A PR follows.

  8. malon64 commented on Sep 29, 2026

    @malon64
    CollaboratorAuthor

    Closing for v0.3. Against the acceptance criteria:

    Criterion Status Evidence
    One OpenMetadata represents DEV, PROD (and optional UAT) with deterministic separate roots ✅ #237 registers every governed stage; #244 asserts the roots in each stage's nightly suite
    Database identity aligns to lakehouse_<stage> ✅ <service>.lakehouse_<stage> per stage (#237). Since #252, each stage's catalog is also crawled into its own root through Trino
    Dashboard/pipeline services are stage-qualified ✅ superset_<stage>, dagster_<stage> (#237, #244)
    Business Domains not duplicated into stage pseudo-domains ✅ stage is carried by service identity, never a Domain (ADR 0007)
    Stage visible/filterable ✅ through the stage-qualified roots. The OpenLakeForgeStage tag was dropped by decision (2026-09-29)
    One stage's reconciliation can't touch another's entities ✅ #211 stage-scoped reconciliation
    ws_<user>_* excluded from canonical ingestion ➡️ moved to Post-beta Developer Workspaces with #117/#118; nothing creates workspace namespaces yet
    PROD lineage resolves only to canonical PROD entities ✅ #252: OpenMetadata 1.13.6 resolves by <service>.<database>.<schema>.<table>. The nightly asserts in both stages that every Gold table has upstream lineage and that none of it reaches another stage's database
    DEV OpenLineage is stage-safe and tested, or disabled ✅ stage-safe and tested: every governed stage emits under its own dagster_<stage> namespace, with auto-created entities (#252)
    DEV workspace/local DuckDB doesn't require OpenMetadata ➡️ workspaces and local DuckDB are post-beta (#117/#118)

    Moved to Post-beta Cloud Integrations: AWS OpenMetadata registration. Deferred review points are tracked in #256.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: P1roadmap

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions