cadence

by QuenchWorks

Helm chartv0.0.41App 1.4.5MITVerified publisher

Uber Cadence: a fault-tolerant, stateful workflow orchestration engine that runs long-running business logic as durable code, persisting execution state in Cassandra so workflows survive process crashes and resume where they left off. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest. Ships a bundled Cassandra by default for a self-contained install.

About this chart

QuenchWorks Cadence

Hardened Cadence, Uber's fault-tolerant, stateful workflow orchestration engine, on a minimal, nonroot, CVE-gated image pinned by digest. This chart runs the all-in-one server: one cadence-server process hosting all four roles (frontend + history + matching + worker), backed by Cassandra.

All durable state lives in Cassandra, so the server runs on a read-only root filesystem. This chart bundles the QuenchWorks Cassandra chart by default and can also point at an external cluster.

Cadence uses two keyspaces: the main store and the visibility store. Six shell-free init containers create both keyspaces and bring their schema to the latest version with cadence-cassandra-tool before the server boots, the distroless image ships no shell, so each step is a single tool invocation (create-Keyspace, then setup-schema, then update-schema), and the first create-Keyspace doubles as the wait-for-Cassandra gate.

Install

# self-contained: bundles in-cluster Cassandra
helm install wf oci://ghcr.io/quenchworks/charts/cadence

Connect

The frontend gRPC port 7833 is the main client/worker endpoint.

kubectl port-forward svc/wf-cadence 7833:7833
# point your SDK client at 127.0.0.1:7833

The bundled cadence CLI defaults to the TChannel transport, pass --transport grpc when talking to the gRPC port. Register the domains your workers use (no domain is auto-created):

kubectl exec -it deploy/wf-cadence -- \
  cadence --transport grpc --address 127.0.0.1:7833 --domain my-domain domain register --retention 1

Cassandra

By default the chart bundles Cassandra with authentication disabled (a NetworkPolicy is the trust boundary). The schema init containers create the two keyspaces (cadence + cadence_visibility) and apply their schema.

Use an external cluster instead:

cassandra:
  enabled: false
externalCassandra:
  host: cassandra.example.com
  port: 9042
  user: ""               # if the cluster requires auth
  password: "..."        # or existingSecret + existingSecretPasswordKey
keyspaces:
  main: cadence
  visibility: cadence_visibility
schemaSetup:
  replicationFactor: 3    # match the target ring

The external account must be able to create keyspaces and tables.

Configuration

The server config is the cadenceConfig value (a Cassandra-backed config rendered through tpl, replacing the sample the image does not ship). It is mounted read-only at /etc/cadence/config/config.yaml; dynamicConfig is mounted alongside. Every role binds on ${POD_IP}, Cadence's own config loader expands that from the downward-API POD_IP env at start, so ringpop advertises a routable address and the Service/probe can reach the frontend (no shell/render step). Edit either value and helm upgrade, the pod checksum annotation rolls the Deployment.

KeyDefaultDescription
replicaCount1Keep at 1 for the all-in-one server.
servicesfrontend,history,matching,workerRoles the server process runs.
numHistoryShards4Fixed at first schema setup; cannot change later.
cassandra.enabledtrueBundle the QuenchWorks Cassandra chart.
cassandra.auth.enabledfalseBootstrap the default cassandra superuser.
keyspaces.{main,visibility}cadence / cadence_visibilityStore keyspace names.
externalCassandra.*,Used when cassandra.enabled=false.
schemaSetup.enabledtrueRun the schema-bootstrap init containers.
schemaSetup.replicationFactor1RF used by create-Keyspace.
service.{grpcPort,tchannelPort}7833 / 7933Frontend Service ports.
tls.enabledfalsethe frontend gRPC port 7833 takes TLS only (TChannel 7933 has no TLS in Cadence and stays plain)
tls.existingSecret""a kubernetes.io/tls Secret to use (1st choice)
tls.certManager.enabledfalserequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice)
tls.selfSigned.validityDays365otherwise Helm generates a CA + certificate, kept across upgrades
networkPolicy.allowExternalfalseAllow frontend ingress from outside the namespace.
podDisruptionBudget.enabledtruePDB (minAvailable: 1).

Standard quench-common knobs (resources, nodeSelector, affinity, tolerations, podSecurityContext, containerSecurityContext, probe overrides, extraEnvVars, extraVolumes/extraVolumeMounts, sidecars, initContainers, …) are also supported.

Scaling

This release ships the all-in-one server only. numHistoryShards is fixed at first schema setup and cannot change without a fresh keyspace. Scale-out, one Deployment per role, is a future chart capability.

Security

  • Runs as nonroot (uid 1001), read-only root filesystem, all capabilities dropped.
  • Image pinned by digest and cosign-signed (keyless):
cosign verify ghcr.io/quenchworks/images/cadence \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them with gh attestation verify oci://ghcr.io/quenchworks/images/cadence --owner quenchworks.

Deploy cadence with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cadence 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 chartcadence is pinned at v0.0.41 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