backdrop

by QuenchWorks

Helm chartv0.0.20App 1.35.2GPL-2.0-or-laterVerified publisher

Hardened Backdrop CMS (PHP-FPM + nginx) on a CVE-gated nonroot image, installed by its CLI installer into a bundled MySQL.

About this chart

Quenchworks Backdrop CMS

Hardened Backdrop CMS, the PHP content-management system forked from Drupal 7, on a nonroot, read-only-rootfs CVE-gated image pinned by digest and cosign-signed. A Wolfi PHP-FPM + nginx runtime (supervisord) serves it on port 8080 as uid 1001.

The chart bundles the Quenchworks MySQL chart and installs Backdrop on the first start: an init container waits for the database and runs Backdrop's CLI installer (core/scripts/install.sh), which creates the schema, the admin account and the active config under files/config/. On later starts that config exists and the init container does nothing.

Install

helm install site oci://ghcr.io/quenchworks/charts/backdrop \
  --set [email protected]
kubectl port-forward svc/site-backdrop 8080:8080
# open http://127.0.0.1:8080/user/login and log in as admin
kubectl get secret site-backdrop -o jsonpath='{.data.admin-password}' | base64 -d

Values that matter

KeyDefaultMeaning
backdrop.siteNameQuench BackdropSite name the installer sets
backdrop.admin.username / emailadmin / [email protected]The admin account (uid 1)
backdrop.admin.passwordgeneratedUsed by the installer only
backdrop.hashSaltgeneratedSalt for login links and form tokens
database.prefixemptyOptional table prefix
mysql.enabledtrueBundled MySQL; false uses externalDatabase.* (MySQL or MariaDB)
persistence.*10Gi PVCfiles/: uploads, active and staging config, backups
service.httpsPort8443HTTPS (pod 8443), only with tls.enabled
tls.enabledfalsenginx also serves the site over HTTPS on 8443 beside HTTP (cert at /tls)
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

Storage and state

  • The image's settings.php is read-only and takes the database from BACKDROP_DB_* env vars, which the chart sets; the password comes from the database Secret, so rotating it there and restarting the pod is enough. Mount a settings.local.php at /var/www/html/settings.local.php (extraVolumes + extraVolumeMounts, subPath) for other settings.
  • files/ holds the active config as well as uploads, so it is always a PVC and carries helm.sh/resource-policy: keep: losing it while the database survives leaves a site that neither boots nor reinstalls. Delete it by hand together with the database.
  • The docroot is read-only. Installing modules, themes or layouts from the admin panel writes into it and is not supported; build them into an image.

Upgrades

A new chart version can move the image to a newer Backdrop. The init container does not run database updates: after an upgrade, log in as the admin and open /core/update.php.

Deploy backdrop with OpenTenant

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