Skip to content
Docs

Security & Compliance

AgentWatch’s purpose is compliance for the customer’s AI usage — not merely the vendor’s own certification. The distinction is deliberate: a platform can hold a SOC 2 report and still give an organization no compliance posture for the AI applications running on it.

Which compliance frameworks are supported?

Section titled “Which compliance frameworks are supported?”

AgentWatch does not make an organization compliant with a framework by switching it on, and no product can. It provides the technical controls and the evidence that a framework asks for where AI usage is concerned. You turn on the controls your framework requires; your auditor assesses them together with the rest of your environment.

There is no one-click framework bundle. Ticking a framework does not configure DLP, retention or reporting for you. Each control below is set individually, and the table shows which ones matter for which framework.

Framework What it asks of AI usage AgentWatch controls to turn on
HIPAA Safeguard PHI, keep audit controls, limit access DLP Health / PHI category in block or redact mode; audit log and export; SSO with SCIM de-provisioning; role-based access. Run on self-hosted inference such as Lifeboat if PHI must never reach a third-party model
HITRUST A certifiable control set mapped from HIPAA, NIST and ISO 27001 The same controls as HIPAA, plus retention with the deletion sweep, encryption at rest (ENCRYPTION_KEY), and the per-field settings audit as change-control evidence. HITRUST certifies your deployment and your organization; AgentWatch supplies evidence for the AI-traffic controls in scope
GDPR Data minimization, storage limits, erasure DLP PII category; retention limits with Actually delete data older than these limits switched on; workspace Permanently delete for erasure requests; region-local deployment
PCI-DSS Keep cardholder data out of systems that don’t need it DLP Financial category in block mode. Card numbers are Luhn-validated, so ordinary reference numbers are not refused
SOX Change control and access evidence over financial systems settings.updated audit entries with a per-field before/after diff; the hash-chained audit log with a verify endpoint; role-based access to the audit log; audit export
SOC 2, ISO 27001, NIST (incl. AI RMF) Documented, operating controls Audit trail and export, RBAC, SSO/SCIM, encryption at rest, retention. These are attestations of your deployment plus your organization’s controls (see Is AgentWatch itself certified?)

DLP categories are under Settings → Company Policy → Data Protection. Retention is under Settings → Company Settings → Compliance & Data Governance.

What the Compliance Frameworks checkboxes do. The same panel has GDPR, SOX and PCI-DSS checkboxes. Today they do one thing: they tell Data Compliance Analysis (the System-LLM review in a conversation’s drill-down in Usage Insights) which frameworks to check that conversation against. They do not enable detection, change retention or block anything. To enforce a framework’s data rules, turn on the matching DLP categories.

Retention is configurable per data type under Settings → Compliance → Data Retention Policies: audit records (default 365 days), conversations (90), and metrics (180). Longer retention is configurable where a regulator requires it.

Deletion is opt-in, and off until you switch it on. Setting a number records the policy; it does not by itself remove anything. Tick “Actually delete data older than these limits” in the same panel to schedule a daily sweep that permanently deletes data past those limits, for that organization only: audit entries past the audit limit, usage records and their DLP events past the metrics limit, and stored conversation history (the encrypted chat transcripts) past the conversation limit. Conversation history was added to the sweep in 2.0.411; before that its limit was recorded but not applied.

The switch is off on every deployment, including upgrades, and that is deliberate: before 2.0.298 the day counts were recorded but never acted on, so the values already stored were chosen when nothing enforced them. Enforcing them automatically at upgrade would delete history against numbers nobody had reviewed, and deletion cannot be undone. Check the three numbers before enabling.

Behaviour Rule
A limit of 0 Means do not delete. It is never read as “delete everything”
A limit under 7 days Refused — 7 days is the floor
Scope Only the organization that enabled it; one tenant’s sweep can never touch another’s data
Accounting Each sweep writes one retention.swept audit entry per organization recording exactly what was removed, and, for the audit log, the hash of the newest removed entry so the audit hash chain still verifies
Volume Deletions are batched and capped per run, so a first sweep over a long history runs as a background chore rather than one enormous transaction

To see the blast radius before committing, an operator can run the deployment with AW_RETENTION_DRY_RUN=1, which reports what would be removed and deletes nothing. AW_RETENTION_SWEEP=0 disables the sweep entirely.

Audit reports export as JSON or CSV data or as a PDF report for auditors (cover, summary by status / DLP category / user / model, then the record tables) from the console, or programmatically for SIEM ingestion and long-term archival. An export larger than 100,000 rows is truncated, and says so — the JSON carries complete: false with truncated, rowCap and truncatedSections, the CSV carries a banner at the top and again at the end of each truncated section, and the PDF carries an INCOMPLETE notice on its cover and on every page. The PDF also lists at most 10,000 record rows per section while its summary counts every exported row, and says so on the cover. If you see it, narrow the range with ?days= (or filter by provider, source or tag) and export again to collect the remainder; the file you are holding is a page of the record, not the record.

What authentication and identity controls are available?

Section titled “What authentication and identity controls are available?”
  • Native SAML 2.0 as a service provider, with signed assertions and metadata exchange — no external IdP gateway required. SAML Single Logout (2.0.412+) works in both directions: signing out of AgentWatch also ends the IdP session, and a signed IdP logout revokes every AgentWatch session it created; unsigned logout requests are refused — see single logout.
  • OAuth2 / OIDC with discovery, multiple providers per organization, domain restriction, and configurable group claims, using the Authorization Code flow with PKCE (RFC 7636, S256) on every sign-in. The code_verifier stays on the server, bound to the sign-in’s state, single-use and expiring with it.
  • LDAP / Active Directory over LDAP and LDAPS, with CA certificate upload and configurable attribute mapping — including routing users from one directory into different organizations by email domain.
  • SCIM v2 provisioning per organization, with named tokens shown once, usage telemetry, expiry, and revocation.
  • Group-to-team mapping unified across all three protocols, applied at first login and refreshed on subsequent logins.
  • Account security — failed-login lockout, forced password change, administrator-transfer tracking, on-demand key rotation (the old key stops working immediately), expiry dates on personal API keys (an expired key is refused with 401 API_KEY_EXPIRED), and provider-key rotation alerts: with API Key Management → Enable Key Rotation Alerts on, a daily check emails the alarm address and writes a security.key_rotation_due audit entry for any provider key older than the rotation interval.

A local super-administrator fallback keeps the platform recoverable if directory binding fails.

There are three built-in roles — super admin (platform-wide), company admin (one workspace, and for a parent workspace its sub-tenants) and user (own data and the gateway). A workspace can add custom roles between Employee and Company admin, each with view-only features, up to four actions and a data scope (see Custom Roles). On top of the roles, Settings → Roles & features switches individual features on or off per role at platform, parent-workspace and workspace level, and the server enforces it with 403 ACCESS_NOT_GRANTED; its Check access view shows, for one person, which layer says no. Model access, budgets and MCP server access lists are scoped separately, by organization, team and employee. See Configuration & admin.

How is data protected in transit and at rest?

Section titled “How is data protected in transit and at rest?”

Prompts and responses are scanned inline before leaving the organization for PII, PHI, financial data, and secrets, with block, redact, or log-only actions per policy — see Data protection and guardrails. Credentials and sensitive fields are encrypted in the database, and stored conversation history and archived request bodies are encrypted on disk (see Which keys encrypt data at rest?). Transport uses TLS 1.2/1.3 across HTTP/1.1, HTTP/2, and HTTP/3. Containers run as a non-root user from a multi-stage build, and the Helm chart ships with a pre-hardened security context.

Two environment variables set the keys. Both are read at startup; there is no console setting for either, by design — a key that can be changed from a web page can be changed by anyone who takes over an admin session.

Variable Encrypts If it is not set
ENCRYPTION_KEY Provider API keys, LDAP bind passwords, the Connect and A2A CA private keys, the system LLM key and other secrets in the database (AES-256-GCM) A key is generated once and stored in the database (system_settings, key encryption_key), and every start logs a warning saying so
CHAT_ENCRYPTION_KEY Stored conversation history (<data>/<org>/chats/…/*.enc, AES-256-GCM) Derived from ENCRYPTION_KEY (a separate, domain-separated key — never the same bytes), or from the database key when that is unset too
BODY_ARCHIVE_KEY_HEX Archived full request/response bodies CHAT_ENCRYPTION_KEY, then the same derived key as conversation history

Since 2.0.412 there is no built-in key. Earlier versions encrypted secrets with a fixed public fallback whenever ENCRYPTION_KEY was unset (the container start script even exported it), and encrypted conversation history with a key compiled into the product regardless of CHAT_ENCRYPTION_KEY. Anyone with the product source could decrypt those. Both old keys are now read-only: data written by older versions still decrypts, and nothing is ever written with them again. Each new conversation line carries a version marker and a short key id (v2:<kid>:…), so a line written under one key is still readable after you add another.

Which is safer, ENCRYPTION_KEY or the database key?

Section titled “Which is safer, ENCRYPTION_KEY or the database key?”

ENCRYPTION_KEY from a secret manager is the recommended setup. The database key exists so that a deployment without one still has a key that is unique to it and always survives: it lives in the same database as the rows it protects, so it persists wherever they persist, across container recreates, replicas and PostgreSQL or SQLite alike. The trade-off is that it travels with every database backup and dump — someone who obtains a database backup also obtains its key. A key held in a secret manager does not, so a stolen backup is unreadable on its own. Either way, keep your database backups: with the database key they are the only copy of the key. Backups made from Settings → Backup & Recovery include the database and therefore the key; set AGENTWATCH_BACKUP_SECRET so such a backup cannot be opened with the built-in backup key (before 2.0.412 that variable was documented but never read; older backups still restore after you set it).

When several replicas start against a new database at the same moment, exactly one key is created: each replica inserts its key only if none exists (the setting’s primary key refuses a second row), then re-reads the stored value and uses that. An existing database key is never overwritten. If ENCRYPTION_KEY is unset and the database cannot be read at startup, AgentWatch retries and then refuses to start rather than encrypt with a key that would not survive a restart.

Upgrading needs no action to keep working. On the first start of 2.0.412 without ENCRYPTION_KEY, the database key is created and new writes use it; old rows keep reading through the legacy key. At startup, provider keys still stored under the old public key are re-encrypted under the current key in the background (each row is verified to decrypt back to the same value before it is written; a row no key can open is never touched). Set AW_REENCRYPT_LEGACY_SECRETS=0 to disable that. Conversation files are not rewritten; old lines stay readable until the conversation retention sweep removes them.

Generate the keys before first start if you can, and keep them in your secret manager:

Terminal window
openssl rand -hex 64 # ENCRYPTION_KEY
openssl rand -hex 64 # CHAT_ENCRYPTION_KEY
Terminal window
# docker compose: .env next to docker-compose.yml
ENCRYPTION_KEY=<128 hex chars>
CHAT_ENCRYPTION_KEY=<128 hex chars>
docker compose up -d --force-recreate

Verify in the startup log: with ENCRYPTION_KEY set you should not see ENCRYPTION_KEY is not set: secrets and conversation history are encrypted with a key … in the database. Then confirm stored keys still work: API Key Management → (select a provider) → API Keys → Test All should report every key healthy.

Adding ENCRYPTION_KEY to a deployment that ran on the database key is safe. The database key stays as a read key, so everything written under it still opens; provider keys are moved to ENCRYPTION_KEY at the next start, and new conversation lines use it. ⚠ Replacing one ENCRYPTION_KEY value with another is not safe: secrets written under the old value become unreadable. Keep the old value until every secret has been re-entered.

To check which key a deployment uses, without revealing it:

Terminal window
docker logs agentwatch-8787 2>&1 | grep -E 'ENCRYPTION_KEY is (not set|set to the old public default)|earlier database key'
Symptom Cause Fix
Startup log: ENCRYPTION_KEY is not set: secrets and conversation history are encrypted with a key … in the database No operator key; the database key is in use Fine to run as is — keep database backups. For stronger protection set ENCRYPTION_KEY from a secret manager
Startup log: ENCRYPTION_KEY is set to the old public default and is ignored An old .env or compose file still carries the pre-2.0.412 literal Remove it, or replace it with openssl rand -hex 64
Startup fails: the encryption key could not be stored in or read back from system_settings or the database error itself ENCRYPTION_KEY is unset and the database was unreachable or read-only at startup Fix database access and restart, or set ENCRYPTION_KEY
Provider key Test All fails with Stored key cannot be decrypted with the configured ENCRYPTION_KEY ENCRYPTION_KEY was replaced with a different value, or the database was restored without its encryption_key row Restore the previous ENCRYPTION_KEY (or the database backup that holds the key); otherwise re-enter the provider key
Chat History shows only the short previews; log: conversation lines written with key <kid> cannot be read CHAT_ENCRYPTION_KEY / ENCRYPTION_KEY was replaced, or the database key was lost Restore the previous key; the files are left untouched so they read again once it is back

Yes. Providers, keys, model catalogs, employees, teams, budgets, DLP policies, audit trails, and analytics are all tenant-scoped at the data layer, with no cross-organization access path. Every governance dimension is scoped the same way, which is what makes AgentWatch suitable for use as a multi-tenant governed AI gateway rather than only as an internal tool.

What about data sovereignty and air-gapped operation?

Section titled “What about data sovereignty and air-gapped operation?”

Each deployment is region-local: audit records, usage data, and embeddings remain inside the deployment region, and only the model calls leave — to providers the customer has explicitly authorized. Replacing those with self-hosted inference such as Lifeboat closes the boundary entirely. A fully air-gapped mode runs with zero outbound dependency, pulling images, weights, and library mirrors once from an internal registry, with local log shipping and no vendor cloud in the path.

AgentWatch is deployable software, so attestations such as SOC 2 Type II, ISO 27001, or FedRAMP apply to a deployed instance plus the operating organization’s controls, not to the software in the abstract. A customer’s deployment inherits the certifications of the underlying cloud or data center and whatever controls the customer’s own security team layers on. What AgentWatch contributes to an audit is the technical evidence: enforced role separation, inline data-loss prevention, exportable audit trails, configurable retention with an opt-in deletion sweep, and demonstrable control over which models and providers may be used.

Can I prove the audit log has not been altered?

Section titled “Can I prove the audit log has not been altered?”

From 2.0.412, every entry in the durable audit log (the governance log: role and settings changes, SSO and SCIM activity, identity rejections, policy blocks, retention sweeps) is hash-chained. Each entry stores prevHash, the hash of the entry written immediately before it, and hash, a SHA-256 over its own content plus prevHash. There is one chain per organization, plus a platform chain for entries that belong to no organization, so one organization’s export verifies on its own.

What the chain detects. Changing any hashed field of an entry, deleting an entry from the middle, inserting one, reordering entries, or splicing another organization’s entries into this one’s chain is detected, because every later link stops matching.

What it does NOT prove, stated plainly:

  • Someone who controls both the database and the audit files can rebuild the whole chain. If they rewrite an entry and then recompute every later hash, the chain is internally consistent again and verification passes. The only defence is a copy of the head hash kept somewhere that person does not control (see Anchoring below). Without such a copy, the chain is tamper-evident against everyone except an administrator of the deployment’s own storage.
  • Deleting the newest entries (truncating the end) is likewise only visible against an anchored head.
  • Entries written before 2.0.412 are not chained. Verification reports them as legacyUnchained (“before chaining began”). They are not reported as tampered, and nothing is proven about them.
  • The chain covers the governance audit log. Per-request usage rows (Usage Insights) are a separate store and are not chained.
Terminal window
# An organization admin verifies their own organization (organizationId is ignored for them).
# A super admin names any organization, or organizationId=platform for the platform chain.
curl -s "https://<your-agentwatch-host>/api/admin/audit/verify?organizationId=<org-id>" \
-H "Authorization: Bearer <admin JWT>"
{
"success": true,
"ok": true,
"organizationId": "8755f72d-…",
"algorithm": "sha256/canonical-json/v1",
"checked": 1843,
"chained": 1843,
"legacyUnchained": 9120,
"firstBreak": null,
"headHash": "3f9c…e21a",
"headId": "b51d…",
"prunedBoundary": null,
"complete": true
}

ok: true means every chained entry was checked and held. When ok is false, firstBreak names the first entry where the chain fails, with expected and found values and a reason:

reason What it means
content_hash_mismatch The entry’s stored content no longer hashes to its stored hash: the entry was edited
pointer_mismatch The database index row disagrees with the hashed record (field names which column)
missing_predecessor The entry links to a hash no entry has, and no retention sweep recorded removing it: an entry was deleted
fork Two entries claim the same predecessor
record_missing The index row exists but its record is not in the audit file (a lost or replaced file, or a write interrupted by a crash)
stored_hash_mismatch / prev_hash_mismatch The audit file and the database index disagree about the chain fields
unchained_after_chain_start An entry with no hash was written after chaining began. Expect this if a pre-2.0.412 replica wrote while a newer one was already running; otherwise treat it as an inserted entry

Known limitation: if the organization stores its audit files in S3 (the Storage Configuration section of Settings), the verify endpoint cannot read the records back yet and reports record_missing for the first chained entry. That reflects the reader, not tampering. Verify those chains offline from the bucket’s NDJSON files with the algorithm below. The same applies to entries written before an organization’s storage location was changed.

complete: false means the chain was longer than one request will load (AW_AUDIT_VERIFY_MAX_ROWS, default 1,000,000). The response then reports ok: false rather than claiming a verification it did not finish.

Anchoring the head (do this, or a full rewrite is undetectable)

Section titled “Anchoring the head (do this, or a full rewrite is undetectable)”

Record headHash somewhere outside the deployment: a ticket, your SIEM, a write-once bucket, a signed email. On a later verify, pass it back:

Terminal window
curl -s ".../api/admin/audit/verify?organizationId=<org-id>&expectHead=<the hash you recorded>" -H "Authorization: Bearer <admin JWT>"

anchorCheck.matchesHead is true only while no new entries have been written. Once more entries exist, confirm that the recorded hash still appears as an entry’s hash in a later JSON export. If it no longer appears, the chain was rewritten or truncated after you recorded it.

AgentWatch also makes these copies itself:

  • Daily: each chain’s head is written to the event pipeline as a config.change event with resource_name: "audit_chain_head" (archived to the hourly compressed event files, Kafka or ClickHouse when the pipeline runs) and to the container log as audit-chain-anchor. These copies are only independent of the database if they are shipped somewhere the database administrator cannot edit. AW_AUDIT_CHAIN_ANCHOR=0 disables the job.
  • Every JSON audit export carries auditChain.heads, the head of each chain the file covers, at the time of export. A file that has left the deployment is an anchor.

The retention sweep deletes audit entries oldest first, so it always removes the start of a chain. The oldest kept entry then links to a deleted predecessor. The sweep records that predecessor’s hash in its own retention.swept entry (metadata.auditChain.prunedThroughHashes), which is itself chained. The verifier accepts a missing predecessor only when a retention.swept entry names it, and reports it as prunedBoundary. A deletion that no sweep recorded is reported as missing_predecessor.

The JSON audit export carries, for each governance record, id, actorId, actorEmail, prevHash and hash beside the usual fields (details is the entry’s metadata). The audit NDJSON files carry the same records verbatim.

  1. Build an object with exactly these keys: id, timestamp, organizationId, actorId, actorEmail, action, targetType, targetId, ipAddress, metadata, prevHash. A missing key is null, except a missing metadata, which is {}. timestamp is the ISO-8601 string exactly as stored (e.g. 2026-11-11T09:30:00.123Z).
  2. Serialize it as canonical JSON: object keys sorted at every depth, arrays in their stored order, no whitespace, UTF-8, non-ASCII characters not escaped.
  3. hash = lowercase hex SHA-256 of those bytes. It must equal the entry’s hash.
  4. Each entry’s prevHash must equal the previous entry’s hash. The first entry of a chain has prevHash = SHA-256("agentwatch-audit-chain-genesis-v1:" + organizationId), or … + "__platform__" for the platform chain, unless it follows a recorded retention boundary.
import json, hashlib
FIELDS = ["id", "timestamp", "organizationId", "actorId", "actorEmail", "action",
"targetType", "targetId", "ipAddress", "metadata", "prevHash"]
def entry_hash(rec):
obj = {f: rec.get(f, {} if f == "metadata" else None) for f in FIELDS}
s = json.dumps(obj, sort_keys=True, separators=(",", ":"), ensure_ascii=False)
return hashlib.sha256(s.encode("utf-8")).hexdigest()
def genesis(org_id):
key = org_id or "__platform__"
return hashlib.sha256(f"agentwatch-audit-chain-genesis-v1:{key}".encode()).hexdigest()

From the JSON export, rename details back to metadata before hashing. This snippet matches the server’s implementation for ordinary records (strings, booleans, integers, decimals, nested objects). Two known edge cases can differ between Python and JavaScript serializers: numbers that JavaScript prints in exponent form (above about 1e21), and object keys containing characters outside the Basic Multilingual Plane. Audit metadata does not normally contain either.

The upgrade adds two nullable columns (audit_log_entries.prev_hash, audit_log_entries.hash) and a unique index on prev_hash. They are added at boot by both the start script and the schema reconciler, so no manual migration step is needed, and existing entries are left as they are (both columns NULL). The first entry each organization writes after the upgrade starts its chain.

More than one replica. Writes are serialized per chain inside each process. Across replicas that share a database, the unique index on prev_hash stops two writers from claiming the same predecessor: the slower one gets a constraint error, re-reads the head and retries. A second replica therefore costs a retry, never a fork.

AgentWatch governs the AI traffic layer. Infrastructure concerns belong elsewhere: GPU management and model-weight protection sit with the inference platform; confidential computing is a property of the infrastructure it is deployed on; service-mesh mutual TLS and network micro-segmentation belong to the Kubernetes or SDN layer, which AgentWatch consumes rather than orchestrates. External secret-manager integration (HashiCorp Vault, cloud key vaults) is not native — credentials are encrypted in the platform’s own store. Uptime SLAs are a property of the customer’s deployment contract, though the architecture supports high availability and multi-region operation.

Every gateway call produces a usage row — actor, model, tokens, cost, latency, policy outcome — and the full transcript is retrievable on drill-down. Security and configuration events are written to a durable, hash-chained audit log that survives restarts: role changes, settings changes with a per-field diff, SSO and SCIM activity, identity rejections, and policy blocks.

Terminal window
curl -s "https://<your-agentwatch-host>/api/admin/audit/export?format=json&days=30&source=all" \
-H "Authorization: Bearer <tenant-admin JWT>" -o audit.json

Retention is configured per deployment; the event archive is written hourly and compressed, and is the compliance record rather than a convenience copy.

How do I answer “did customer data leave our environment?”

Section titled “How do I answer “did customer data leave our environment?””
  1. Usage Insights → filter by the window and by DLP status.
  2. Blocked and redacted rows show what policy did. No raw detected value is stored in a preview — actioned rows are scrubbed at write time, so the audit record itself cannot become the leak.
  3. Export the window (above) for the auditor.

For shadow AI — traffic that never went through the API — the same question is answered from the endpoint agent’s records, provided content inspection is on.

Role Scope
User Their own usage, keys and budget
Company admin Their whole organization, including its settings (and a parent workspace’s sub-tenants)
Super admin Every organization, plus platform-scoped settings

Cross-organization access requires a super-admin by construction — an organization admin acting on another organization’s object is refused at the route, not filtered in the UI.

A user sees only their own records on every audit surface: the Usage Insights list, a conversation, a saved request, the Audit Export (their own requests, never the organization’s governance events) and the insights summary. Under My Usage → Sessions, View opens one of their own conversations.

What happens to the records when an employee or a workspace is deleted?

Section titled “What happens to the records when an employee or a workspace is deleted?”

Nothing is lost. Employee Management → Delete archives the employee: they disappear from every list and seat count, their login is removed, their gateway key stops working at once, and their email is freed so the same person can be added again as a new employee. Every usage row, DLP event, sign-in and audit entry they produced is kept and still names them, as “Name (deleted)” with the address they had.

Deleting a workspace (super admin, Platform → Tenants → Archive) works the same way: nobody can sign in, its employees’ keys are refused, and every record is kept. Activate restores it, including the employees the archive suspended. Permanently delete erases the workspace and all its records, for legal erasure requests, and is offered only for a workspace that is already archived:

Terminal window
# archive (default) — every record kept
curl -X DELETE "https://<your-agentwatch-host>/platform/tenants/<org-id>" \
-H "Authorization: Bearer <super-admin JWT>"
# permanently delete — refused with 409 ARCHIVE_FIRST unless it is archived
curl -X DELETE "https://<your-agentwatch-host>/platform/tenants/<org-id>?purge=1" \
-H "Authorization: Bearer <super-admin JWT>"
Symptom Cause Fix
409 ARCHIVE_FIRST on permanent delete The workspace is still active Archive it first
A deleted employee still appears in Usage Insights By design: their history is kept It is labelled “(deleted)”; it no longer counts as a seat
403 ORG_ARCHIVED on sign-in The workspace is archived A super admin can Activate it

Are images, PDFs and uploaded files stored?

Section titled “Are images, PDFs and uploaded files stored?”

No. When a request carries an image, a PDF, audio or an uploaded file, the gateway forwards it to the provider unchanged, but what it stores is a short marker in its place, for example [image: image/png, 24 KB] or [file: invoice.pdf, application/pdf, 0.6 KB]. The marker is what an admin sees in the conversation pop-up, and what the person who sent it sees under My Usage → Sessions → View. Text is stored as before. This applies to conversations, the Connect relay, MCP tool calls and results, and the request archive.

  • Keep gateway keys server-side; never ship one to a browser or desktop client.
  • Prefer service keys with delegated identity over a shared key, so every request attributes to a person.
  • Turn on SSO and disable auto-create if access must be granted deliberately.
  • Verify de-provisioning works before you rely on it — disable a test user in your directory and confirm their key stops authenticating.
  • Set ENCRYPTION_KEY and CHAT_ENCRYPTION_KEY from your secret manager (otherwise the key lives in the database and travels with its backups), keep database backups either way, and never replace them on a running deployment without a planned migration — see Which keys encrypt data at rest?.
  • Review Settings → Audit Logs for security.* events on a schedule.
  • Verify the audit hash chain (GET /api/admin/audit/verify) on a schedule and record headHash outside the deployment. Without an external copy, a rewrite of the whole chain by someone with database access cannot be detected.