# Security overview

Architecture, hosting, isolation and the principles behind how Kumkuat handles data.

This section describes what Kumkuat does with data as the product actually works today: which systems exist, where they run, what third parties touch, and where people stay in control. It is written to be attached to a security review as is.

## Architecture

```mermaid
flowchart LR
  subgraph you[Your organisation]
    users[Your team<br/>browser · Firebase Auth]
    systems[Your systems<br/>Optional · REST API key]
    claude[Claude Desktop · Claude Code<br/>Optional · MCP extension]
    slack[Slack workspace · your webhook endpoint<br/>Optional · alert delivery · Slack app]
    libs[SharePoint · OneDrive · Google Drive<br/>Optional · document-library connector]
  end
  subgraph gcp[Kumkuat platform · Google Cloud us-central1]
    web[Web application<br/>Cloud Run]
    api[REST API<br/>Cloud Run]
    jobs[Background workers<br/>Cloud Run · scheduled jobs]
    pg[(PostgreSQL<br/>Cloud SQL · us-central1)]
    sm[Secret Manager<br/>provider keys · connector tokens]
    gcs[Cloud Storage<br/>uploaded files · US multi-region]
  end
  subgraph ext[Third parties]
    llm[Model providers<br/>Google Gemini · OpenAI · Anthropic]
    retrieval[Retrieval partners<br/>Bright Data · Firecrawl]
    feeds[Data feeds<br/>press releases · transcripts]
    public[Public sources<br/>LinkedIn · X · Truth Social · Bluesky · newsrooms · RSS]
  end
  users -- HTTPS --> web
  systems -. HTTPS · X-API-Key .-> api
  web --> api
  api -- queues --> jobs
  api --> pg
  jobs --> pg
  api --> gcs
  jobs --> gcs
  sm -.-> api
  sm -.-> jobs
  api -- prompts · TLS --> llm
  jobs -- prompts · TLS --> llm
  jobs <-- handles & URLs<br/><i>read-only</i> --> retrieval
  jobs -- tickers<br/><i>read-only</i> --> feeds
  jobs -- handles & URLs<br/><i>read-only</i> --> public
  claude -. HTTPS · X-API-Key .-> api
  slack <-. slash commands · digests .-> api
  libs -. files .-> jobs
  classDef optional fill:#ffffff,stroke:#b45f06,stroke-width:1.5px,stroke-dasharray: 5 3,color:#1d1a16
  class systems,claude,slack,libs optional
```

Dashed boxes and dotted lines are optional connections. None is on by default.

| Component | Where | Notes |
| --- | --- | --- |
| Web application, REST API, background workers | Google Cloud Run, `us-central1` | TLS on every connection; the web app calls the API; the API queues long work to the workers |
| Workspace data (documents, personas, reactions, chats, reports, embeddings, usage audit) | PostgreSQL on Google Cloud SQL, `us-central1` | Encrypted at rest; TLS required; reached by the platform over a private VPC connection; every row is keyed to a workspace |
| Uploaded files and press-release text copies | Google Cloud Storage, US multi-region | Private objects read through an authenticated proxy |
| Kumkuat's provider keys, and the key that encrypts connector and Slack tokens | Google Secret Manager | Injected into the running service; never in code or images |
| Workspace-supplied provider keys (bring your own key) | Workspace settings in PostgreSQL | Used only for that workspace's calls; masked in the app and API after saving; never logged |
| Sign-in | Google Cloud Identity Platform (Firebase Authentication) | Email and password, or your own identity provider over SAML 2.0; roles owner, admin, member, viewer |

## Optional integrations

None of these is on by default. Each one starts with the deliberate step in the second column, and each can be removed at any time.

| Integration | What connects to what | What it can do | Details |
| --- | --- | --- | --- |
| MCP extension for Claude Desktop and Claude Code | Installed by a user on their own machine; calls the Kumkuat API over HTTPS with a workspace API key | The same as that API key: chat with audiences, read grades, generate reactions, manage competitors. Responses go to the user's Claude client, which then sends them to Anthropic under the user's own Claude account | [Claude Desktop and Claude Code](/docs-kumkuat-ai/mcp-server) |
| Slack app | Installed by a workspace admin through Slack's own consent screen; the bot token is encrypted at rest | Posts alert digests to the channels you choose, answers `/audience` and `/narrative`, and reads files shared with it in a DM | [Slack](/docs-kumkuat-ai/slack) |
| Webhook delivery | Kumkuat sends an HTTPS POST to a URL an alert's owner enters | Delivers the alert digest to your own system | [Alerts](/docs-kumkuat-ai/alerts) |
| SharePoint, OneDrive and Google Drive connectors | A user of your tenant grants read-only delegated OAuth; tokens are encrypted at rest | Reads the library or folder you pick into a knowledge base; never writes back | [SharePoint & OneDrive](/docs-kumkuat-ai/sharepoint-onedrive) · [Data flow](/docs-kumkuat-ai/data-flow#connected-document-libraries) |

## Principles

- **Workspace isolation.** Every customer workspace is logically isolated; API keys are scoped to a single workspace.
- **Read-only retrieval.** Public content and connected document libraries are read, never written to. No Kumkuat feature posts to a social network or press wire. Outbound delivery goes only to destinations your users configure: email recipients, a Slack channel, or a webhook URL.
- **Outputs stay on the platform.** Reactions, chats, reports and drafts are shown to your users and saved to your workspace. They leave only when a user exports them or creates a share link, which the user can revoke.
- **No training.** Model providers are used on API tiers that do not train on content. Kumkuat trains no models of its own.
- **People in control.** Configuration is set by your admins; every generated output is reviewed by the requesting person before downstream use. See [Human oversight](/docs-kumkuat-ai/human-oversight).

Single sign-on over SAML 2.0 is self-service for workspace admins: see [Single sign-on](/docs-kumkuat-ai/single-sign-on-saml-2-0). The documents available on request and how to report a vulnerability are on [Trust & Security](/docs-kumkuat-ai/trust-security).

- [Data flow](/docs-kumkuat-ai/data-flow): What is retrieved, from where, where it lands, and what a model receives.
- [Human oversight](/docs-kumkuat-ai/human-oversight): In, on and over the loop, touchpoint by touchpoint.
- [Model provider controls](/docs-kumkuat-ai/model-provider-controls): How a provider is deselected and how that is evidenced.
- [Data handling FAQ](/docs-kumkuat-ai/data-handling-faq): Retention, deletion, sub-processors and the questions reviewers ask.
- [Security & compliance FAQ](/docs-kumkuat-ai/security-compliance-faq): One linkable answer per vendor-questionnaire topic.
- [Sub-processors](/docs-kumkuat-ai/sub-processors): Who processes data on Kumkuat's behalf, what each receives, and a dated change log.
