argo-workflows

by QuenchWorks

Helm chartv0.0.16App 3.7.18Apache-2.0Verified publisher

Argo Workflows: the container-native workflow engine for Kubernetes. Runs DAG and step-based pipelines as Kubernetes pods via the Workflow/CronWorkflow/WorkflowTemplate CRDs, with the argo-server providing the REST/gRPC API and the embedded web UI. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest. One image ships the controller, the server and the argoexec executor; the controller is told to inject that same pinned digest as the workflow-pod executor, so no upstream registry is ever pulled from.

About this chart

Quenchworks Argo Workflows

Hardened Argo Workflows, the CNCF container-native workflow engine for Kubernetes, on a minimal, nonroot, CVE-gated image built from source, cosign-signed and pinned by digest.

The chart runs two Deployments from one image:

ComponentBinaryWhat it does
workflow-controller/usr/bin/workflow-controllerWatches Workflow / CronWorkflow objects and turns each step into a pod.
argo-server/usr/bin/argo serverREST/gRPC API and the embedded web UI on 2746.

and pins a third binary from the same image into every workflow pod:

InjectedBinaryWhat it does
init + wait containers, and the wrapper around each step's own command/usr/bin/argoexecStages artifacts, supervises the step, and reports the result back as a WorkflowTaskResult.

The executor image is the thing to get right

For every workflow pod the controller injects an init container, a wait container, and rewrites the step's command to run through /var/run/argo/argoexec. All three come from one image, and if nobody tells the controller which one, it falls back to quay.io/argoproj/argoexec:<version> — an image QuenchWorks does not build, scan or sign, and that a private or air-gapped cluster cannot pull.

So the chart always passes

--executor-image=ghcr.io/quenchworks/images/argo-workflows@sha256:...

to the controller, resolved from image.repository + image.digest. The CLI flag deliberately outranks the controller ConfigMap, so an operator editing controller.config cannot accidentally un-pin the executor. Override executor.image.repository / executor.image.digest only if you genuinely ship argoexec as a separate image.

Install

helm install wf oci://ghcr.io/quenchworks/charts/argo-workflows

Submit a workflow:

cat <<'EOF' | kubectl create -f -
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-
spec:
  entrypoint: main
  templates:
    - name: main
      container:
        image: ghcr.io/quenchworks/images/busybox@sha256:96bfb56285a65f978985de00bec071bb9e52d3c588cd26febed64ff36651c526
        command: ["/bin/echo"]
        args: ["hello from argo"]
EOF

kubectl get workflows -w

Reach the API and the UI:

kubectl port-forward svc/wf-argo-workflows-server 2746:2746
curl http://127.0.0.1:2746/api/v1/info

Security: read this before exposing the server

server.authModes defaults to ["server"], the conventional chart default: the API serves every request with the argo-server's own ServiceAccount. That makes the bundled UI usable out of the box, and it means anyone who can reach the Service can list, submit and delete workflows and read pod logs. It is fine for a ClusterIP inside a trusted namespace. Before putting an Ingress or a LoadBalancer in front of it, switch to:

  • server.authModes: ["client"] — every caller presents their own Kubernetes bearer token and acts with their own identity, or
  • server.authModes: ["sso"] — OIDC login, configured under controller.config.sso.

server.secure is false by default (plain HTTP on 2746) because TLS is normally terminated at the ingress. Set it to true to have the server serve HTTPS with a self-signed certificate; the probes follow automatically.

Workflow pod RBAC

Argo's emissary executor reports each step's outcome by creating a WorkflowTaskResult as the workflow pod's own ServiceAccount. Without that permission the step runs, the container exits 0, and the workflow then fails with workflowtaskresults.argoproj.io is forbidden.

The chart therefore creates a Role granting create + patch on workflowtaskresults in the release namespace and binds it to the ServiceAccounts named in workflowRBAC.serviceAccountNames (default out of the box, since a Workflow that names no ServiceAccount runs as default).

To submit workflows into another namespace, replicate that Role and RoleBinding there.

CRDs

The eight argoproj.io CRDs (Workflow, WorkflowTemplate, ClusterWorkflowTemplate, CronWorkflow, WorkflowEventBinding, WorkflowTaskSet, WorkflowTaskResult, WorkflowArtifactGCTask) ship in crds/, so Helm installs them once and never templates or deletes them.

These are the project's minimal CRDs, which is what upstream's own install manifests use. The "full" variants carry the complete pod-spec schema inline and are 7.4 MB, with workflows.argoproj.io alone at 3.2 MB — past etcd's per-object limit, never mind Helm's 1 MiB release Secret. The minimal set is 110 KB total; the packaged chart is 27 KB and its rendered manifest 15 KB, so the release Secret has essentially the whole 1 MiB to spare. Validation of the omitted fields is done by the controller and the server when a Workflow is submitted.

Verify the image

cosign verify ghcr.io/quenchworks/images/argo-workflows \
  --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/argo-workflows --owner quenchworks.

Values

KeyDefaultNotes
image.repositoryghcr.io/quenchworks/images/argo-workflowsOne image for controller, server and executor.
image.digest(CI-written)Required. Charts pin by digest, never a tag.
image.pullPolicyIfNotPresent
executor.image.repository""Empty → image.repository.
executor.image.digest""Empty → image.digest.
executor.pullPolicyIfNotPresentPull policy for the injected workflow-pod containers.
executor.resourcescpu 10m-500m / mem 32Mi-256MiResources for the injected init + wait containers.
controller.replicaCount1Extra replicas stand by via Lease-based leader election.
controller.logLevelinfoAlso used for the injected executor containers and the server.
controller.metricsPort9090Prometheus metrics.
controller.healthzPort6060Built-in health server; the liveness probe targets it.
controller.parallelism0Max concurrently running workflows. 0 = unlimited.
controller.config{}Free-form workflow-controller configuration (artifactRepository, workflowDefaults, persistence, sso, …). Parsed strictly: an unknown key fails the controller loudly.
controller.existingConfigMap""Use your own ConfigMap instead of rendering one.
controller.extraArgs[]Extra controller flags.
controller.resourcescpu 100m-1 / mem 128Mi-512Mi
server.enabledtrueSet false for a controller-only install.
server.replicaCount1
server.authModes["server"]client, server, sso. See the security note above.
server.securefalsetrue → HTTPS with a self-signed certificate.
server.baseHref/For serving the UI under a sub-path behind a proxy.
server.extraArgs[]
server.resourcescpu 50m-500m / mem 128Mi-512Mi
server.service.typeClusterIP
server.service.port2746API + UI.
tls.enabledfalseargo-server serves HTTPS with the chart certificate (implies server.secure; probes follow); the certificate names the server Service
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
serviceAccount.createtrueOne ServiceAccount per component.
serviceAccount.controllerName / .serverName""Override the derived names.
rbac.createtrueRequired: the controller manages pods cluster-wide.
workflowRBAC.createtrueRole letting workflow pods report their results.
workflowRBAC.serviceAccountNames["default"]ServiceAccounts in the release namespace to bind it to.
ingress.enabledfalseFronts the argo-server Service. Read the security note first.
ingress.className / .annotations / .hosts / .tlsStandard Ingress fields.

Plus the usual quench-common pod-spec surface, applied to both Deployments: podLabels, podAnnotations, nodeSelector, affinity, tolerations, topologySpreadConstraints, priorityClassName, schedulerName, terminationGracePeriodSeconds, updateStrategy, extraEnvVars, extraEnvVarsCM, extraEnvVarsSecret, extraVolumes, extraVolumeMounts, initContainers, sidecars, lifecycleHooks, podSecurityContext, containerSecurityContext, livenessProbe, readinessProbe, customLivenessProbe, customReadinessProbe, customStartupProbe.

Notes

  • Both components run nonroot (uid 1001) with a read-only root filesystem and all capabilities dropped. The server gets an emptyDir at /tmp, the only path it writes to.
  • Both are pointed at the same ConfigMap with --configmap, so the server always reads the configuration the controller is running with.
  • The chart is cluster-scoped: the controller watches and runs workflows in every namespace.

Deploy argo-workflows with OpenTenant

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