grav

by QuenchWorks

Helm chartv0.0.6App 2.2.33MITVerified publisher

Grav: a flat-file CMS with a web admin, Markdown pages, themes and plugins, with the first admin created at install and the site content on a volume. Hardened by QuenchWorks: nonroot, CVE-gated, cosign-signed and pinned by digest.

About this chart

Quenchworks Grav

Hardened Grav: a flat-file CMS with a web admin, Markdown pages, themes and plugins, no database. The image runs the grav-admin release on Wolfi php-8.5-fpm and QuenchWorks' nginx with upstream's deny rules; it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.

Install

helm install site oci://ghcr.io/quenchworks/charts/grav --set [email protected]
kubectl get secret site-grav -o jsonpath='{.data.admin-password}' | base64 -d   # /admin, user admin

The site's pages, config, accounts and data live on the volume; plugins and themes ship in the image, so an image update reaches them. Installing plugins through GPM is not possible on the read-only image.

Configuration

KeyDefaultWhat it does
admin.username, admin.email, admin.fullnameadmin, [email protected], AdminThe first admin
admin.passwordgeneratedMust meet Grav's policy (8+ characters, a digit, a lower and an upper case letter)
tls.enabledfalseHTTPS on 8080 (existing Secret, cert-manager or a Helm-made CA)
persistence.size1GiThe site content and caches

Verify the image

cosign verify ghcr.io/quenchworks/images/grav \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Deploy grav with OpenTenant

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