backdrop
by QuenchWorks
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
| Key | Default | Meaning |
|---|---|---|
backdrop.siteName | Quench Backdrop | Site name the installer sets |
backdrop.admin.username / email | admin / [email protected] | The admin account (uid 1) |
backdrop.admin.password | generated | Used by the installer only |
backdrop.hashSalt | generated | Salt for login links and form tokens |
database.prefix | empty | Optional table prefix |
mysql.enabled | true | Bundled MySQL; false uses externalDatabase.* (MySQL or MariaDB) |
persistence.* | 10Gi PVC | files/: uploads, active and staging config, backups |
service.httpsPort | 8443 | HTTPS (pod 8443), only with tls.enabled |
tls.enabled | false | nginx 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.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 |
Storage and state
- The image's
settings.phpis read-only and takes the database fromBACKDROP_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 asettings.local.phpat/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 carrieshelm.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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbackdrop is pinned at v0.0.20 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