concourse
by QuenchWorks
Hardened Concourse CI (web node and privileged containerd worker) on a CVE-gated image, with a bundled PostgreSQL.
About this chart
Quenchworks Concourse
Hardened Concourse CI on a CVE-gated image built from the release tag. One binary runs in two roles:
- web: the API, the embedded UI (port 8080) and the TSA (port 2222). Nonroot uid 1001 on a read-only rootfs.
- worker: runs your tasks with containerd. It needs root in a privileged pod, which this chart runs as a StatefulSet. Workers dial the TSA and register; the web node reaches them back through that SSH tunnel, so workers need no Service.
The chart bundles the Quenchworks PostgreSQL chart. Concourse reads the database password from PostgreSQL's own Secret.
Install
helm install ci oci://ghcr.io/quenchworks/charts/concourse \
--set web.externalUrl=https://ci.example.com
kubectl get secret ci-concourse -o jsonpath='{.data.admin-password}' | base64 -d
kubectl port-forward svc/ci-concourse 8080:8080
fly -t main login -c http://127.0.0.1:8080 -u admin
Keys
A pre-install and pre-upgrade hook Job runs concourse generate-key for the session
signing key, the TSA host key and the worker key, and stores them in
<release>-concourse-keys. It creates that Secret only when it is missing, so an upgrade
never rotates keys under running workers. The Secret is not a Helm object: it survives
helm uninstall. Delete it by hand to rotate the keys, then restart web and workers.
Resource types
Workers bundle registry-image and time, built from their release tags. The git
resource type is its own image; declare it in a pipeline:
resource_types:
- name: git
type: registry-image
source:
repository: ghcr.io/quenchworks/images/concourse-git-resource
tag: "1.23.0"
Values that matter
| Key | Default | Meaning |
|---|---|---|
web.externalUrl | http://localhost:8080 | URL users and fly reach the web node at |
web.admin.username / password | admin / generated | Local user, owner of the main team |
web.env | [] | Extra CONCOURSE_* settings (auth providers, retention) |
worker.replicaCount | 1 | Workers |
worker.workDir.persistence | false | PVC per worker instead of an emptyDir |
worker.dnsProxy | true | Task containers resolve through the worker's resolver (cluster DNS) |
postgresql.enabled | true | Bundled PostgreSQL; false uses externalDatabase.* |
service.httpsPort | 8443 | HTTPS for the web node, only with tls.enabled |
tls.enabled | false | The web node serves HTTPS on 8443 beside HTTP (cert at /tls); probes move to HTTPS; set web.externalUrl to https |
tls.existingSecret | "" | a kubernetes.io/tls Secret to use (1st choice) |
tls.certManager.enabled | false | request a cert-manager Certificate from tls.certManager.issuerRef (2nd choice) |
tls.selfSigned.validityDays | 365 | otherwise Helm generates a CA + certificate, kept across upgrades |
Node requirement: unprivileged user namespaces
Tasks and resource checks run in unprivileged containers inside a user namespace. Worker
nodes must allow unprivileged user namespaces; on Ubuntu 24.04 that means
kernel.apparmor_restrict_unprivileged_userns=0.
Known issue: on GitHub's Ubuntu 24.04 runners under kind, task containers fail with
error mounting "sysfs" to rootfs at "/sys": operation not permitted even with that
setting, while the same install runs tasks under kind on Docker Desktop. The cause is not
found yet; this chart's release is held until it is.
Security notes
The worker pod is privileged and runs as root: containerd creates containers, cgroups and
network namespaces. Run workers on nodes you are willing to give that to, for example with
nodeSelector and tolerations. The web node keeps the catalog's nonroot, read-only
defaults.
Deploy concourse with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has concourse 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartconcourse is pinned at v0.0.39 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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