What an install runs
The two backends run the same image with a different
SERVICE_MODE (sdk or
dashboard), so each can scale on its own. The chart runs one replica of each
by default.
The services it needs
The chart can run PostgreSQL, Redis and an S3-compatible store (SeaweedFS) in
the cluster, and does by default. Turn each off to use your own managed service
instead.
Optional services: Firecrawl, for website knowledge sources; an OpenTelemetry
collector, for tracing; and a Slack webhook, for alerts. Network
lists every outbound connection and which can stay private.
Credentials go in three Kubernetes Secrets, one each for the backends
(
moss-backend), the worker (moss-worker) and the dashboard
(moss-dashboard). SECRET_ENCRYPTION_KEYS, which encrypts the credentials
admins enter in the dashboard, must be the same in moss-backend and
moss-worker. Keep a copy: there is no way to recover those credentials
without it.
Delivery: the Helm chart and images
- The chart is an OCI artifact,
oci://ghcr.io/viamoss/charts/moss, in a private registry. Moss gives you a read-only token to pull it and the images; ask your Moss contact. You can mirror the chart and images into your own registry. - The images:
moss-backend(both backends, the migrate Job and the retention CronJob),moss-worker, and the dashboard. Use themoss-dashboard-oidcimage, which signs in through OIDC: the sign-in method is built into the dashboard image, so it can’t be switched at runtime, and the chart’s default dashboard image is the hosted service’s. - Versions. Image tags default to the chart’s version, so one chart version brings matching images. If you pin image tags, set them all to the chart’s version.
- Signatures. The chart and images are signed with cosign. The chart README shows how to verify them before you install, and how to enforce signatures in the cluster.
- The SDK is the npm package
@viamoss/moss-sdk, released with the same version number as the server. See Versioning.
Upgrading
- Read the release’s notes in the changelog, and back up the database. Migrations can’t always be reversed.
- Check that the chart renders with your values:
helm template <release> oci://ghcr.io/viamoss/charts/moss --version <version> -f values.override.yaml. - Upgrade the server with
helm upgrade, passing your values file. The migrate Job runs the migrations before the new pods start. If a migration fails, the upgrade stops, and the failed Job stays so you can read its logs. - Upgrade the SDK to the same version, after the server. A newer SDK can use features an older server refuses: for example, a 0.16.25 server refuses the 1–5 star rating that SDK 0.17.0 can send.
Dashboard sign-in and roles
A self-hosted dashboard signs in through your OIDC identity provider, and every install is one organization, named byON_PREM_ORG_ID. Set:
OIDC_AUDIENCE takes a comma-separated list. It must include the dashboard’s
OIDC client ID, or users go back to sign-in after every sign-in.
Behind an ingress or reverse proxy, the usual layout, the dashboard may also
need AUTH_TRUST_HOST=true and AUTH_URL set to its public URL.
The dashboard has two roles, Admin and Member. Moss reads the user’s
groups from the token’s groups claim (OIDC_ROLE_CLAIM changes the claim) at
each sign-in, and stores no roles of its own:
Set the same group lists on the backends and the dashboard. A role applies to
every application on the install. Members can’t open the Configure pages
or API logs; see Dashboard overview for what each
role can do.
Dashboard sessions last as long as the identity provider’s ID token, such as
60 minutes on Okta. With
OIDC_REFRESH_TOKENS=true on the dashboard, from
0.16.19, the dashboard renews the token with a refresh token. Allow the
refresh-token grant for Moss in your identity provider first, or every sign-in
fails.
SDK request limits
From 0.17.0,sdk-backend limits how fast each SDK user can send requests,
counted in Redis. SDK_RATE_LIMITS_ENABLED defaults to true, and the chart
sets it on sdk-backend; on 0.16.x the limits were off by default.
A request over a limit gets 429 with
Retry-After. What the user sees
depends on the request:
- A question or a guided step: the chat shows “Too many requests. Try again shortly.” with a retry.
- Starting a new chat: the SDK retries for about 30 seconds, then shows the connection error, “Unable to connect”, with Retry.
- A recording upload: nothing in the chat. The browser console logs the failed upload.
SDK_RATE_LIMITS_ENABLED=false on sdk-backend to turn all four off, for
example when many users share one token subject.
The full operator reference
The chart’s README is the reference for every setting, with its default and the chart values. Print the one for your version with:docs/sse.md (passing live loader steps through
proxies) and docs/cosign-verification.md (verifying signatures). Run
helm pull oci://ghcr.io/viamoss/charts/moss --version <version> --untar to
get them.
The other self-hosting pages answer the common questions:
Models and response time
Providers, regions, and what decides how long an answer takes
Network and egress
What the install reaches, and what browsers need from it
Operations
Tracing, backup and restore, retention, safety filters
Common questions
Who can do what in the dashboard, and where do roles come from? Roles come from your identity provider’s groups:OIDC_ADMIN_GROUPS makes
Admins, and OIDC_MEMBER_GROUPS, or anyone who can sign in when it’s unset,
makes Members. See Dashboard sign-in and roles.
Do we upgrade the server or the SDK first?
The server, then the SDK to the same version. See Upgrading.
Where is the list of every setting?
In the README that ships with the chart: helm show readme prints it for your
version.
Why did our pods lose SERVICE_MODE after we added one setting?
An env list in your values file replaces the chart’s whole list for that
workload. Repeat the chart’s default entries in it.