dagger

by QuenchWorks

Helm chartv0.0.6App 0.21.12Apache-2.0Verified publisher

Dagger, the programmable CI/CD engine that runs pipelines as code in containers. Hardened by QuenchWorks as a CVE-gated image built from source on Wolfi, cosign-signed and pinned by digest.

About this chart

Quenchworks Dagger

Hardened Dagger, the programmable CI/CD engine that runs pipelines as code in containers, on a CVE-gated image built from source on Wolfi, cosign-signed and pinned by digest. This chart runs the Dagger engine as a StatefulSet with a persistent cache; your dagger CLI connects to it through the Kubernetes API.

The image follows upstream's engine layout: the engine, runc, the CNI plugins and the CLI are built from source with current dependencies, and the Go SDK runtime the engine runs Go modules in is assembled on Wolfi and scanned on its own. The Python and TypeScript SDK runtimes are not bundled yet; modules on those SDKs do not load on this engine.

Install

helm install dagger oci://ghcr.io/quenchworks/charts/dagger

Use it

Use a dagger CLI of the same minor version as the engine (the chart's appVersion):

export _EXPERIMENTAL_DAGGER_RUNNER_HOST="kube-pod://dagger-0?namespace=default&container=dagger"
dagger core version
dagger -c 'container | from alpine | with-exec -- echo hello | stdout'

The CLI ships in the image too: kubectl exec dagger-0 -- dagger core version.

Security

The engine runs containers itself (runc, CNI networking, cgroup nesting), so like upstream's engine it runs as root in a privileged container. Anyone who can exec into the pod can run any container on its node: limit pods/exec on this namespace to the people and CI identities that run pipelines, and schedule the engine on nodes meant for build workloads (nodeSelector, tolerations). The engine has no network listener; the NetworkPolicy admits no ingress.

Configuration

KeyDefaultWhat it does
persistence.enabledtrueKeep /var/lib/dagger (cache, images, client databases) on a PVC
persistence.size50GiSize of that PVC
config""engine.toml contents, mounted at /etc/dagger/engine.toml
extraArgs[]Extra dagger-engine flags, for example --debug
terminationGracePeriodSeconds300Time the engine gets to finish running pipelines on shutdown

Verify the image

cosign verify ghcr.io/quenchworks/images/dagger \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Deploy dagger with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dagger on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdagger is pinned at v0.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply