ryni

by secanis.ch

Helm chartv1.3.0App v1.3.0Verified publisher

RÝNI — privacy-preserving web analytics (PocketBase + SolidJS frontend)

About this chart

RÝNI Helm Chart

Privacy-preserving, self-hosted web analytics — PocketBase backend + SolidJS frontend served by nginx.

  • No cookies, honors Do Not Track, no raw IP logging.
  • Two tracking variants: direct (CORS-gated) and same-origin proxy.

The web docs mirror this file at https://ryni.secanis.ch/docs/helm/. Keep the two in sync.

Install

# From the Helm repo (index.yaml published to gh-pages on release):
helm repo add ryni https://ryni.secanis.ch/
helm repo update
helm install ryni ryni/ryni \
  --set ingress.hosts[0].host=analytics.example.com \
  --set pocketbase.persistence.storageClass=longhorn

Or from a local checkout:

helm install ryni ./helm/ryni \
  --set ingress.hosts[0].host=analytics.example.com \
  --set pocketbase.persistence.storageClass=longhorn

First login

On first boot the chart auto-creates a superuser from the generated Secret (<release>-pocketbase-superuser). Fetch the credentials:

kubectl get secret -n ryni ryni-pocketbase-superuser \
  -o jsonpath='{.data.PB_SUPERUSER_EMAIL}' | base64 -d; echo
kubectl get secret -n ryni ryni-pocketbase-superuser \
  -o jsonpath='{.data.PB_SUPERUSER_PASSWORD}' | base64 -d; echo

Then sign in at https://<host>/login. The /setup page is a fallback for when PB_SUPERUSER_* was not supplied; with the headless upsert it is not needed.

Important notes

  • Namespace creation: pick ONE of namespace.create: true (default) or helm install --create-namespace. Using both can race.
  • Data safety: the PVC, PB_SECRET Secret, superuser Secret and Namespace are all annotated helm.sh/resource-policy: keep so helm uninstall does not destroy them. Re-installs re-read the same PB_SECRET and decrypt the existing data.db.
  • StorageClass reclaim policy: resource-policy: keep protects the PVC from Helm. Protecting the underlying PV (survive PVC deletion) requires the StorageClass's reclaimPolicy: Retain — set that cluster-side.
  • PB_SECRET must never rotate: it is the AES key for the encrypted data.db. The chart pins it via lookup on upgrade.

Parameters

See values.yaml for the full, commented list. The commonly-overridden ones:

KeyDefaultDescription
ingress.enabledtrueCreate an Ingress
ingress.hosts[0].hostryni.example.comPublic hostname
pocketbase.persistence.storageClasslonghornStorageClass for pb_data
pocketbase.persistence.size5GiPVC size
pocketbase.superuser.existingSecret""Bring your own superuser Secret
pocketbase.secret.existingSecret""Bring your own PB_SECRET Secret
frontend.replicaCount2Frontend replicas

Values schema

helm/ryni/values.schema.json describes every value in values.yaml — type, default, description, and the allowed values for closed sets such as pocketbase.service.type and ingress.hosts[].paths[].pathType. Artifact Hub renders it as the chart's value table, so the parameters are documented on the package page instead of only in the repo.

Helm validates values against the schema on install and upgrade, which means a typo'd enum fails immediately with a clear message. The schema is intentionally permissive: unknown keys are still ignored and no value is required, so existing values files keep working.

make lint-helm fails when a key in values.yaml has no matching schema path, or when a schema default disagrees with values.yaml.

Testing

make lint-helm    # helm lint + values-schema sync + helm template render check
make test-helm    # full kind-based end-to-end test (builds images, installs, smokes)

Deploy ryni with OpenTenant

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