hasura

by QuenchWorks

Helm chartv0.0.33App 2.50.10Apache-2.0Verified publisher

Hardened Hasura GraphQL Engine (Community Edition) on a CVE-gated nonroot image, with a bundled PostgreSQL metadata database.

About this chart

Quenchworks Hasura GraphQL Engine

Hasura GraphQL Engine Community Edition: an instant GraphQL API with role-based permissions over PostgreSQL. The image runs nonroot (uid 1001), is pinned by digest and cosign-signed, and serves GraphQL, the metadata API and the console on port 8080.

The server is upstream's Apache-2.0 Community Edition build, taken by digest from its -ce images. Telemetry is off. The chart bundles the Quenchworks PostgreSQL chart for Hasura's metadata; point it at your own databases from the console or the metadata API.

Install

helm install gql oci://ghcr.io/quenchworks/charts/hasura
kubectl get secret gql-hasura -o jsonpath='{.data.admin-secret}' | base64 -d; echo
kubectl port-forward svc/gql-hasura 8080:8080   # console: http://localhost:8080/console

Values

KeyDefaultNotes
adminSecret""Generated when empty, kept across upgrades
consoletrueServe /console
unauthorizedRole""Role for anonymous requests; empty refuses them
replicaCount1Stateless, scales horizontally
postgresql.enabledtrueBundled metadata database
externalDatabase.*Host, credentials, sslMode, or existingSecret with a full URL
networkPolicy.allowExternalfalseIngress only from the release namespace

JWT or webhook authentication goes in extraEnvVars, for example HASURA_GRAPHQL_JWT_SECRET from a Secret.

Verify the image

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

Deploy hasura with OpenTenant

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