Skip to main content

Installing Prism

Read README.md first for what you're getting and what you provide. If your deployment has a page under customers/, it carries the real names and hosts for the placeholders below and overrides anything here.

The worked examples here lean Azure — ARO, Azure Container Registry, Azure Database for PostgreSQL — because that is where the first deployment lives. Nothing in the chart is Azure-specific: it wants a Kubernetes namespace, an OCI registry you can pull from, and a Postgres that can create the vector extension. Where a step genuinely differs by provider it says so and gives the check that settles it, rather than leaving you to trust an example written for somebody else's cloud.

1. Before the first install​

a. Confirm the vector extension can be created. The agent runner's boot migration runs CREATE EXTENSION IF NOT EXISTS vector, and crash-loops if the server refuses. Whether it refuses is a matter of which managed Postgres you are on, and the two we have measured disagree:

ProviderWhat you have to do
Azure Database for PostgreSQL flexible serverAdd VECTOR to the azure.extensions server parameter (dynamic, no restart). Until you do, the statement is refused.
Cloud SQL for PostgreSQLNothing — there is no allowlist to add to. CREATE EXTENSION succeeds as it stands, measured on PostgreSQL 16.14, which supplies vector 0.8.1.

So run the statement yourself before installing, rather than reading a row and assuming. It is idempotent, it is exactly what the runner will do, and it answers the question for any provider — including one not in the table:

psql "host=<postgres-host> dbname=<runner-database> user=<user> sslmode=require" \
-c 'CREATE EXTENSION IF NOT EXISTS vector;'

Run it against the runner database, as the user the chart will connect as (postgres.external.user) — that role needs the privilege, not just the server.

Prism runs administrator-written manifest SQL under a role named prism_admin_sql. The role has no login and no superuser powers. It reads every table through pg_read_all_data. Prism uses the role only when it is granted to postgres.external.user and to no other role.

There are two ways to make the role:

  1. A DBA makes it. postgres.external.user holds only membership of pg_read_all_data. Before the first start, a superuser runs the lines below. On Postgres 14 and 15, a DBA with CREATEROLE can run them too.
  2. The app makes it at start-up. postgres.external.user holds the rights in this table:
Postgres versionWhat postgres.external.user needs
14 and 15Superuser. Or CREATEROLE and membership of pg_read_all_data.
16 and laterSuperuser. Or CREATEROLE and pg_read_all_data WITH ADMIN OPTION.

On Postgres 14 and 15, use way 1. There, a login with CREATEROLE can grant itself pg_execute_server_program and run shell commands on the database server. On Postgres 16 and later, Postgres refuses that grant, so way 2 is safe there. On a managed Postgres 16 or later with no superuser for you, way 2 is the only way.

The lines for way 1:

GRANT pg_read_all_data TO <app user>;
CREATE ROLE prism_admin_sql NOLOGIN;
COMMENT ON ROLE prism_admin_sql IS 'prism admin SQL sandbox';
GRANT pg_read_all_data TO prism_admin_sql;
GRANT prism_admin_sql TO <app user>;

The admin SQL sandbox line prints the last four lines for your login. It adds BYPASSRLS where the role needs it.

The lines for way 2. A DBA grants the two rights. The DBA is a superuser, or has CREATEROLE. On Postgres 16 or later a DBA who is not a superuser also needs two more things:

  1. pg_read_all_data WITH ADMIN OPTION. Without it the GRANT fails with permission denied to grant role "pg_read_all_data".
  2. The ADMIN option on the app's login. A DBA has it on a login that DBA created. Without it the ALTER ROLE fails with permission denied to alter role.
ALTER ROLE <app user> CREATEROLE;
GRANT pg_read_all_data TO <app user> WITH ADMIN OPTION;

In way 2, the login must inherit pg_read_all_data. On Postgres 14 and 15, a login made NOINHERIT does not. On Postgres 16 and later, a grant made while the login is NOINHERIT does not. Prism then logs login reads less than everything.

pg_read_all_data reads every table in every database on the server. Grant it only to a login that should read all of that. If the login should read less, do not grant it. Prism then runs that SQL read-only as the login itself.

On Postgres 16 and later, when a login that is not a superuser creates a role, Postgres also grants the new role to that login. Prism refuses a role that is granted to any login other than its own. Only a superuser can remove that grant. So on a managed Postgres 16 or later, a role a DBA creates by hand is not used.

Where the role is not made, Prism runs as before. The app log then carries one line with "admin_sql_sandbox": "unavailable". Its why is InsufficientPrivilegeError when the login may not create roles or may not grant pg_read_all_data. Under way 1 the app logs that line at each start until the DBA has run the lines. Its why is login reads less than everything when the login does not hold pg_read_all_data. See the admin SQL sandbox line.

Moving an install to a new login. The role made for the old login is not used by the new login. Find your case in this table:

Old loginPostgresThe self test saysDrop the role as
A superuser14 and 15may not SET ROLE prism_admin_sqla superuser, or a login with CREATEROLE
A superuser16 and latera line that starts with sandbox not in effecta superuser
Not a superuser14 and 15not a sandbox (granted to <old login>)a superuser, or a login with CREATEROLE
Not a superuser16 and latergranted to <old login>a superuser, or the old login if it made the role (way 2)

Then:

  1. Connect to Prism's database as the login in the last column.
  2. Run DROP ROLE prism_admin_sql;.
  3. If Postgres refuses with role "prism_admin_sql" cannot be dropped because some objects depend on it, the role holds a grant or a user mapping. The self-test page asks a DBA to add those. The DBA who added them runs REVOKE EXECUTE ON FUNCTION <function> FROM prism_admin_sql; for each grant. The DBA runs DROP USER MAPPING FOR prism_admin_sql SERVER <server>; for each user mapping. Then run step 2 again.
  4. Make the role for the new login. Under way 1, run the lines for way 1 with the new login. Under way 2, restart the app.
  5. Add the grants and user mappings from step 3 again.

On Postgres 14 and 15 you can drop the old login first. The self test then says may not SET ROLE prism_admin_sql, and the steps above still work. On Postgres 16 and later, Postgres refuses to drop an old login that is not a superuser while the role it made exists. It says role "<old login>" cannot be dropped because some objects depend on it. Drop prism_admin_sql first.

On your own Postgres, also see step h below.

b. Egress to the Agent Router data plane. Outbound HTTPS/443 from the namespace to your data-plane gateway — the project gateway this install will use. This is the one mandatory external connection; all inference rides it.

The Agent Router management plane is a separate address, and is only reached if you later take Router spend or directory live (see Data sources — it needs an admin key). Its URL, mcps.management.valetServiceUrl, ships empty and is refused at render once one of those modes is on. Leave it unset while every source is synthetic: nothing calls it, and nothing asks you for it.

One more outbound connection joins this list if you use local sign-in (app.identity.mode: local, see Identity and roles): your SMTP relay, at smtp.host:smtp.port, from the namespace. Sign-in links arrive by email; with the relay unreachable nobody can ever sign in.

Prove each of these from a pod in the target namespace before you install rather than after — the commands, and how to tell a closed route from a wrong credential, are in Prove the egress.

c. One inference key — you provide it. Issue a project-scoped inference key through your own key-issuance process (a service-account key on the project this install serves) and hand it over securely; it goes into the Secret as tare-inference-key. Prism uses it directly for every user — it does not mint keys, so no admin platform key is needed and nothing bypasses your key issuance process.

There are two other Router credentials in the Secret, and they buy different things — one to mint per-user keys instead of this one, one for Router spend. Which Router credential buys what has the table; the short version is that they are not interchangeable and only one of the first two may be set.

A single shared key means no per-Prism-user LLM cost split. That is immaterial for a small audience, and the per-developer PR/Jira/spend analysis Prism shows is unaffected — that comes from the data sources, not from who called the model.

d. Project, key and gateway must match. Each Agent Router project has its own data-plane gateway, and the default project may have none. A key for the wrong project is rejected 403 at the gateway ("not authorized for this data plane").

So one Prism deployment serves one project/gateway: set app.projectId, router.proxyUrl and the inference key so all three name the same project. To serve two projects, install twice. app.customerId is the tenant your inference key belongs to.

e. Raise the idle timeout in front of Prism to at least 10 minutes. An answer that makes several tool calls can run for minutes, and Prism sends no keepalive traffic between events, so an ingress, gateway or proxy counting quiet time will cut a working answer mid-stream. The 60-second default several of them ship with is not enough, and the failure presents as "the chat hangs" with a fully green self test. See Limits.

It also bounds a request that works for a while before it answers: running a context stream's verification question against a large source sends nothing until it finishes. A proxy with a short timeout drops it and answers with its own 502, 503 or 504, and Admin → Context streams › Verification then says on that question that the proxy gave up rather than showing a figure. On OpenShift the Route's default is 30 seconds, which is shorter than such a question can take:

oc annotate route <your prism route> --overwrite haproxy.router.openshift.io/timeout=10m

On ingress-nginx the equivalent is two annotations, nginx.ingress.kubernetes.io/proxy-read-timeout: "600" and nginx.ingress.kubernetes.io/proxy-send-timeout: "600". Any other proxy or gateway in the path — a corporate reverse proxy, a load balancer — needs the same, and the smallest one wins.

Put the annotations where your install owns them, or the next upgrade drops them. Where this chart renders the Ingress (app.ingress.enabled), its annotations come from app.ingress.annotations in your values file and are rewritten on every helm upgrade — so a hand kubectl annotate on that Ingress is lost at the next one. An OpenShift Route you created yourself is not the chart's and keeps what you set, but whatever creates it (a template, a GitOps repo) is where the value belongs.

Prism's own wait for one verification question is twice mcps.semanticMcp.statementTimeoutSeconds plus 15 seconds — 45 seconds by default. With viewer scoping on, the question goes through the Runner. The Runner waits for the same figure, and never less than 60 seconds. Prism waits 5 seconds longer than the Runner, 65 seconds by default. Prism first looks up the Runner's route for the question, which can add up to 30 seconds. So allow Prism's wait plus 30 seconds, 95 seconds by default. Set the timeouts above higher than that figure, so that Prism stops a slow question itself and the card carries Prism's own reason rather than a proxy's. If you raise statementTimeoutSeconds, raise them with it. Raising a Route timeout does not raise Prism's wait.

f. Decide where your org directory comes from. Prism requires one source of directory data — who exists, what they are called in each system, and which team they are on — and if that lives across several systems in your organisation, joining them into one is your work rather than Prism's. In this release Prism derives the identities from the data it mirrors and takes a CSV of email address to GitHub login; the team of each person is typed in, and no pass will ever fill it for you. Nothing fails to install without it — you lose every team-shaped question and nothing else. Worth knowing before you buy, not after you install: One stream must carry your org directory.

g. If the namespace has a ResourceQuota, size it against the chart's limits, not its requests. A quota on limits.cpu / limits.memory counts every container's ceiling, used or not. The steady-state limits total on the Limits page has to be permitted before any of it starts, less the Bundled Postgres row if you run Postgres outside the cluster (postgres.bundled=false). Add one Job slot on top of that for the install itself — the synthetic-seed hook runs on every install as well as every upgrade, and it starts while the steady pods are already holding their share of the quota — so the working floor is that total plus the Synthetic seed row. Leave room above that again for an upgrade, when the ingest Jobs overlap the steady state too. The per-component table on the Limits page is generated from the chart you are installing; take the totals from there rather than from this line if a later release moves them.

A shortfall names none of this. helm reports Error: INSTALLATION FAILED: failed post-install and the pods behind it are Pending or refused at admission, which reads as a broken cluster rather than a sizing mistake. The per-component figures, generated from the chart, and how to tell a quota shortfall from a full node pool: Compute, and the namespace quota you need.

h. On your own Postgres, take two functions away from PUBLIC in Prism's database. Postgres lets every role (PUBLIC) execute two functions that undo the prism_admin_sql sandbox (step a):

  • pg_logical_emit_message writes WAL that a rollback does not undo, so manifest SQL can fill disk and replication or backup volume from a page that only reads. This matters on every install.
  • set_config lets a statement leave the prism_admin_sql role and act as the app's login for the rest of itself. This also matters on every install. Where postgres.external.user is a superuser, the statement is the superuser. Where it is not, the statement is still that login, which the app, the ingest jobs and every MCP server share. It can end their sessions with pg_terminate_backend, and if the login has REPLICATION, it can create a replication slot that the rollback does not remove.

On the bundled Postgres, Prism revokes both itself at start-up, because its login there is a superuser. Nothing is needed from you.

On your own Postgres, Prism does the same only where postgres.external.user is a superuser. Only a superuser, or the owner of pg_catalog's functions, can revoke on them. Anyone else gets the warning no privileges could be revoked and nothing changes. So wherever postgres.external.user is not a superuser, a DBA must run the statements below, whatever else that login can or cannot do. Until then, Prism's log says which of the two PUBLIC can still execute ("admin_sql_revokes": "skipped"), and so does the self test's admin SQL sandbox line. A DBA who is a superuser runs this, connected to Prism's database (postgres.external.database), with <app user> replaced by postgres.external.user:

REVOKE EXECUTE ON FUNCTION pg_catalog.set_config(text, text, boolean) FROM PUBLIC;
GRANT EXECUTE ON FUNCTION pg_catalog.set_config(text, text, boolean) TO <app user>;
DO $$
DECLARE f record;
BEGIN
FOR f IN SELECT proname, pg_get_function_identity_arguments(oid) AS args
FROM pg_proc
WHERE pronamespace = 'pg_catalog'::regnamespace
AND proname = 'pg_logical_emit_message' LOOP
EXECUTE format('REVOKE EXECUTE ON FUNCTION pg_catalog.%I(%s) FROM PUBLIC',
f.proname, f.args);
END LOOP;
END $$;

The GRANT is not optional. Prism calls set_config itself, starting with its start-up schema. Without the grant, Prism fails at start-up with permission denied for function set_config. The app, the ingest jobs and the MCP servers all connect as <app user>, so that one grant covers them. If postgres.external.runnerDatabase is the same database as postgres.external.database, the runner connects as the same user too. Never grant either function to prism_admin_sql, or to a role it belongs to. That would undo the change. If one is granted, Prism's start-up log ("role") and the self test's admin SQL sandbox line name it and say to revoke it. Prism does not revoke it itself.

pg_logical_emit_message is looked up by name because its argument lists differ between Postgres versions (Postgres 17 adds a flush argument).

What it costs. Every other role that connects to Prism's database and is not a superuser loses set_config too. That includes a backup role: pg_dump run as a non-superuser stops at its first statement with permission denied for function set_config. It also includes a reporting role whose client sets a parameter that way, and a role that a Postgres context stream reading Prism's own database takes with role_parameter, because the stream's session sets its schema after it takes the role. Grant it back to each such role:

GRANT EXECUTE ON FUNCTION pg_catalog.set_config(text, text, boolean) TO <backup or reporting role>;

The change is to this database only. The runner's database and any other database on the server are untouched. A pg_dump of Prism's database carries it, so a restore made by a superuser applies it again.

To check, in Prism's database (every row should say f):

SELECT format('%s(%s)', proname, pg_get_function_identity_arguments(oid)) AS function,
has_function_privilege('public', oid, 'EXECUTE') AS public_can_execute
FROM pg_proc
WHERE pronamespace = 'pg_catalog'::regnamespace
AND proname IN ('set_config', 'pg_logical_emit_message');

If no role on your Postgres may run the REVOKE (a managed service that gives you no superuser may not), both stay open to manifest SQL on that install. pg_logical_emit_message can write WAL that a rollback does not undo, and set_config can return a statement to the app's login, with what that login can do.

i. Never create a schema with the same name as Prism's Postgres login. The login is postgres.external.user, or postgres on the bundled Postgres. If someone creates that schema on a running install, Prism makes an empty copy of each of its tables in it and reads the copies. Every context stream, the run history and every answer then look empty, and no error says why.

2. Mirror the images and the chart into your registry​

Nine images, copied from ours to yours with whatever tool your registry prefers, and then the chart itself. For the images the chart cares about one thing only: the prefix they end up under, which becomes global.imageRegistry. pgvector is the bundled Postgres — the upstream pgvector image with Debian's updates, which we build, scan and digest-pin into the release so your cluster never pulls from Docker Hub. It runs only when postgres.bundled=true, and if you are bringing your own Postgres you can skip it — see If you are not using the bundled Postgres below, which also says what to do if you ever turn it on.

Take the list from the chart, not from this page. The chart tarball carries prism/images.txt — every image in the release, pinned by digest. Pull it first and mirror from it, so the set you copy is the set this release actually ships and each image is the exact one we built and scanned:

What you need on the machine you run this from: helm, and one tool that copies between registries. The examples below use skopeo; crane and docker also work, with the caveat about ARM workstations further down. Everything in this step runs from your workstation or a build agent — nothing runs on the cluster.

And your Cloudsmith credentials, which every command in this step uses: CLOUDSMITH_USER is your Cloudsmith username and CLOUDSMITH_TOKEN is an API key or entitlement token from the same account. We issue these to you with the release; if you do not have them, ask us rather than guessing at an account name. Set them the way your shell keeps a secret out of its history — read -s below does that, and a secrets manager is better still.

VERSION=<this release>
DEST=<your registry>/prism # this is what global.imageRegistry gets

CLOUDSMITH_USER=<your cloudsmith username>
read -rsp 'Cloudsmith token: ' CLOUDSMITH_TOKEN; export CLOUDSMITH_TOKEN; echo

helm registry login docker.cloudsmith.io \
-u "$CLOUDSMITH_USER" -p "$CLOUDSMITH_TOKEN"
helm pull oci://docker.cloudsmith.io/tetrate/tetrate-app-dist/prism \
--version "$VERSION" # leaves prism-$VERSION.tgz here

rm -rf "prism-$VERSION" && mkdir "prism-$VERSION"
tar xzf "prism-$VERSION.tgz" -C "prism-$VERSION"
cat "prism-$VERSION/prism/images.txt" # the release, its revision, every image

Keep the .tgz. It is the chart, and you push it into your own registry below — so this pulls the archive and unpacks it separately, rather than helm pull --untar, which unpacks and leaves you no archive to push.

Unpack into a directory named for the version, and empty it first. The images.txt inside is the one the mirror loop reads; a directory left over from your last upgrade holds the previous release's list, and mirroring from it puts last release's images under this release's tag with nothing downstream noticing. rm -rf before mkdir is what makes re-running this safe. The archive protects itself — its name carries the version — but a plain helm pull overwrites an existing .tgz without a word, so do not rely on it refusing.

If we cut a build for your environment specifically, its chart comes to you as a tarball rather than through the registry. Skip the helm pull and start at rm -rf; everything after it is the same, this step included.

Then mirror what it lists:

while read -r ref; do
case "$ref" in ''|'#'*) continue ;; esac # skip the header (and `# chart:`)
name="${ref%@*}"; name="${name%:*}" # …/prism-app
digest="${ref#*@}" # sha256:…
img="${name##*/}" # prism-app
skopeo copy --all \
--src-creds "$CLOUDSMITH_USER:$CLOUDSMITH_TOKEN" \
"docker://$name@$digest" "docker://$DEST/$img:$VERSION"
done < "prism-$VERSION/prism/images.txt"

If you are not using the bundled Postgres​

pgvector is the one image in the release that your cluster may never start. It runs only when postgres.bundled=true, which is the chart's default — so this applies if you have set it to false and pointed Prism at a Postgres of your own. On that install you can leave it out of your registry, and there is a reason beyond saving a copy: it is a Debian-based image, so a scan of it reports findings from packages Debian has not fixed — more than a hundred at CRITICAL and HIGH, none of them ours to fix and none of them running on your cluster. Mirroring it puts all of those in your registry's report for a container that never starts.

To skip it, filter it out of the loop — one line, so that skipping is something you do rather than something you decide:

while read -r ref; do
case "$ref" in ''|'#'*) continue ;; esac
name="${ref%@*}"; name="${name%:*}"
digest="${ref#*@}"
img="${name##*/}"
case "$img" in pgvector) continue ;; esac # not using the bundled Postgres
skopeo copy --all \
--src-creds "$CLOUDSMITH_USER:$CLOUDSMITH_TOKEN" \
"docker://$name@$digest" "docker://$DEST/$img:$VERSION"
done < "prism-$VERSION/prism/images.txt"

And if you ever turn the bundled Postgres on, mirror that one image first, at the version you are on then — not the version you skipped it at:

grep pgvector "prism-$VERSION/prism/images.txt" | while read -r ref; do
name="${ref%@*}"; name="${name%:*}"
skopeo copy --all \
--src-creds "$CLOUDSMITH_USER:$CLOUDSMITH_TOKEN" \
"docker://$name@${ref#*@}" "docker://$DEST/pgvector:$VERSION"
done

Without it, setting postgres.bundled=true leaves the Postgres pod in ImagePullBackOff — a clear failure rather than a subtle one, but one whose cause is easier to remember from here than to work out then.

The Security acceptances section records what a scan of that image reports and why, whether or not you mirror it.

The destination keeps the version tag, because that is what the chart's image defaults reference: every image tag defaults to the chart's own version, so a chart pulled at $VERSION asks your registry for $VERSION and there is nothing to set. The source is a digest, so what lands in your registry cannot depend on when you ran the loop.

If you tag them something else, set the tags too. The default follows the chart, not your registry — so a mirror that renames images or drops the version needs --set <component>.image.tag=... for each one, and a path you mistype is accepted silently and leaves that component on its old image. crane copy takes the same two arguments. docker pull + docker tag + docker push reaches the same place through your workstation, but on an ARM workstation — any Apple Silicon Mac — it needs docker pull --platform linux/amd64. All nine images are built for amd64 only, so without the flag Docker refuses them with no matching manifest for linux/arm64/v8 in the manifest list entries. Add --platform linux/amd64 to every docker pull here and all nine copy correctly. skopeo copy --all and crane copy have no such problem: they copy every architecture in the manifest list without running anything, which is why they are what the examples use. If your registry proxies ours on demand there is nothing to run here at all — set global.imageRegistry to the pull-through prefix and skip to step 3.

Then push the chart itself​

The loop above copies images. The chart is not one of them, and it is not in images.txt — so unless you push it too, the only copy is ours, and a cluster or pipeline that cannot reach docker.cloudsmith.io has nothing to install from. This is the .tgz you kept:

helm registry login <your registry host> -u <user> -p <token>
helm push "prism-$VERSION.tgz" "oci://$DEST"

helm push takes the repository prefix and derives the rest from the chart itself, so pushing to oci://$DEST publishes $DEST/prism:$VERSION — the same $DEST the images went to, and the reference you use in steps 5 and 9.

Only your cluster needs the images; helm needs the chart wherever you run it. If the machine running helm can reach us, you can keep installing straight from oci://docker.cloudsmith.io/tetrate/tetrate-app-dist/prism and skip this. Push the chart when your pipeline or cluster is closed to the internet — which is the usual case for the environments this appliance is installed into, and the reason this step exists.

Helm 3.7 or later is required to push a chart to an OCI registry; 3.7.2 or later is recommended. On Azure Container Registry that is the supported route — az acr helm, the older non-OCI Helm repository support, was retired on 15 September 2025, so a search that turns it up is describing something that no longer exists. We looked for a version floor or configuration caveat beyond the Helm client version in Microsoft's own ACR documentation on 8 September 2026 and found none; a registry that accepts OCI artifacts accepts the chart.

Checking what you mirrored​

Image digests survive the copy, and the chart's does not. Worth knowing before you try to verify the wrong one:

  • The images can be checked against images.txt. Copying by digest is byte-preserving, so each mirrored image keeps the digest we pinned. skopeo inspect or crane digest against your registry returns the same sha256:… the file names.
  • The chart cannot. helm push rebuilds the OCI manifest, so your copy has a different digest from ours by design. Nothing is wrong, and there is nothing to compare. What identifies it is the version: helm show chart "oci://$DEST/prism" --version "$VERSION" should report the release you pulled.

Two copies of images.txt, and they differ by one line​

Yours — the one inside the chart, which you unpacked above — lists the header and the nine images. If someone sends you the copy that ships beside the chart in a handover, it carries one line more:

# chart: oci://docker.cloudsmith.io/tetrate/tetrate-app-dist/prism:<version>@sha256:…

Neither is wrong and neither is out of date. A file cannot contain the digest of the archive it is inside, so the copy within the chart is written before the chart is packaged and cannot name it; the copy beside the chart is completed afterwards. That line names our copy, and per the section above it will not match the digest of the one you just pushed.

The mirror loop skips it either way, along with the header, because both are # comments.

By tag instead, if you would rather not parse a file — the images are the same ones, but you get whatever the tags point at when you run rather than what we pinned, and an image added to a later release is silently missing from your loop:

SRC=docker.cloudsmith.io/tetrate/tetrate-app-dist

for img in prism-app agent-runner management-mcp github-live-mcp \
semantic-mcp discovery-mcp synth-seed prism-ingest pgvector; do
skopeo copy --all \
--src-creds "$CLOUDSMITH_USER:$CLOUDSMITH_TOKEN" \
"docker://$SRC/$img:$VERSION" "docker://$DEST/$img:$VERSION"
done

Azure Container Registry can do the copy server-side, without pulling anything locally, which is why the Azure form is spelled out separately:

for img in prism-app agent-runner management-mcp github-live-mcp \
semantic-mcp discovery-mcp synth-seed prism-ingest pgvector; do
az acr import --name "$REGISTRY" \
--source "$SRC/$img:$VERSION" \
--image "prism/$img:$VERSION" \
--username "$CLOUDSMITH_USER" --password "$CLOUDSMITH_TOKEN"
done

az acr import takes --source "$SRC/$img@sha256:…" just as readily, so the same digests apply to it.

3. Create the secret​

The chart reads one Secret. Build it from your own secret store — nothing here should be typed into a values file:

kubectl create secret generic prism-secrets -n <namespace> \
--from-literal=app-jwt-secret="$(openssl rand -base64 32)" \
--from-literal=encryption-key="$(openssl rand -base64 32)" \
--from-literal=mcp-shared-secret="$(openssl rand -hex 32)" \
--from-literal=tare-inference-key="<your project-scoped inference key>" \
--from-literal=postgres-password="<postgres password>" \
--from-literal=runner-database-url="postgresql://<user>:<url-encoded-password>@<host>:5432/<runner-database>?sslmode=require&uselibpqcompat=true"
  • tare-inference-key is the key from step 1c, and must belong to the same project as app.projectId / router.proxyUrl.

  • The password in runner-database-url must be percent-encoded. An @ or / in a generated password otherwise produces a DSN that parses to the wrong host — a confusing failure, because it looks like a network problem.

  • uselibpqcompat=true is required, and is not optional decoration. The agent runner is the one component that is not a libpq client, and without this flag it reads sslmode=require as verify the server certificate chain, where every other component reads the same value as libpq does — encrypt, do not verify. Against a Postgres whose certificate is not chained to a publicly-trusted root (Cloud SQL, or any private-CA instance) the runner then crash-loops before it can log anything, and the only visible symptom is a failing /health probe. With the flag, sslmode means the same thing to every component. Keep it whatever postgres.external.sslmode is set to — the two must agree.

  • Use only standard libpq sslmode values. no-verify is a node-postgres spelling: the runner accepts it and every other component rejects the install with invalid sslmode value: "no-verify".

  • app-jwt-secret, encryption-key and mcp-shared-secret are generated here and never leave the cluster. They are the app↔runner trust, the runner's at-rest encryption key, and the credential every internal query server checks on every request.

  • mcp-shared-secret is new in 0.11.0, and an upgrade without it does not work. The internal query servers refuse any request that does not present it, so it is not a setting with an off position: unset, they refuse everything. How you find that out depends on who owns the Secret, and the two are not the same failure:

    Your installMissing value shows up as
    chart-managed Secret (secrets.* in your values)helm upgrade stops, naming secrets.mcpSharedSecret and how to generate one. Nothing is changed, and Prism keeps running.
    existingSecret (the recipe on this page)helm upgrade succeeds, and Prism goes down. The chart renders no Secret under existingSecret, so there is no value for it to require. Every new pod then fails to start with CreateContainerConfigError, naming mcp-shared-secret as the key it could not find. The query servers are RollingUpdate, so their old pods keep serving — but the app is a single replica with strategy: Recreate, which means Kubernetes stops the running one before creating its replacement. There is no UI and no chat until the Secret has the key.

    So on the existingSecret path the ordering is not a tidiness preference — it is the difference between an upgrade and an outage: patch the Secret first, then upgrade.

    kubectl patch secret prism-secrets -n <namespace> --type merge \
    -p "{\"stringData\":{\"mcp-shared-secret\":\"$(openssl rand -hex 32)\"}}"

    If you got the order wrong, the recovery is the same one step: patch the Secret. The app's pod is already gone, so Kubernetes creates its replacement as soon as the key exists; the query servers pick it up on their next roll, which kubectl rollout restart brings forward — Rotating a credential lists all six.

    Why it exists: before 0.11.0 those servers were reachable, unauthenticated, by anything that could open a connection to them inside the cluster. That was documented as network isolation being the fence, and in a Kubernetes namespace with no NetworkPolicy it is not one — a kubectl port-forward was enough to read the people, the spend and the tokens the appliance holds.

4. Fill in your values​

Every setting is a chart value rendered into the deployment as an environment variable, so changing one is a helm upgrade with a new --set — no image rebuild, and no reinstall.

Write them in your own file, kept outside the chart. Somewhere you keep your own configuration — beside your other Kubernetes manifests, in your configuration repository — and pass it with -f on every command on this page. Something like prism-values.yaml, in a directory of yours.

Do not edit the chart's own values.yaml. If you untar the chart, that file sits in front of you and is the obvious thing to fill in. It is the wrong one, and it fails in a way that gives you no warning: the next release is a new tarball, values.yaml in it is ours again, and every value you set reverts on the upgrade. Nothing errors — the install comes up on our defaults for anything you edited there.

This is not hypothetical. It cost the first customer a release: a setting they had been told to apply was written into a file they did not install with, and every question failed until it was applied by hand a second time.

Your file is also the one you can read back, diff, and put under review. The chart's is a file you get a new copy of every time.

Three Agent Router URLs ship empty, and helm upgrade refuses to render until you set them. router.platformUrl and router.proxyUrl are required on every install. mcps.management.valetServiceUrl is required only once sources.spend is indexed or live — so an all-synthetic pilot never needs it, and indexed does count, which is the mode you will most likely want. That is deliberate: they are addresses on your network, we cannot guess them, and a plausible-looking default is worse than no default. An install pointed at the wrong Router comes up perfectly healthy and answers nothing.

helm names every missing required value at once. Up to 0.13.0 it stopped at the first one, so the required set was discovered one failed render at a time: seven attempts on the bundled datapond, and eight on an external one, each of them a real helm install or helm upgrade. Since 0.13.1 a render with none of them set fails once and lists them all, numbered, each with what it is for — so they can be filled in in a single edit of your values file.

The list is complete for your values file, not in the abstract:

  • With existingSecret set the chart renders no Secret of its own, so it asks for none of the secrets.* keys — the list is then the two Router URLs alone. Those keys are still required; they are in the Secret you created in step 3, where a missing one is a CreateContainerConfigError on the pod rather than a refused render.
  • postgres.external.host joins the list only on postgres.bundled=false.
  • A value some other setting turns on is checked where it is used, not in this pass, so it can still stop a later render one at a time: mcps.management.valetServiceUrl once sources.spend is indexed or live, ingest.github.orgs once sources.github is live, ingest.jira.url once sources.jira is live, app.ingress.host with the ingress enabled, and — on app.identity.mode: local — app.auth.superAdmins, smtp.host, smtp.fromAddress and app.auth.baseUrl, which are still met one render each. Turning a source or a sign-in mode on is a separate step on purpose, and it has its own checks.

On a chart-managed Secret, from an empty values file, the render asks for secrets.inferenceKey or secrets.tarePlatformApiKey, secrets.appJwtSecret, secrets.encryptionKey, secrets.mcpSharedSecret, secrets.postgresPassword, router.platformUrl and router.proxyUrl — plus postgres.external.host when the datapond is external. secrets.postgresPassword is required in both datapond modes: on postgres.bundled=false it is the password for postgres.external.user, not a bundled-only value.

The fields you must set:

FieldSet to
global.imageRegistrywhere you mirrored the images, including the repository prefix
router.platformUrlyour tenant's management-plane URL, from your Router console. A URL only — no key needed with bring-your-own inference — but the URL itself is required in both key modes
router.proxyUrlthe data-plane gateway for the project this install serves. Required, and it does not default to router.platformUrl
router.defaultModela model your gateway actually serves — see model.md
app.customerIdyour Router tenant — the one your inference key belongs to
app.projectIdthe Router project this install serves; must match the gateway and key (step 1d). Required — it defaults to default, which is correct only if your Router serves a data plane on the default project, and setting it empty is refused
postgres.external.*host, port, user, the two database names, and sslmode — a standard libpq value (require by default: encrypted, server certificate not verified). verify-ca/verify-full need a CA bundle the pods can read.
router.keyModeonly when you set existingSecret — byok if that Secret holds tare-inference-key, mint if it holds tare-platform-api-key

app.projectId is load-bearing: it drives the app's project and what the runner will accept. A mismatch is the 403 in step 1d.

It may not be left empty either. app.projectId ships as default, so leaving the key alone is a choice — the right one if your Router serves a data plane on the default project, and the wrong one on a gateway that serves named projects, where default is the single value guaranteed to fail. Setting it to "" used to be quietly turned back into default on both sides (the app's project and the runner's allowed list), so the two agreed perfectly on a value nobody had typed: a clean render, healthy pods, and a 403 on every question that reads as a credential fault. helm upgrade now refuses an empty value, naming it. A real project slug — or default, deliberately — is what it wants.

Neither Router URL may be left empty, and the install refuses rather than letting you find that out later. helm upgrade fails at render naming the value, because the runtime symptom points nowhere near the cause: an empty router.platformUrl crash-loops the agent runner on TARE_PLATFORM_URL is not set — a variable name that appears in no values file — and an empty router.proxyUrl starts cleanly and then fails every question against the address /v1, while the self test reports the inference endpoint as not configured rather than as broken.

router.keyMode changes nothing about how the install runs — the runner reads the credential itself. It is there so the self test knows whether router.platformUrl is an address this install ever calls: only minting a per-user key does, so on a bring-your-own-key install a red against the management API is noise. The chart works this out for itself from secrets.inferenceKey / secrets.tarePlatformApiKey; with existingSecret it can see neither, and the self test says so rather than guessing.

postgres.bundled defaults to running an in-cluster instance, which is pilot-grade only — and it will not start under OpenShift's restricted-v2 SCC. The bundled Postgres runs as the image's own user, UID 999, and that SCC refuses a UID outside the range it gives the namespace. It refuses the same pinned UID on the init container that gates agent-runner and synth-seed, so those two are refused admission as well. Set postgres.bundled: false and point at a managed instance.

5. Install​

One release per project/gateway. app.projectId and router.proxyUrl must be a matching pair — see step 1d.

helm upgrade --install prism \
"oci://$DEST/prism" --version "$VERSION" \
-n <namespace> \
-f <your values file> \
--set existingSecret=prism-secrets

$DEST is where you pushed the chart in step 2. If you did not push it — because the machine running helm can reach us — use oci://docker.cloudsmith.io/tetrate/tetrate-app-dist/prism instead. The images come from global.imageRegistry in your values file either way; the chart reference and the image registry are separate settings, and only one of them is this line.

A second concurrent deployment can share a namespace and a Secret, but not the two databases: the runner is a single writer on its state database, and both seed jobs would fight over the data. A second concurrent release needs its own pair of databases (postgres.external.database / .runnerDatabase).

6. Verify​

kubectl get pods -n <namespace>
# 5 running (app, agent-runner, 3 MCPs) + synth-seed job Completed

kubectl logs -n <namespace> job/prism-synth-seed | tail -5 # seeded rows (the seed is not an ingest run)
kubectl port-forward -n <namespace> svc/prism-app 8500:80
# then http://localhost:8500

Ask it something — "who were the top contributors last month?". An answer means the whole path is up: app → runner → data-plane gateway (inference with your key) → MCP → database. The numbers it quotes are synthetic until the sources are flipped.

Then run the self test at /selftest. It checks each hop separately and tells you which one is at fault — including whether a failure is Prism or the Agent Router upstream of it. Run it once on a healthy install so you know what good looks like.

7. Data sources​

The admin page you connect and check these on is Admin → Context streams (/admin/sources, super admin only) — one row per context stream, with the organizational one pinned at the top. Every install serves it: the source registry it reads is always on, and there is no value to switch it off.

Each source flips independently, as its access lands:

SourceNeedsThen
GitHubnetwork access + a read-only service account--set sources.github=live --set ingest.github.orgs=<orgs>
Jiranetwork access + a service account--set sources.jira=live --set ingest.jira.url=<your Jira>, plus --set ingest.jira.email=<the token's account> on Cloud or --set ingest.jira.deployment=data_center on Data Center
Router spendan admin Router management key (insights reads need admin), and the management URL--set secrets.valetApiKey=<admin> --set mcps.management.valetServiceUrl=<your Router management URL> --set sources.spend=indexed

Set the credential and target first, and upgrade once without flipping. The chart probes an upstream you are preparing and reports on the self test whether it is ready — upstream ready to go live, or amber with the fault — so the destructive step below happens against a credential you have already seen work. Flip on the second upgrade.

For Router spend the target is the URL as well as the key: set mcps.management.valetServiceUrl in this preparatory upgrade, not only in the flip. The chart does not require it until a source is actually indexed or live, so a preparatory upgrade without it renders happily — and then the probe has no address to call and reports amber for as long as you leave it, whatever the credential is worth. Take a source live has the sequence, and the reason the order is not negotiable is the paragraph below.

sources.spend takes indexed or live, and indexed is the one to want. Both read the same Agent Router. live asks it inside the chat turn, and because the Router's aggregated usage rows carry no owner, attributing cost to named people costs one call per person — a table of a dozen engineers is a dozen synchronous round trips, and it gets slower the larger the organisation is. indexed sweeps the same request logs into the datapond nightly (ingest.spend.schedule), so the same question is a query: fast, per-key, and still answerable when the Router is briefly unreachable. What you trade is currency — the answers say how fresh the index is and whether it reaches the period asked about, rather than leaving you to wonder.

If you sweep more often than nightly, lower ingest.spend.staleAfterHours to match. Spend answers say the index may be missing recent spend once the last sweep is older than that many hours. The default is 24. For a sweep every 15 minutes, 2 is about right.

The first live ingest for a source truncates that source's synthetic rows before writing real ones. If the ingest then writes nothing, you are left with an empty source rather than the synthetic one you had — which from the chat is indistinguishable from Prism being broken. The self test calls this state out explicitly rather than showing a zero.

The first backfill is long, and helm does not wait for it​

helm upgrade returns before the backfill has started. The ingest tick starts it within ingest.engine.tickMinutes (15 by default), and Copy now on the stream in Admin → Context streams starts it at once. The first run walks ingest.backfillDays (default 90) of history for every org or project you named, which runs to over an hour — one GitHub org over 90 days measured at 77 minutes (8,965 pull requests and 14,386 issues). It walks issues as well as pull requests, so the time follows both, and a larger org takes proportionally longer. Expect it to still be running long after the command has come back clean, and do not read a prompt as "the data is in".

Add roughly 9–18 minutes per GitHub organisation at the default settings: issues reach back at least 365 days there, and each day past the pull-request window costs one extra issue-search request per 100 issues updated that day — one or two at the density the measurement above saw. The figure is that arithmetic applied to the extra days, not a second measurement, and there is nothing to add once ingest.backfillDays is 365 or more — 365 days is a floor on the issue walk, not a cap, so both lanes then walk the same window. See Issues reach back a year.

Watch it finish on the stream's Runs tab (Admin → Context streams, the stream, Runs). The backfill is a copy started by schedule, or by Copy now. Its log (Show every line) prints the window it is walking and a line per day bucket. Admin → Context streams shows per-source row counts filling in, and the self test reports the source as populated once it has.

If the app is not up, the ingest tick's own log is the fallback:

kubectl get jobs -n <namespace> -l app.kubernetes.io/component=ingest-tick
kubectl logs -n <namespace> -l app.kubernetes.io/component=ingest-tick -f

Two things to know while you wait:

  • Re-running the flip command is safe and does nothing. An identical helm upgrade leaves the running backfill alone.
  • You do not need to babysit it. The ingest tick picks the source up on its normal schedule whatever happens to this run, and a GitHub backfill that dies part-way resumes from the last completed day rather than starting over. A source still showing zero rows hours later is a credential or egress problem, not a slow backfill — the self test's upstream check says which.

8. Identity and roles​

app.identity.mode names what fronts the app for identity:

ModeWhat it means
static (default)no identity front door. Everyone using the app is the one env-configured operator identity. Demo/pilot only — wire a front door before multi-user use.
easyauthsomething in front of the app asserts the user via X-MS-CLIENT-PRINCIPAL-* headers. Azure Container Apps' built-in authentication does this natively; so does any OIDC proxy you configure to emit them, which is how an identity provider like Entra ID is put in front of Prism on Kubernetes or OpenShift — see Sign-in with Entra ID. The mode is a header contract, not an Azure feature; the name is historical.
iapGoogle Cloud IAP asserts the user via X-Goog-Authenticated-User-* headers. With app.identity.iap.token.verify, Prism checks IAP's signed token instead: see Verify IAP's signed token.
localthe app is its own front door: allowlisted emails sign in with a single-use emailed link. The multi-user path when no IdP integration exists yet — see Local sign-in below.

The modes are mutually exclusive; the app refuses to start with more than one configured.

easyauth and iap believe the identity headers from anything that can reach the app. What stops a pod in the cluster from setting them is the fence in Close the bypass. Under either mode you can also set secrets.proxyKey, a key your front door adds to every request it forwards in the X-Prism-Proxy-Key header. Prism then refuses a request without it before reading any identity header, so a fence that fails is no longer enough on its own. See A proxy key.

Roles. Everyone the front door admits is a user: they can chat, save prompts, and see their own history. The emails listed in app.auth.superAdmins additionally hold super admin, which is what two surfaces require under easyauth/iap/local:

  • /admin — the admin pages and their APIs. It is a hub listing the admin surfaces this installation has: Context streams (what this installation is connected to: which mode each source runs in and how fresh its data is), Answer feedback (what readers have reported about an answer) and App users (who holds which role, and under local who may sign in at all). An entry that does not apply to your install is not listed, and its page is not served;
  • /selftest — the diagnostic report (it names image refs, internal URLs and this install's configuration).

A super admin can also give a person the app admin role on App users. An app admin uses the Admin pages and cannot ask questions. See The app admin role.

Matching is by the email the front door asserts, case-insensitively. So for any easyauth/iap install, set at least one:

--set 'app.auth.superAdmins={[email protected]}'

Left empty, helm prints a warning. What adding or removing an address does is in What an upgrade does to the admin list. Under static mode the list is ignored: with no front door there is only the one operator identity, and it reaches everything.

One constraint worth knowing under Easy Auth: the asserted email is best-effort. An account whose sign-in carries no usable email claim cannot be matched to the list and stays a plain user, or, with viewer scoping on, is refused — the fix is an email claim at the IdP, not a Prism setting.

A row at first sign-in. Under easyauth and iap, Prism creates an App users row the first time someone signs in (app.auth.autoProvision, on by default): role user, restricted to their own reporting line, no organization email, linked to the sign-in id they arrived with. Addresses in app.auth.superAdmins are never created this way, and nor is anyone whose sign-in id another row already holds. With viewer scoping on, that row is what they see from their first question: their own reporting line, whatever viewerScoping.default says; widen it on App users. With viewer scoping off, everyone still sees everything, and the row is there for App users to list and for Deactivate to act on. Someone whose sign-in address is not the one the organizational directory holds cannot be placed in it, and their questions are refused with a sentence saying an administrator can correct the address: set their organization email on App users. A row made this way carries no organization email by design, so the self test's restricted-viewers count and the page's organization-email mark leave it out; set one if the person may later sign in under another address. Set app.auth.autoProvision: false to create no rows at sign-in; people without a row then get viewerScoping.default, as before.

Operators without a sign-in still have a diagnostic path: see the CLI in self-test.md.

When someone leaves. Prism's agent runner may hold an Agent Router key it minted for that person (unless your install uses one deployment key, secrets.inferenceKey). The key outlives their access to Prism unless it is revoked. Stop them signing in first:

  • Under email sign-in, remove or deactivate them on App users. Either ends their sessions, and Prism then asks the runner to revoke their keys and shows the result. For a super admin, also take them out of app.auth.superAdmins and helm upgrade: a removed address that is still listed is created again at the next boot, as a super admin (see What an upgrade does to the admin list). Remove also moves their conversations, answer history and saved prompts off the address without deleting them, as a reset does, so someone added under the same address later is not served them. Anything they began before the removal is filed with that history whenever it lands. Once their access is gone, Remove also asks the agent runner to delete its own copies of their conversations. A conversation whose question is still running is kept, and the page says so. Prism cannot delete it later: once an address has been removed, Delete runner conversations refuses it, as below. Remove does not ask, and says so, when Prism's records show the address may have passed from one person to another (it was reset or removed; its sign-in was unlinked, moved or replaced; it was given to another App users row, or a row under it was reactivated; it took a sign-in id another row had held, or another row used it as its sign-in id, which Prism sees only for changes made from this release on; or more than one sign-in id signed in under it): the runner can keep more than one holder of an address together and Prism cannot yet tell one holder's conversations from another's. What rests on the audit log alone is not seen once its retention (audit.retentionDays) prunes it. Deactivate and both Revoke Router keys actions delete nothing in the runner; a reset deletes its long-term memories of the person (below).
  • Under a sign-in proxy, disable them at your identity provider, then deactivate them on App users. Prism refuses them on every request from then on, whatever app.auth.superAdmins says, and asks the runner to revoke their keys. To delete the agent runner's copies of their conversations, use Delete runner conversations on App users with the sign-in id Prism knew them by and their address, once they are deactivated and before their row is reset for someone new. It shows when that id last asked a question, if Prism holds a record of it, asks you to type the id again, and what it deletes cannot be recovered. It is refused unless App users shows they have left (their row is deactivated, or a reset retired the id), and when the id or the address still belongs to an active row, and for an address Prism's records show may have passed from one person to another, as above. Those refusals include one person whose sign-in id was replaced, and an address removed and then added again; nothing lifts them. When that id is not linked to their row, it is also refused unless the audit log's session_started entries show that id signing in under their address and under no other, and when the id asked a question more than a few minutes after their row was deactivated. For someone with no row, add their address on App users and deactivate it first. Remove is not offered while rows are created at first sign-in, because the row would come back at their next sign-in. Where it is offered, Remove leaves their history where it is, since it does not stop them signing in. Deactivate is not enforced while Prism's database is unreachable or too slow to answer (with viewer scoping on, only an address in app.auth.superAdmins gets in then), which is why the identity provider comes first. To remove a super admin, take them out of app.auth.superAdmins and demote them on App users: removing an address from the list demotes nobody. Deactivate alone does not hold during a database outage. For someone with no row, use the Revoke Router keys box with the sign-in id Prism knew them by: the actor subject on their session_started entries in the audit log. A row with a sign-in id linked, and any deactivated row, also has a revoke Router keys button. A row no sign-in was ever linked to stops only its own address: the same person under another address is not recognised, and the page says so when you deactivate one. A deactivated row's linked sign-in cannot be unlinked or moved to another row: it is what keeps the person out under another address. Nor can a sign-in be linked to a deactivated row, since it could not be taken off again. To stop someone under another address, have their sign-in linked before you deactivate them: with viewer scoping on, link it on App users; with it off, a row is linked only by its person's sign-in, with app.auth.autoProvision on. When your identity provider gives a deactivated person's address to someone new, use reset for a new person on the row: the row starts again, for the new holder to link at theirs, and the page says whether it keeps the departed person's sign-in out. A reset moves the departed person's conversations, answer history and saved prompts off the address without deleting them, and anything the departed person began before the reset (a question still answering, a prompt being saved) is filed with that history whenever it lands, never under the address. It is available only some minutes after Deactivate, and the page says from when. A row whose reset kept a departed person's sign-in out cannot be removed, whatever app.auth.autoProvision says: removing it would let its departed person back in.

When they ask for their questions, answers, feedback and saved prompts to be deleted, see Erase a person's data.

A deactivated person's row cannot be removed either, under any sign-in mode: under a sign-in proxy it is what keeps them out. Reset for a new person is how its address is reused, whatever app.auth.autoProvision says.

Deactivate, and Remove under email sign-in, also stop the person in the agent runner before it revokes: from then on it hands them no Agent Router key, the install's deployment key included, until Reactivate lifts the stop. Reactivate asks for that first. If the runner did not answer, it reactivates nobody: the page says why, and Reactivate can be asked again. If the runner refused, or has no such call, asking again gets the same answer until the runner's setup changes, so the person is reactivated and the page says what the runner answered and what to fix: an agent runner older than this release, a client registration (agentRunner.clientsYaml) without the users:offboard scope, or what the refusal names. Once it is fixed, deactivate and reactivate them again to lift the stop. The same is the way out for anyone shown as active whose every question fails as stopped (a Reactivate whose save failed after the runner was asked can leave that): Reactivate on an active row asks the runner nothing. A question they started before they were stopped therefore cannot mint a key after the revoke, and one revoke is enough. If the page says the runner "did not record a stop" (an agent runner older than this release), one is not enough: revoke again after 10 minutes, and again a day later. The revoke Router keys button on a deactivated row records the stop again. On an active row, and in the Revoke Router keys box, a revoke stops nobody: it is what a key rotation needs (see Rotate credentials), and the person's next question mints a new key. So revoking someone who has not been deactivated does not hold. Nor does a revoke for someone Prism cannot stop: someone with no row, revoked from the box, or a row the page says the runner was not asked about. For them, revoke again once a question they started could have ended: after 10 minutes, and again a day later.

Under a sign-in proxy, a row with no sign-in id linked is still offboarded in the agent runner. That is a row never signed into, one whose sign-in was unlinked, or one no sign-in links, as a Helm super admin's is with viewer scoping off. Prism asks the runner by the sign-in id that last signed in under the row's address since the address was last reset, from the audit log's session_started entries. Deactivate keeps that id on the row, so Reactivate and Reset ask by it too. For a stop or a retire, the runner acts only on the runner user that holds the address, and only while its latest sign-in is that id. Prism does not stop or retire this way when another App users row holds the id, when the audit log shows it signing in under another address, when it is your own, or when the agent runner cannot be asked about one address alone; and a reset does not when the id has been signed in to Prism, or asked a question, since the deactivation. The page then says the runner was not asked, and why. Someone renamed at your identity provider is the exception to watch, where no sign-in links a row (auto-provision off, or a super admin with viewer scoping off): before you deactivate their old row, link their sign-in id to the row for their new address, or have them ask a question under it. With audit.retentionDays set, a sign-in older than that is not seen unless Deactivate already recorded it.

A reset, and Remove under email sign-in, also retire the person's agent-runner user: the runner deletes its long-term memories of them and the workspace memberships given to their address, and the next person to sign in under the address starts as a new runner user with none of it. A reset asks for the retire first. If the runner did not answer, the reset is not made: the page says why, nothing changes, and Reset can be asked again. If the runner refused, or has no such call, asking again gets the same answer until the runner's setup changes: the page says what to fix, as for Reactivate, and offers to reset without the runner only for when that cannot be done. Reset without it, whoever is given the address next is the departed person to the runner, with their long-term memories. Under a sign-in proxy a row with no sign-in id linked is asked about as above. With no sign-in under its address since its last reset, it is reset without a retire. When Prism cannot use the last one, the reset is refused, and offered without the runner as for a refusal. Remove asks for the retire last, once the person's access is gone. If the page says that retire did not complete, give the address to nobody else until it has: add the address on App users and deactivate it straight away, then reset it when the page allows. Between the add and the deactivate the address can sign in, so do both before you tell anyone the address is free. The runner keeps the departed person's conversations, where nobody can reach them, Prism's Delete runner conversations included; use it before the reset if they should go. Under email sign-in the box takes their email as the sign-in id. When app.projectId names a project other than default, the runner mints a different kind of key, and revoking that kind has not yet been verified. The page then says "revoke requested, not yet confirmed for this install's key type" instead of "revoked". The audit log records each revoke as router_key_revoke, each deletion of their conversations in the runner as runner_sessions_delete, each retire of their runner user as runner_user_retire and each lifted stop as runner_user_reinstate, with what the runner answered.

Local sign-in (mode: local)​

With no IdP to put in front of the app, Prism can be the front door itself: only emails on an in-app allowlist can sign in, each sign-in mails a link that works once and expires in minutes (app.auth.magicLinkMinutes), and the session lives in a cookie for app.auth.sessionDays days. There are no passwords anywhere in this: owning the mailbox is the credential.

Local mode requires three things, and the install refuses to proceed — helm fails at render and the app refuses to start — while any is missing:

ValueWhat it is
app.auth.superAdminsat least one email. These are the bootstrap administrators: the only logins that work until they sign in and add others on /admin → App users. Not special-cased — seeded as ordinary allowlist rows.
app.auth.baseUrlthe external URL your users browse to (the ingress/route hostname). The emailed link points at it; the pod cannot infer it.
smtp.host (+ smtp.fromAddress)your SMTP relay and the sender address it accepts. Port, TLS mode (smtp.tls: starttls/implicit/none — any other value fails at render) and optional AUTH username are beside it; an AUTH password goes into the Secret as smtp-password. TLS certificates are verified by default; smtp.tlsVerify: false exists only for a relay presenting a private-CA certificate the pod cannot verify (for a relay with no TLS at all, tls: none is the honest setting).

After the first install, run the self test: its smtp relay line asks the relay — without sending mail — whether it would deliver to each bootstrap address. Everything else can be green and the install is still dead on arrival if the first magic link cannot reach the one person who can let anyone else in.

What an upgrade does to the admin list. Seeding is additive, never reconciling: every boot creates a super-admin row for any listed email that lacks one, and promotes a listed email's active row that was made at its first sign-in and whose role no administrator has set or reset. It changes no other role. Admins appointed in-app survive every upgrade; an admin demoted in-app stays demoted even while still listed; shortening the list revokes nobody. The self test's chart super admins line, the boot log (chart_admins_no_longer_listed) and App users each name a super admin the list granted and no longer lists. Two consequences worth stating plainly:

  • revoking an administrator is done in-app: deactivate or demote them on /admin → App users. Remove works too, but a removed address that is still in app.auth.superAdmins is created again at the next restart, as a super admin, so take it out of the list as well;

  • locked out (the admins all left, nobody can sign in) is recovered by adding an email to app.auth.superAdmins and running helm upgrade — the break-glass path needs cluster access, not a Prism login. Because seeding never overrides a role an administrator set, the address must be one whose role no administrator has set (a new address, or an active one that has only ever signed in): a listed address whose role was set or reset on App users keeps it, so re-listing a demoted admin re-promotes nobody (the skipped seed is logged as seed_skipped_existing). With viewer scoping on behind easyauth or iap, a sign-in is linked to one row only, so the fresh address works only for a sign-in that no row holds yet: another account from your identity provider. A sign-in already linked to an old row is refused under the new address too. Then either another super admin uses move link on the old row on App users to move it to the new address's row, or, with no other super admin, clear the link in Prism's database and sign in again:

    kubectl exec -n <namespace> statefulset/<release>-postgres -- \
    psql -U postgres -d prism -c \
    "UPDATE auth_users SET sub = NULL WHERE email = lower('<the old address>')"

    With an external datapond, run the same UPDATE with psql "<your datapond URL>". The next sign-in links the row of the address it arrives with.

One rule is enforced on top: the last super admin can never be removed or demoted — the API refuses with "cannot remove the last super admin". Hand an install over by promoting the new owner first, then demoting yourself.

Removing a user ends their sessions immediately, and any sign-in link already in their inbox dies with them. Deactivating someone, or resetting their row for a new person, does the same, and Reactivate does not bring a link back: they ask for a new one. A link signs in only the person it was sent to, so one sent before an address was removed and added again, or reset for someone new, signs in nobody. Sign-out is the header's "sign out" button.

9. Upgrading to a new release​

Upgrading is the install command again with a new version. There is no separate upgrade path. On a helm upgrade the chart runs one migrate Job before any pod changes. The Job brings Prism's memory up to the new release. The migrate Job says how it works.

Read the release notes first. That is where a new required value, a changed default or a new secret key is called out. A release that needs something you have not set refuses to render rather than installing half of itself, and the error names the value it wants.

Mirror the new images and push the new chart, the same loop as step 2 with the new VERSION — including the --untardir "prism-$VERSION", which is what stops the pull landing on the previous release's directory and the loop mirroring the previous release's digests under this release's tag. All nine images ship under one immutable tag, so one version number moves the whole set. The chart is under that tag too on a standard release; if we hand you a build cut for your environment specifically, its chart comes to you as a tarball instead and is not in the registry — install from the file we send, and mirror the images exactly as above.

Then run the command you already ran:

helm upgrade --install prism \
"oci://$DEST/prism" --version "$VERSION" \
-n <namespace> \
-f <your values file> \
--set existingSecret=prism-secrets

Same chart reference as the install: your registry if you pushed the chart there, ours if you did not.

Your values file and your Secret carry over untouched. Keep passing both every time: Helm replaces the release's configuration with what you give it, so a flag you drop is a flag you have unset.

The image tags move with --version and nothing else. All nine default to the chart's own version, so the command above is the whole upgrade — there is no tag to bump in your values file and no --set to add. If you are carrying image tags in your values file today, delete them: a pinned tag still wins, which means a values file left over from an older release pins that release's images and the upgrade quietly leaves those components behind. Prism versions are visible on the admin pages; the self test is the check.

While an upgrade rolls out, components can be one release apart. The app, the ingest and the query server each read the context streams that ship in their own image. Until every pod is on the new release, a shipped stream whose manifest changed between the two releases can be walked by one release and answered by the other. That settles by itself when the rollout finishes. A pinned image tag keeps it from settling, which is one more reason to delete pinned tags.

Pages opened before the upgrade say so. A browser tab keeps running the page it loaded. Once the new release is serving, a page left open from before it shows a banner saying Prism was updated, with a Reload button. Nothing reloads by itself, so an answer still arriving is not interrupted. Reload before going on: an out-of-date page can send requests the new release turns down.

Untouched only if the file is yours. This is the upgrade where editing the chart's own values.yaml catches up with you: the new tarball brings a new copy, your edits are not in it, and the release comes back up on our defaults with nothing reported. A values file kept outside the chart (step 4) is the thing that makes this step as safe as it reads. Since 0.8.0 the three Router URLs ship empty and refuse to render, so the most damaging half of that failure now stops the upgrade instead of completing it.

Finish with the self test, and compare it against the run you did on a healthy install.

The migrate Job​

The chart runs prism-ingest migrate as a Kubernetes Job named <release>-migrate. The Job applies the steps that bring Prism's memory up to the release you are installing. Then it checks the result.

  1. On an upgrade the Job is a Helm hook. Helm runs it before any pod changes, and waits for it. If the Job fails, Helm stops the upgrade. The old release keeps serving. The next section says what to do.
  2. On a rollback Helm runs the migrate Job of the release you roll back to, if that release has one. Rolling back says more.
  3. On a first install the Job is a plain Job named <release>-migrate-<hash>. It starts beside the other pods. The install also stores a rollback hook, <release>-migrate-rollback-<hash>. Helm runs it only when you roll back to this first revision.

Give helm upgrade a --timeout longer than the Job can take. Helm's default is 5 minutes. Most migrate runs take seconds. A release whose notes name a long step needs more. The Job stops itself after migrate.deadlineSeconds (default 1800). So --timeout 35m covers the longest run the default allows.

Do not use --atomic with this chart's upgrade. Its automatic rollback can start a migrate Job with the same name, and Helm then deletes the failed Job and its log before you can read them.

GitOps tools. Argo CD and helm template | kubectl apply get the plain Job on every release, and its name changes when the release changes. Argo CD skips the rollback hook. kubectl apply creates it as a second Job that runs the same command, which does no harm. Set migrate.hooks=false to leave it out. Flux runs Helm itself, so it runs the hooks. If you run helm upgrade --no-hooks, set migrate.hooks=false too. Otherwise no migrate Job runs at all.

Pods wait for the migrate Job​

Every pod that reads Prism's memory waits until the migrate Job has brought the memory up to the pod's own release. There are three ways to wait.

  1. The App, the semantic, discovery and management MCPs, and synth-seed each have an init container named datapond-gate. It runs prism-ingest gate from the ingest image. While it waits, kubectl get pods shows the pod as Init:0/1. synth-seed's Job first waits for the bundled Postgres, so it shows Init:1/2.
  2. The ingest tick, Copy now, and each scheduled check and ingest check for themselves when they start. While Prism's memory is not ready, each one logs one line that starts prism-ingest <verb>: skipped. and exits 0. The next run tries again. If it cannot reach Postgres at all, it fails, as before.
  3. The Jobs that run once wait instead, as the init container does. They are <release>-<source>-check-now and <release>-spend-ingest-now-<hash>. While one waits, its log says prism-ingest <verb>: waiting for the migrate Job. Past migrate.gateWaitSeconds its pod fails with the reason in one line, and Kubernetes runs it again, up to the Job's retry limit.

The agent runner and the github-live MCP do not wait. They do not read Prism's memory.

How long a pod waits. migrate.gateWaitSeconds (default 300). Past it the init container stops with an error. The pod shows Init:Error, then Init:CrashLoopBackOff, and Kubernetes starts the wait again after its usual back-off. So a pod whose migrate Job is still running starts soon after the Job ends, with nothing done by hand. To read why a pod waits:

kubectl -n <namespace> logs <pod> -c datapond-gate

The last line gives the reason in one sentence. When it says Prism's memory is not ready, read the migrate Job's log next (below). The self test's memory migrations line shows the same verdict once the App is up.

On a first install Postgres, the migrate Job and the gated pods start together. The Job waits for Postgres, and the pods wait for the Job. On a test cluster the whole install took 37 seconds. On a slow first start the Job alone can take about 10 minutes: it waits up to postgres.startupWaitSeconds for Postgres, then up to 2 more minutes to connect, and it tries twice. A gated pod then shows Init:Error once or twice before it starts. Helm waits for synth-seed's hook and each check-now hook, and they wait for the Job, so give helm install a --timeout to match.

On an upgrade the migrate Job runs first, so the new pods find Prism's memory ready and start at once.

After the migrate Job fails the running release keeps serving. What happens next depends on the line above the last line of the Job's log (below).

  1. A step failed (exit 3), the Job could not run (exit 1, 4 or 5), or the run refused for any other reason than the check below. The step that failed changed nothing. The steps before it stay applied, and the running release can read what they added. So the running release keeps working: a pod of it that restarts starts at once, and its ingest keeps running. Fix the cause and run the upgrade again. A rollback to the revision that is serving (Rolling back) also works: its migrate Job passes. The exception is a step that removes something. The Job's log shows it as Applying step <name> (contract). After such a step, the running release's pods wait if they restart, and a rollback refuses.
  2. The check after the steps refused (exit 2). The line above says Prism's memory does not hold what a head needs, or that this check refused an earlier run. Prism then trusts its memory for no release until the check passes. That includes the running release. Its pods that are up keep serving. But a pod of it that restarts waits at its gate, and the ingest tick and each scheduled check and ingest skip, so the data stops updating. A rollback does not open the gates: the migrate Job of the revision that is serving makes the same check, and exits 2 too. Fix what the line names. Then run the upgrade again, or roll back to the revision that is serving. Either migrate run makes the check again. When it passes, the gates open. If the cause cannot be fixed, restore a backup taken before the upgrade, if one exists.

With migrate.enabled=false the chart runs no migrate Job, and the gates stay on. Run the migrate command yourself, once on the first install and once before each upgrade. This command renders the Job and starts it:

helm template prism "oci://$DEST/prism" --version "$VERSION" \
-n <namespace> -f <your values file> --set existingSecret=prism-secrets \
--set migrate.enabled=true --set migrate.hooks=false \
--show-only templates/datapond-migrate.yaml \
| kubectl -n <namespace> apply -f -

On a first install, run it while helm install waits. The pods start when the Job passes. If a Job of the same name failed, delete it first.

Argo CD and helm template | kubectl apply apply the plain Job and the gated pods together, as on a first install. The pods wait for the Job.

The image pull. The init container runs the ingest image. So a node that runs the App, an MCP or synth-seed also pulls the ingest image once. On an air-gapped install that image is already in your registry, because the ingest Jobs use it.

The upgrade stopped at the migrate Job​

helm upgrade ends with an error like this one:

Error: UPGRADE FAILED: pre-upgrade hooks failed: ... job prism-migrate failed: BackoffLimitExceeded

The running release keeps serving. Read the end of the Job's log:

kubectl -n <namespace> get jobs -l app.kubernetes.io/component=datapond-migrate
kubectl -n <namespace> logs -l app.kubernetes.io/component=datapond-migrate --prefix --tail=5

The last line says what to do next. The line above it gives the reason.

Last line starts withWhat to do
prism-ingest migrate exit 2The release refused. Do what the line above says. A refusal for a skipped release names the release to install first. When the line says Prism's memory does not hold what a head needs, the running release's pods wait too if they restart (Pods wait for the migrate Job).
prism-ingest migrate exit 3A step failed. Fix the cause the line above names. A step that waited for a lock names the query that finds the session holding it.
prism-ingest migrate exit 4Another migrate run is still working. Wait for it to finish.
prism-ingest migrate exit 5The Job could not reach Postgres, or Postgres refused the login or the PGDATABASE. The line above says which. Check that Postgres is running. Check the password you gave this release: secrets.postgresPassword, or the postgres-password key of your existingSecret.
prism-ingest migrate exit 1An unexpected error. Run the Job again. If the same error comes back, send the log to Tetrate support.
No log. kubectl logs says the container is waiting to start, and helm upgrade waited its whole --timeoutThe Job's pod never started, for example because its image cannot be pulled. kubectl -n <namespace> describe pod -l app.kubernetes.io/component=datapond-migrate shows why, under Events. Fix that, then run the Job again.

Then run the migrate Job again:

  1. After an upgrade run the same helm upgrade command again. Helm deletes the failed Job and starts a new one.
  2. After a first install, or with migrate.hooks=false, delete the Job and apply the release again. With Helm that is kubectl -n <namespace> delete job -l app.kubernetes.io/component=datapond-migrate, then the same helm upgrade command. With Argo CD, delete the Job and sync.
  3. After a refused rollback follow Rolling back first.

What the upgrade does on its own​

  • Prism's memory is migrated first. On a helm upgrade the migrate Job runs before any pod changes (above). Each pod that reads Prism's memory then checks that it is ready (above). Each component still creates and alters its own tables idempotently when it connects, and the agent runner runs its migration at boot.
  • Synthetic sources are regenerated. The synth-seed Job re-runs on every upgrade and rebuilds every source still set to synthetic. Sources set to live are left alone, and so is a source set to synthetic that a live ingest has written to: see Troubleshooting for that case and for synthSeed.replaceLive, the way to return a live source to sample data.
  • Live data is not re-ingested. Watermarks survive the upgrade, so each source resumes where it left off. Adding an org or changing ingest.backfillDays starts a fresh backfill instead, which runs for tens of minutes and does not hold up the command.
  • The upstream check re-runs, so the self test's verdict on each live source is current as soon as the upgrade lands.
  • A query server is not caught mid-start. Each internal query server's old pod keeps serving until its replacement accepts connections, so a self test run as soon as the upgrade returns does not find one still starting. A query server behaves the same way under kubectl rollout restart. The app and the agent runner are replaced rather than rolled, so wait for their kubectl rollout status before you run the self test.
  • Super admins are seeded, never reconciled. Any email in app.auth.superAdmins with no row gets one, and a listed email's active row that was made at its first sign-in and never had its role set or reset by an administrator is promoted. No other role is changed. An admin demoted in-app stays demoted, and shortening the list revokes nobody who has a row. Under a sign-in proxy, a listed address with no row is a super admin only through the list, and shortening the list revokes it.

Rolling back​

helm rollback prism restores the previous release's images and configuration. First Helm runs that release's migrate Job, if it has one. The Job refuses when Prism's memory holds a change that release cannot read. Then the running release keeps serving, and Helm leaves the release in pending-rollback. The next helm upgrade is refused with "another operation (install/upgrade/rollback) is in progress" until you clear it:

  1. Read the failed Job's log, as The upgrade stopped at the migrate Job says. Step 3 can delete it.

  2. Find the revision that is still serving. It is the last one marked deployed:

    helm history <release> -n <namespace>
  3. Roll back to that revision. Its migrate Job passes, and Helm records the release as deployed again:

    helm rollback <release> <revision> -n <namespace>

Back up and restore says what to check after a rollback to a release with no migrate Job. Data written since the upgrade stays where it is. Schema changes so far have been additive, so an older image ignores columns it does not recognise rather than failing on them. Read the release notes for the version you are leaving before you rely on that: a release that drops or renames something is the case where it stops being true.

Rolling back to the immediately previous release is supported and stays clean; rolling back further may show a shipped source as "manifest invalid" until the next upgrade. This covers the sources under the shipped names github, jira and gitlab. An instance you register from one of their recipes under a name of its own saves the running version's definition, because its own definition is what Prism reads for it, so a rollback can show that instance as "manifest invalid".

That covers the saved copy of a GitHub, Jira or GitLab source. Prism saves the running version's definition only when the previous release's manifest schema accepts it, and otherwise the previous release's own definition, so the copy a rollback finds is always one that release can read. Turning the source on or off keeps that copy. When a refresh is held back, Admin → Context streams says so on that source. The saved copy can therefore lag a release behind on purpose. Reading, answering, the list of streams, the verification questions and the context-stream count use the running version's definition either way. The check is the manifest schema only, which is what refuses an unknown key: a stricter check a later release adds in code is not covered.

If you have turned on audit-log retention (audit.retentionDays), the oldest row left after a prune points at a row that was deleted. A release older than the one that introduced retention doesn't know about the audit_pruned row that explains this, so a chain check run by that release, or by a script written for it, reports the oldest surviving row as broken. That is the prune, not tampering. The audit log says how to tell.