Helm chart for deploying the ORISO online counseling platform on Kubernetes.
The chart covers the full stack: Keycloak, MariaDB, MongoDB, RabbitMQ, Redis, Matrix/Synapse, LiveKit, and all backend/frontend services.
Configuration is split across two files — both are gitignored and must be created locally before deploying.
Copy the values template and fill in your domain and realm:
cp values.yaml.default values.yaml
Open values.yaml and update:
global.domainName— required, your public host (no scheme, no path). Every public URL and mail link derives from it; empty or a placeholder fails the installglobal.keycloak.realm— your Keycloak realm name (appears in several URL fields)matrix.synapseServerName/matrixServerName— your Matrix server name
Copy the secrets template and fill in all credentials:
cp secrets.yaml.default secrets.yaml
Open secrets.yaml and replace every changeme with a real value. The install
fails while any value still contains changeme, and the error names it; the
database, RabbitMQ, Redis, Matrix and Keycloak admin passwords must also be at
least 12 characters (ORISO-Helm#540). Fields to fill in:
global.secrets.*Password/*Pass— database and service passwordsglobal.secrets.matrixRegistrationSharedSecret— Matrix shared secretglobal.keycloak.technicalUser.password— Keycloak technical user passwordglobal.keycloak.serviceTechUserId(invalues.yaml.default, not a secret) — Keycloak user id (sub) of thetechnicaluser, rendered as TenantServiceTECHNICAL_SERVICE_SUBJECT. Required, a UUID, no default. On an existing realm look up the live id once (admin console, Users > technical > ID). Only a fresh install that importsrealm.jsonmay use its fixed id8294c392-e1e0-405b-ac2f-ba3043cbad3e. The reconcile hook compares it with the realm before changing anything and fails the release on a mismatch.postgres.postgresPassword— PostgreSQL password, rendered intomatrix-postgres-secret, not a ConfigMap. The default engine issqlite3to preserve compatibility with existing deployments. For a fresh Matrix database during a planned reset, explicitly setmatrix.database.engine: postgresin your ownvalues.yaml. Existing PostgreSQL installations must retain that override on every upgrade. Empty PostgreSQL storage initializes with UTF-8 and C locale. Follow the fresh-install or migration instructions; selecting PostgreSQL neither migrates Matrix data nor deletes application/Keycloak users.global.matrix.matrixAdminUsername/matrixAdminPassword— Matrix admin credentials (must live underglobal:so subcharts can read them)online-counseling-mongodb.*Password/*Pass— MongoDB passwordsonline-counseling-mariadb.dbRootPassword— MariaDB root passwordmatrixrtcAuth.membershipReaderPassword— password for the non-admin MatrixRTC membership reader user that Helm bootstraps in Synapselivekit.api.key/livekit.api.secret— LiveKit API credentialstenantService.springDatasourcePassword/springRabbitmqPasswordagencyService.serviceEncryptionAppkey— AgencyService encryption key (Matrix service-account passwords). Required — the chart refuses to render if it is blank, because an empty key silently breaks agency creation. Rotating it invalidates already-stored credentials.userService.serviceEncryptionAppkey/identityTechnicalUser*—identityTechnicalUser*is the UserService's service identity (realm usertechnical, realm roletechnicalonly). Required. The former duplicate pairuserService.keycloakTechnical*is no longer read.global.secrets.keycloakServiceAdminUsername/keycloakServiceAdminPassword— backend Keycloak admin identity (svc-keycloak-admin:manage-users,view-users,query-users,view-realm,otp-config-admin). Required; the password may not be empty orchangeme, and the username may not betechnicalor the master bootstrap admin namekeycloakAdminUsername(the hook fails). Mounted into the UserService asKEYCLOAK_CONFIG_ADMIN_*; the master bootstrap admin credentials (keycloakAdmin*, next item) stay deployment-time only (Keycloak pod, bootstrap and service-identity hooks; never the SMTP Jobs). The hookkeycloak-reconcile-service-identitiesconverges both identities to these exact role sets on every install and upgrade (ORISO-Helm#367).global.secrets.keycloakAdminUsername/keycloakAdminPassword— master-realm bootstrap admin, the only break-glass identity (required, no chart default: the installer chooses the name, e.g.bootstrap-admin; an empty name always fails, and a fresh install refusesadmin,realmadmin,keycloak,rootin any case and the ORISO-realm user name; upgrades keep an existing name). Read by Keycloak only on first start. Use, notice and rotation:runbooks/keycloak-break-glass.md(ORISO-Helm#422).
For the coordinated Matrix-only/Matryoshka cutover, never edit image tags into
values.yaml. Frontend, Element Call, UserService, AgencyService, Synapse and
both MatrixRTC authorization images accept only complete
repository@sha256:<digest> references.
After the cross-repository release manifest contains reviewed registry
digests, attached security evidence, rotated secrets and the status
ready-for-predev, generate and verify the exact Helm overlay:
./scripts/cutover-release-preflight.py \ /path/to/ORISO-Matryoshka-Release-Manifest.yaml \ --output-values /path/to/new-cutover-digests.yaml
The command fails closed on STOP_SHIP placeholders, zero/wrong digests,
missing PR or security evidence, forbidden legacy render artifacts, or any
rendered image that differs from the manifest. It refuses to overwrite an
existing output file.
Use the verified overlay after the environment values and before secrets:
helm upgrade --install caritas ./ --namespace caritas --create-namespace \ --wait-for-jobs --timeout 15m \ -f values.yaml -f values-dev.yaml \ -f /path/to/new-cutover-digests.yaml -f secrets.yaml
helm upgrade --install caritas ./ --namespace caritas --create-namespace --wait-for-jobs --timeout 15m \ -f values.yaml -f values-<env>.yaml -f secrets.yaml
values.yaml (or the environment overlay values-<env>.yaml) must set
global.domainName; without it the install fails on purpose.
The first caritas is the Helm release name, the second is the Kubernetes namespace. Both can be changed to suit your environment.
LiveKit and MatrixRTC auth read their sensitive runtime material from
Kubernetes Secrets rendered by Helm from the ignored environment
secrets.yaml. Set these values before installing:
matrixrtcAuth.membershipReaderPassword— password formatrixrtcAuth.membershipReaderUserId; Helm registers/logs in this Matrix user and patches the generated access token intomatrixrtc-auth-secretslivekit.api.key/livekit.api.secret— shared LiveKit API credentialsmatrixrtcAuth.redisUrl— optional external Redis URL; leave blank to use the in-chart Redis service andglobal.secrets.redisdefaultPassmatrixrtcAuth.membershipToken— optional manual Matrix access token override; leave blank to use the automatic bootstrap jobmatrixrtcAuth.callPolicyToken— dedicated high-entropy secret shared only by the MatrixRTC policy gateway and UserService; this authenticates the cluster-internal fresh tenant-policy lookup
During helm upgrade --install, the chart creates matrixrtc-auth-secrets and
livekit-config, then a matrixrtc-bootstrap-token Job waits for Synapse,
creates or reuses the membership reader user, logs in, and patches the real
Matrix access token into matrixrtc-auth-secrets. MatrixRTC auth waits for
that token before starting, so LiveKit, MatrixRTC auth, and Element Call can
start without a second bootstrap step.
The gateway resolves every new call/reconnect against UserService before a LiveKit grant is issued. A tenant permission change therefore affects already open browser tabs on their next call, reconnect, or rejoin. Policy lookup is fail-closed; UserService unavailability never falls back to a permissive grant.
values.yaml.default is a prod-safe baseline (springProfilesActive: prod,
no dummy-data seeding, OTP off). Layer an environment overlay on top instead of
maintaining separate copies:
# development: seeds dummy data, dev Spring profile, fast test-user login helm upgrade --install caritas ./ -n caritas --create-namespace \ -f values.yaml -f values-dev.yaml -f secrets.yaml # production (what the hoster runs via ArgoCD) helm upgrade --install caritas ./ -n caritas --create-namespace \ -f values.yaml -f values-prod.yaml -f secrets.yaml
Overlays only change test friction and per-environment wiring. Encryption is
never toggled — there is no dev "encryption off" mode by design (see
docs/infrastructure-report-2026-07.md §7).
With values-dev.yaml, signoz.enabled=true deploys SigNoz, enables
application OTLP export by default, and serves the UI at
https://<global.domainName>/signoz/. For an external collector, set
global.observability.otlpEnabled=true and provide its HTTP host and port in
global.observability.otlpCollectorHost.
Layer values-pre-dev.yaml over values-dev.yaml for Pre-Dev. This keeps both
chart-managed SigNoz UI ingresses off and the UI Service on ClusterIP. The
separate browser metrics route stays available. Use the existing Pre-Dev
Kubernetes context to open a loopback connection to SigNoz.
kubectl --context "$PRE_DEV_KUBE_CONTEXT" -n caritas port-forward \
--address=127.0.0.1 service/caritas-signoz 18080:8080Open http://127.0.0.1:18080/signoz/ and sign in with your existing SigNoz
account. Later values and --set options take precedence, so check the final
release inputs for any UI exposure overrides.
After an authorized rollout, verify the applied Helm revision, the private
Service and every ingress or gateway route to it. Check /signoz/, its
JavaScript asset and the dashboard API from both the public host and loopback.
The public app can return its own HTML for /signoz/, so check the service
identity as well as HTTP status. Verify the RUM path independently.
Pre-Dev operations hardening
Layer values-prod.yaml over the base values for production. With that overlay,
signoz.enabled=true prepares the internal UI and data stores. The bundled
collector has zero replicas and the overlay disables its autoscaler, public
ingresses, gateway, and Java, infrastructure and browser exporters. The UI and
collector Services use ClusterIP.
After the activation requirements are verified, local Java export needs
global.observability.otlpEnabled=true and a positive
signoz.otelCollector.replicaCount. An explicitly configured independent
global.observability.otlpCollectorHost can receive Java export with the
bundled collector still dormant. Local infrastructure and browser producers
require a running bundled collector. Browser metrics also require the dedicated
signoz.otelCollector.ports.otlp-rum.enabled Service port.
Production activation requires a verified privacy pipeline on the current collector, retention, backup and restore, and authenticated UI access. The historical pseudonymization pipeline targeted an earlier collector. Historical collector PR · Production acceptance
Add-ons are optional services with their own backend and UI (ADR-034). The
AddonService discovers them,
lets a SuperAdmin enable each one per Träger and serves them under
/service/addons. It is off by default (addonService.enabled: false); with
it off, nothing below is rendered.
To enable it, set in values.yaml:
addonService.enabled: trueaddonService.image.repository/addonService.image.tag: required, no default (a tag of the formsha256:<digest>pins by digest);addonService.imagePullSecretsfor a private registryaddonService.discovery.namespace: where add-ons run (defaultaddons). The chart grants the AddonServiceget/liston Services there only. The namespace must exist before the install, or setaddonService.discovery.createNamespace: trueaddonService.discovery.staticAddons: add-on base URLs used in addition to Kubernetes discovery (discovery.kubernetes: falseturns discovery and its RBAC off)
and in secrets.yaml:
-
global.secrets.addonServiceDbPassword(and optionallyaddonServiceDbUsername, defaultaddonservice). The Jobaddonservice-db-init-*creates theaddonservicedatabase and user as MariaDB root on install and upgrade; Liquibase in the service creates the tables. Use a password without quotes. After changing it, delete the completed Job so the next upgrade runs it again. -
addonService.tokenPrivateKeyPem: the RS256 key that signs the tokens add-ons receive. It must stay the same across restarts and replicas:openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out addonservice-token.pem
Add-ons are not part of this chart; each brings its own chart or manifests and installs into the add-on namespace. An add-on:
-
exposes a Service labelled
oriso.io/addon: "true"(port from the annotationoriso.io/addon-port, otherwise the first port) -
serves its manifest at
/.well-known/oriso-addon.json -
should accept traffic only from the AddonService, for example:
apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: only-addonservice namespace: addons spec: podSelector: {} policyTypes: [Ingress] ingress: - from: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: caritas podSelector: matchLabels: app: addonservice
Add-on backends reach the AddonService at
http://addonservice.<release namespace>.svc:8090.