Connect a source in the admin surface
A source Prism queries in place, rather than ingests
Everything in Take a source live copies a source's data into Prism's own database and answers out of that. A query-through source does not: nothing is copied, and every question about it becomes one statement against your warehouse, run as a login you control. Today that means Snowflake, and it is run by the semantic query MCP, which every install has.
Most installs set none of this and that is the normal case, not a gap. Skip this section unless you have been asked to connect a warehouse.
What the chart needs for a source you connect in the admin surface
No switches and no credentials. The source registry, where a query-through source is a row, is always on, and the semantic query MCP, the only component that executes a query-through statement, is always installed.
The chart renders ENCRYPTION_KEY into both the app and the semantic MCP, from
the Secret entry your install already has. The app encrypts a source's
credential with it; the semantic MCP opens it to run that source's statements.
The semantic query MCP is not only for Snowflake. Its tools are the only ones on the agent that reach a registry source's statement, so they read the source you designate as your organizational directory, whatever kind it is. This section is a prerequisite for Connect your Snowflake directory and Upload a staff list, not an upgrade note — the subsection below is the upgrade note.
None of it is a chart value. Earlier releases put the account, the login and
the private key in values.yaml and in a Secret, and that was wrong in a way
worth stating, because you may have read the older page: it made two
connections for one warehouse. The admin page's probe authenticated with the
credential stored on the source, the semantic MCP executed with the values in
the chart, and nothing compared them. A source could show as connected and
answer nothing.
There is one connection now and it belongs to the source. You enter it once, in the admin surface, and the probe that switches the source on is a probe of the connection that will answer.
Upgrading from a release that put this in values.yaml
If your values file still carries mcps.semanticMcp.snowflake.* or
secrets.snowflakePrivateKey, the upgrade will refuse to render and name
this page. That is deliberate: the chart no longer reads those keys, so
rendering on would drop the warehouse credential you supplied without a word and
leave a source that shows as connected and answers nothing.
The migration:
- Delete the
mcps.semanticMcp.snowflakeblock and bothsecrets.snowflakePrivateKey*keys. - Upgrade.
- Enter the connection and the private key on the source (below), and probe it.
Your Snowflake key pair does not change and neither does the grant. What changes is where the appliance reads them from — which is what stops a source probing against one warehouse and answering from another.
What to enter, on the source
Sign in as a super admin, open Admin → Context streams, and give the source its connection parameters and its credential on the form you register it with. The form shows one field for each parameter the manifest declares. None of them can be changed once the source is registered: changing one is deleting the source and registering it again, which also means entering the key again.
| Parameter | What it is |
|---|---|
account | your account identifier — myorg-myaccount, or a legacy locator. The host Prism posts to is <account>.snowflakecomputing.com |
user | the service login Prism signs in as: a TYPE = SERVICE user with your read-only role granted. It is configuration, not a secret — it appears in QUERY_HISTORY and in every authentication failure, and somebody has to be able to read it to fix one |
warehouse | the virtual warehouse the statements run on. This is what your spend lands on, so give a query-through source its own if you want its cost separated |
database | the database holding the view |
schema | the schema holding the view. Optional: leave it empty if the login's default schema is the right one |
The credential is the private key of the pair whose public half is registered
against that login — a PKCS#8 PEM, the -----BEGIN PRIVATE KEY----- form.
Paste it into the credential field on the source, with its passphrase if it has
one. Snowflake is retiring password sign-in for TYPE = SERVICE users through
the August–October 2026 window, so a key pair is the credential that will still
work.
PEM, and nothing else. A .p8 extension says nothing about the encoding:
openssl pkcs8 -topk8 -nocrypt writes PEM, and -outform DER writes binary
under the same name. Check before you paste — a PEM file's first line is
-----BEGIN PRIVATE KEY-----:
head -1 rsa_key.p8
If that shows binary rather than a BEGIN line, convert it:
openssl pkcs8 -topk8 -nocrypt -inform DER -in rsa_key.p8 -out rsa_key.pem
Prism checks the key when you enter it rather than at the first question, so a key it cannot read is a refusal on the credential form and not a source that looks connected and answers nothing.
The role is not a parameter, and that is deliberate. PRISM_READER — the
read-only role our recipe tells you to grant — is written into the source's
manifest as a literal, and every session activates it. So the ceiling on what a
question can read is the grant you made, not a value somebody could forget to
set. Grant it USAGE on the warehouse, the database and the schema, and
SELECT on the one view; nothing else. The schema grant is the one most often
left out — it is the only one that is not about an object you named — and
without it the view is invisible to the role however correct everything else is.
Proving it, which is not the same as entering it
- Probe the source from the admin page and read the verdict. It reports the session's user, role, warehouse, database and schema as Snowflake established them — and it compares every one of them with what it asked for. This is the case worth knowing about: Snowflake does not refuse a warehouse or a schema that does not exist. It accepts the request and quietly gives you a session without one, and every real question then fails. So the probe reads the session back and refuses on your behalf, rather than passing and leaving the failure for the first person to ask a question.
- Approve the source, then enable it.
enableis refused until you have approved it, and only a probe that returned and passed will let you, and the semantic MCP will not query a source that is not enabled — so a source that says connected is one that answered, from this installation, with the credential the row holds now. - Ask a question the source answers, and check that the answer names it.
If questions still fail, the semantic MCP's log names which state it is in: no row, a row that is not enabled, a stored connection it cannot use (and why), or a statement the warehouse refused.
Rotating the key
Replace the credential on the source in the admin page, and probe again. That is the whole procedure: the connection is read per question, so the next question uses the new key with no restart and no redeploy. There is no Secret to patch and no pod to roll.
Test a manifest before you register it
The Test button on a source's Manifest tab tests a source that is already registered. To test a document before registering anything, call the API directly, as a super admin:
POST /api/admin/manifest/test
{"manifest": { … }, "credential": { … }, "parameters": { … }}
manifestis the document (or sendmanifest_yamlwith its text).credentialcarries the same fieldsPOST /api/admin/sources/<id>/credentialtakes (secret, orusernameandsecret, orprivate_key_pem). Leave it out entirely when the document'sconnection.auth.typeisnone; sending one with such a document is refused.parametersare the values the document'sconnection.parametersdeclare.
Nothing is stored: no source is created and no credential is written. The
request is tested against the document's own connection, and the credential is
sealed with this installation's ENCRYPTION_KEY before it leaves the app, so
the route answers 503 on an install without one. The response carries the
verdict under result — whether the document validates, and
whether each stream or column it declares resolved.
For a document that copies from a Postgres, Oracle or Snowflake source, the
result also carries a select tier: each query stream's SELECT, run
against the document's connection at WHERE 1=0 (read-only on Postgres and Oracle), with
a verdict per stream (ran, failed or unavailable) and a reason. Each placeholder is sent as a value.
After a stream that pages on a key, the tier also runs the first copy's checks
of that key. For a stream with mode: keyset, the tier also sends the first
copy's read of the largest cursor value, at WHERE 1=0. A collation check
can read one row of the SELECT. The
Test button on a source's Manifest tab runs the same tier against the
source's saved connection and credential.