Platform model
SRDP stands for Single-Repo Data Platform. One repo holds every part of the platform. These parts are the Python package, the platform images, the Docker Compose stack, the Helm chart and the infrastructure code. We version and release these parts together, so they always fit each other. This is what "single repo" means. The idea comes from Instant OpenHIE, which packages a health information exchange the same way.
Your deployment configuration and your project code stay outside the platform.
They connect to it through configuration files, the srdp CLI and the srdp Python package.
You choose how to split them over repos.
This page explains how deployments, tenants and projects relate, and how they connect to the platform.
Solid boxes and lines in the diagrams exist today. Dashed ones are in an ADR, and we have not built them yet.
Base concepts
- A deployment is one running SRDP instance. It has its own Zitadel, PostgreSQL and storage. No tenant, project or role crosses from one deployment to another.
- A tenant is an organization in Zitadel. It has its own users and service keys. One tenant owns the deployment, and by default it is the only tenant.
- A project is a set of Dagster code locations, services and API endpoints. A tenant owns it. Users and service keys get a reader, writer or admin role per project.
A project and a repo are different things. You choose which repo holds the code of a project.
flowchart LR
subgraph dep["Deployment, one SRDP instance"]
subgraph owner["Tenant A, deployment owner"]
principals(["Users and service keys"])
subgraph p1["Project 1"]
p1c["Code locations, services, endpoints"]
end
subgraph p2["Project 2"]
p2c["Code locations, services, endpoints"]
end
cat[("DuckLake catalog<br/>shared by the tenant's projects")]
end
other(["Tenant B, optional participant"])
end
principals -- "role per project" --> p1
principals -- "role per project" --> p2
p1 --> cat
p2 --> cat
other -. "participates in" .-> p2
ADR-0005 and ADR-0006 define these concepts. The architecture page gives the full access model.
Repository model
The SRDP repo contains the platform. A deployment uses it as a package and as platform images. A deployment does not fork it.
Each deployment has one srdp.toml in its infra repo.
This file lists the projects.
Each project declares its code locations, services and endpoints in srdp-project.toml.
The deployment, the platform and the projects connect only through the srdp CLI, these two files and the srdp Python package.
srdp.toml refers to each project by repo, ref and path.
A project can have its own repo.
Several projects can share a repo.
A small deployment can keep everything in one repo.
Git access, tags and releases follow the split you choose.
Zitadel controls access in the running platform per project.
The repo split does not change this access.
Projects depend on the public API of the srdp package, which uses semver (ADR-0001).
From version 1.0, a project pins a major version.
A deployment pins the platform image version.
You can clone the SRDP repo for more control.
The secure defaults stay on.
To switch one off, you add an explicit line to srdp.toml.
We have not built these switches yet.
Today the just recipes need a clone.
The planned CLI removes that need.
Platform components
Every deployment runs the core services. Optional services stay off until you enable them.
flowchart LR
subgraph external["Users"]
direction TB
people(["People"])
machines(["Service keys<br/>and BI tools"])
end
sources(["External sources<br/>APIs, databases, files"])
subgraph edge["Edge and identity"]
direction TB
traefik["Traefik<br/>routing and TLS"]
o2p["oauth2-proxy<br/>SSO gate"]
zitadel["Zitadel<br/>tenants, users, roles"]
traefik -- "forward auth" --> o2p
o2p -- "OIDC" --> zitadel
end
subgraph services["Applications and services"]
direction TB
api["Platform API<br/>catalog, query, jobs,<br/>policy enforcement, OData"]
dagster["Dagster<br/>webserver, daemon, runs"]
apps["Apps<br/>hub, marimo, streamlit, duckdb-ui"]
obs["Observability<br/>Marquez, Prometheus, Grafana"]
dagster ~~~ api ~~~ apps ~~~ obs
end
subgraph data["Data"]
direction TB
pg[("PostgreSQL<br/>DuckLake catalog, Dagster runs,<br/>Zitadel, Marquez in its own database")]
objects[("Object storage, S3 or local disk<br/>DuckLake data, landing zone,<br/>compute logs")]
pg ~~~ objects
end
external -- "HTTPS" --> edge
edge -- "routes" --> services
sources -- "push via platform API" --> edge
sources -- "direct pull, validated" --> services
services -- "DuckLake" --> data
External data enters through the platform API and the landing zone. A Dagster asset can also pull data. The asset must validate the data before it loads it. Dagster and DuckLake work together. Dagster records the lineage and DuckLake keeps the catalog. So pipelines write to DuckLake through Dagster, including the dlt and dbt ones (ADR-0004, ADR-0012). A writer outside Dagster needs a careful integration, or isolation from the data lake, to keep lineage and catalog correct. We have not built policy enforcement, OData, the landing zone, Prometheus and Grafana yet. We have also not built the project roles in Zitadel or read-only DuckLake access for apps. Until then, the rule that writes go through Dagster is a design rule that the platform does not enforce. The IO manager already writes DuckLake data to local disk or to S3.
Configuration
srdp.toml sets up the deployment and lists its projects.
srdp-project.toml declares the code locations, services and endpoints of a project.
Secrets stay out of both files.
ADR-0011 describes both files.
Today srdp.toml holds only a few settings.
Its shape is still open (issue #42).
Deploying a project
A deployment needs three things.
srdp.tomldescribes the deployment.- Prebuilt images run every service, each at a pinned version. Platform images come from ghcr.io. Project images come from the registry in
srdp.toml. - The
srdpCLI turns them into a running platform on Docker Compose or on any Kubernetes cluster.
You can run the full platform on your own machine to try it out, as the configuration guide shows.
You can reuse tools that you already run.
- PostgreSQL and object storage connect through configuration, so you can use a managed database or your own S3 bucket (ADR-0001).
- Zitadel stays the token issuer, but it can sign users in through your existing identity provider, such as Entra ID.
- The Helm chart installs on your own cluster, and OpenTofu is only needed when SRDP creates the cluster.
flowchart LR
classDef planned stroke-dasharray: 5 4
subgraph platform["SRDP repo"]
pkg["srdp Python package<br/>IO managers, resources"]
auth["srdp.auth<br/>token validation"]:::planned
img["Project base images"]:::planned
cli["srdp CLI<br/>init, validate, deploy"]:::planned
end
subgraph infra["Infra repo, one per deployment"]
toml["srdp.toml<br/>projects as repo, ref, path"]:::planned
end
subgraph project["Project code, own or shared repo"]
ptoml["srdp-project.toml<br/>code_locations, services, endpoints"]:::planned
code["Code<br/>Dagster assets, apps"]
pimg["Project images"]
end
subgraph run["Running deployment"]
cl["Code location<br/>in the Dagster workspace"]
svc["Service<br/>Traefik route behind SSO"]
ep["Endpoint<br/>route on the platform API"]:::planned
cat[("DuckLake catalog<br/>per tenant, or per project")]
end
pkg -- "uv add srdp" --> code
auth -. "uv add srdp[auth]" .-> code
img -. "FROM" .-> pimg
code --> pimg
cli -. "reads" .-> toml
toml -. "fetches" .-> ptoml
cli -. "deploys" .-> run
pimg -- "image" --> cl
pimg -- "image" --> svc
cl -- "writes" --> cat
The project publishes its images and declares its code locations, services and endpoints in srdp-project.toml.
The deployment lists the project in srdp.toml.
srdp validate checks both files.
srdp deploy creates the Dagster workspace and the Traefik routes and applies them.
You can run it again safely on a running platform.
Then you give users and service keys a role on the project in Zitadel.
Until the CLI exists, you edit the workspace and the routes by hand.