Where CDS fits in your landscape
CDS is a compile-time layer on top of your runtime. You describe a data platform as a profile plus modules, and CDS renders deployment artefacts from it. It is not an orchestrator and not a replacement for Kubernetes, Compose or your CI/CD. It does not run containers itself. cds up calls the real docker compose.
What you get
- One validated source of truth per environment, in YAML and in Git.
- Generated output (Docker Compose, or a Helm chart via
--target helm— experimental) that you use in your existing pipelines. - A fixed golden path for data stacks, without every team maintaining its own Compose files.
Workflow in CI/CD
python3 -m venv .venv && source .venv/bin/activate
python -m pip install -e .
cds validate # shape, graph, secrets, contracts
cds test # validate + security rules + plan + render
cds render –output
Every change validates first in the pipeline. Errors come back as diagnostics with a stable code and an exact data path, so they are easy to parse and show in a pull request.
Modules and contracts
- A module (
module.yaml) contains a closed configuration schema with defaults, the contracts it provides and consumes, and a Compose template. - Modules never reference each other’s service names. Bindings run via contracts (
contractRef: ...).dependsOnonly controls start-up order. - You can place your own modules and profiles outside the repository via
CDS_MODULE_PATHandCDS_PROFILE_PATH. - Interpolation:
${config.*},${bindings.*},${service.host}.
Secrets
Secret values never end up in plans or rendered artefacts. Profiles map aliases to CDS_* environment variables, and only ${CDS_*} placeholders are generated. Your secret manager or CI runner supplies the value only at runtime. Keep .env and generated Compose files out of Git.
Security and hardening
- Rules live as data (
rule-set.json) and can be extended without Python. - Image baseline: pinned versions, non-root, read-only root, dropped capabilities, resource limits, network segmentation and sha256-pinned (hash-locked) dependencies.
- Images are scanned continuously (Trivy on every PR and daily, with SBOM). Uploading scan results to the GitHub Security tab (SARIF) is still on the roadmap.
Operations and maintenance
cds getfetches profiles and modules (with tracking metadata under.cds/), andcds updaterefreshes them. An opt-in check for new CDS releases is available viacds check-update.- Monitoring modules (Grafana, Loki, OpenTelemetry Collector) are available as experimental modules in the stack.
- Lifecycle, scaling and monitoring of the running environment stay with your runtime and tooling.
Limitations to keep in mind
- The format is
v1alpha1, so schema changes are possible. - The Kubernetes/Helm target is experimental. Backup/restore, TLS contracts and GitOps (FluxCD) are available, but not all production-grade yet; production-ready Kubernetes support is on the roadmap towards version 1.0.
- Tests are independent of Docker (
unittest). Runtime smoke tests run separately.
Recommended approach
- Run
cds teston a reference profile in your CI. - Set up your own module root for your platform standards.
- Have teams adjust profiles via pull requests, with
cds testas a required check. - Connect your secret manager to the
CDS_*variables.
Also explained for
Back to Composable Data Stack (CDS) · Source code on GitHub · Contact · Nederlands