gitlab

by QuenchWorks

Helm chartv0.0.8App 19.6.1MITVerified publisher

GitLab CE: the Git forge, CI/CD and container registry front end, as webservice (Puma + Workhorse), Sidekiq, Gitaly and gitlab-shell on QuenchWorks images built from the MIT gitlab-foss source, with the bundled PostgreSQL and Valkey. Hardened by QuenchWorks: CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks GitLab CE

Hardened GitLab CE 19.6: the Git forge, issues, merge requests and CI/CD front end. Four QuenchWorks images, all built from source on Wolfi, CVE-gated at build, cosign-signed and pinned by digest:

ComponentImageRuns
webservicegitlab-rails + gitlab-workhorsePuma behind Workhorse (HTTP, Git over HTTP, uploads)
sidekiqgitlab-railsbackground jobs (bin/sidekiq-cluster)
migrationsgitlab-railsrake gitlab:db:configure, a Job per Helm revision
gitalygitalyGit storage over gRPC, repositories on a PVC
gitlab-shellgitlab-shellGit over SSH (gitlab-sshd)

The chart runs on the bundled QuenchWorks PostgreSQL and Valkey, and generates every secret once (Rails key bases, Active Record encryption keys, the OpenID Connect signing key, the Workhorse, gitlab-shell and Gitaly tokens, the SSH host keys and the initial root password), keeping them across upgrades.

The gitlab-rails image documents the advisories it does not fix by upgrade in a VEX statement (gems GitLab pins on old majors, checked against GitLab's own code) and backports the devise 5.0 security fixes onto the devise 4.9 GitLab locks.

Install

helm install gitlab oci://ghcr.io/quenchworks/charts/gitlab --set gitlab.host=gitlab.example.com

Then read the root password from the chart Secret (see the install notes) and sign in.

Configuration

ValueDefaultNotes
gitlab.hostgitlab.example.comHostname users reach GitLab at, required
gitlab.httpsfalseSet when TLS terminates in front
gitlab.monitoringAllowlistprivate rangesCIDRs that may call the health endpoints the probes use
webservice.puma.workers2Puma workers per pod
sidekiq.processes["*"]One sidekiq process per entry; each a queue selector
gitaly.persistence.size10GiRepository storage
shared.persistence.size10GiUploads, artifacts, LFS, packages (kept on uninstall)
gitlabShell.service.typeClusterIPUse LoadBalancer to expose SSH
postgresql.enabledtrueOr externalDatabase.* (needs max_locks_per_transaction >= 512)
valkey.enabledtrueOr externalRedis.url
secrets.existingSecret""Bring every key yourself (same key names as the generated Secret)

Uploads, CI artifacts, LFS objects and packages live on the shared PVC, mounted by webservice and sidekiq: with pods on more than one node it needs a ReadWriteMany storage class (shared.persistence.accessModes). Not in this chart yet: the container registry, Pages, KAS and object storage.

Verify the images

for i in gitlab-rails gitlab-workhorse gitaly gitlab-shell; do
  cosign verify ghcr.io/quenchworks/images/$i \
    --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com
done

Deploy gitlab with OpenTenant

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