Skip to main content

Security

Your website​

  • Allowed websites. The widget only starts from the addresses you listed. Your site key is public, and useless anywhere else.
  • No access to your page. The widget runs in its own Shadow DOM, exposes nothing but window.Sarthi, and can't be read by other scripts on the page.
  • Kill switch. The Web chat switch in Configuration turns the chat off everywhere in seconds; Sarthi's own operations team can do the same for a workspace in an incident.

Signed-in visitors​

  • Tokens are signed by your server with a secret only it holds, expire within 15 minutes, and work once. The widget never sees the secret.
  • Rotating the secret keeps the old one valid for 24 hours, or revokes it at once if it leaked.
  • The assistant acts on a customer's account only with a token, and only with values from the token, never from what was typed.

Secrets​

API keys, database passwords, login details for protected pages and your SDK secret live in the workspace vault, encrypted at rest with a key that is not stored with the data. Your staff secret for the Staff assistant is encrypted the same way, and kept apart from the SDK secret. A secret is shown once when created; afterwards only its last characters are visible. Actions and crawls reference secrets by name (vault:acme-helpdesk-key); the value is put into the request only at the moment of use, on Sarthi's servers.

Your database​

  • Read-only, proven before connecting and again every night; a user that gains a write permission suspends the connection and emails the owners.
  • Every query is parsed and checked against an allow-list; writes, file access and unknown functions are refused before anything reaches your server. So is anything your database could read differently from the check (comments, backslashes, unusual quotes), and any part of a query the check doesn't know. SQL runs as one statement inside a read-only transaction with a time limit; MongoDB runs one checked aggregate with a time limit.
  • The customer filter is Sarthi's, added to every query on every per-customer table, including joined ones. The AI can't write it and can't remove it.
  • Masks apply before the AI, the log or the cache sees a value. Rows are never stored, with one exception: a team routine keeps the first 200 rows of its newest answers so your owners and admins can read them later, masked, encrypted (AES-256-GCM), and wiped within 14 days. A routine emails its answers only to the owners and admins on its email list, checked at every send.
  • Connections use TLS; "encryption off" is refused in production. Sarthi connects from fixed addresses you can allow in your firewall, and refuses to connect to private or internal network addresses.

The Staff assistant​

The Staff assistant lets your employees ask your databases from inside your CRM. It is built apart from your website's chat, so neither can be used to get into the other.

  • A separate key and secret. The CRM's pages use a staff key (wst_…) and its server a staff secret (sk_live_staff_…), never your website's site key or SDK secret. Staff tokens must also carry aud: "saarthi-staff", and your website's chat refuses any token that does. A secret pasted into the wrong server still can't turn a customer into an employee, or an employee into a customer.
  • Your staff list decides. Your CRM's token only says who is at the keyboard; what they may read always comes from their access group in Sarthi. Anyone not on the list gets nothing. Tokens expire within 15 minutes and work once.
  • Checked before anything runs. Sarthi's query checker allows only the tables and columns of the person's group, within your data map, and refuses everything else before your database is asked. The AI can't widen it. An own-rows rule adds its condition to every query itself, with the value from your staff list, never from the token, the AI or what was typed.
  • Checked again and again. Every request reads the person, their group, the switch and your plan afresh, and Sarthi checks the access once more just before a query runs. Disabling someone or changing their group ends their sign-ins at once. So does stopping the old staff secret (for everyone) or removing a CRM website (for those signed in there).
  • Read-only. One checked read in a read-only transaction, with the database's time limit, on connections of its own, so it never slows or blocks your website's chats.
  • No record goes to the AI, and rows are never stored: not by Sarthi, and not in the employee's browser.
  • Inside your CRM page. The panel draws in a closed Shadow DOM that the page's other scripts can't read. Its sign-in lives only in the browser tab, lasts 30 minutes, and every request is checked against your listed CRM addresses. No cookies. Keep it out of session recordings (how).
  • Watched in the open. Employees are told their questions are visible to your admins, and owners and admins see every question, refusal and download on Activity. Daily credit and CSV limits cap what one person, or everyone, can use, even with many questions or downloads at once.
  • Signing out reaches every tab. When your CRM's log-out calls logout(), the person is signed out of the assistant in every tab of that browser at once (how).

Two limits are worth knowing: whoever controls your CRM's server, or holds the staff secret, decides who is signed in; and whatever is on an employee's screen can be copied by hand, CSV or not. See Good to know.

The assistant's behaviour​

  • Guardrails check every sentence before it is sent: banned topics, promises it must not make, prompt-injection attempts in what visitors type or in web pages it reads.
  • Spend caps per chat and per day; a chat can't run up a bill.
  • Evals replay a set of test conversations against your configuration, so a change that makes the assistant worse is caught before customers see it.
  • Every turn's reasons are logged: what it searched, why it answered, which guardrail fired.

Sarthi's side​

  • Each workspace is isolated at the database level (row-level security), not only in application code.
  • Sarthi staff can only look into a workspace with a support pass you grant; it is time-limited, logged (support_access.started), and never lets staff listen to voice recordings, open Ask your data and its routines, open the Staff assistant, or see guides marked Staff assistant only (not in the audit log or events either). These rules hold however a request writes the address.
  • Staff accounts use two-factor authentication.
  • Passwords are reset only by an emailed, single-use link; a support pass can never change your password; changing a password signs out every other session and emails you. See Your account.
  • Webhook deliveries are signed (HMAC-SHA256 with a per-destination secret) and timestamped; see Webhooks.
  • An audit log records every change to your configuration, by whom and when.

Reporting a vulnerability​

Email the Sarthi team with the details. We acknowledge reports promptly and don't take action against good-faith research.