ryni
by secanis.ch
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) orhelm install --create-namespace. Using both can race. - Data safety: the PVC,
PB_SECRETSecret, superuser Secret and Namespace are all annotatedhelm.sh/resource-policy: keepsohelm uninstalldoes not destroy them. Re-installs re-read the samePB_SECRETand decrypt the existingdata.db. - StorageClass reclaim policy:
resource-policy: keepprotects the PVC from Helm. Protecting the underlying PV (survive PVC deletion) requires the StorageClass'sreclaimPolicy: Retain— set that cluster-side. PB_SECRETmust never rotate: it is the AES key for the encrypteddata.db. The chart pins it vialookupon upgrade.
Parameters
See values.yaml for the full, commented list. The commonly-overridden ones:
| Key | Default | Description |
|---|---|---|
ingress.enabled | true | Create an Ingress |
ingress.hosts[0].host | ryni.example.com | Public hostname |
pocketbase.persistence.storageClass | longhorn | StorageClass for pb_data |
pocketbase.persistence.size | 5Gi | PVC size |
pocketbase.superuser.existingSecret | "" | Bring your own superuser Secret |
pocketbase.secret.existingSecret | "" | Bring your own PB_SECRET Secret |
frontend.replicaCount | 2 | Frontend 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartryni is pinned at v1.3.0 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