# Security & telemetry

Hosting region, encryption, certification status, what is stored, what the SDK sends and the per-workspace data policy.

AI Spendbook documentation, Security & legal. Web page: https://www.aispendbook.com/docs/security

## Hosting and region

- Customer data on the hosted service is stored in the United States: the database is Google Cloud Firestore, nam5 (United States multi-region).
- The web app and the API run on Vercel Functions in cle1 (Cleveland, Ohio, United States).
- Daily database backups are kept for 7 days, in the same location.
- The software can also run as a separate EU deployment that keeps data in the European Union, for self-hosting or on request. A hosted EU deployment is not running yet.
- Each workspace has one data region, set when it is created and shown in its settings. It cannot be changed later; moving means exporting and creating the workspace again in the other region.
- The region covers where AI Spendbook stores data, not where provider APIs answer.

## Encryption

- **In transit:** the site and the API are served over HTTPS (TLS) only, with HSTS. Connectors call provider APIs over HTTPS, and Postgres connections require TLS.
- **At rest:** Google Cloud encrypts the database at rest. Connector credentials are encrypted again by the application with AES-256-GCM, with the key held outside the database, or kept in Google Cloud Secret Manager.
- Credentials are never returned by the API and never logged. You only see a masked hint. API keys are stored as SHA-256 hashes and shown once.

## Certification status

AI Spendbook does not have a SOC 2 report or an ISO 27001 audit yet, and no third-party penetration test has been done. SOC 2 readiness assessment in progress. Google Cloud and Vercel, which host the service, publish their own SOC 2 reports. The [trust center](https://www.aispendbook.com/trust) lists the controls, sub-processors and policies, and how to request documents.

## Access

- Every request checks your workspace membership and role on the server. Non-members get “not found”.
- Single sign-on (SAML or OIDC) and SCIM provisioning on the Business and Enterprise plans, and required two-step verification on every plan, set up per workspace by its owners. See [SSO, MFA, SCIM and keys](https://www.aispendbook.com/docs/sso-mfa-scim).
- Connector and settings changes, key creation, member changes, finance changes and daily sign-ins are recorded in the audit log (Settings → Audit log). Each entry is chained to the one before by a SHA-256 hash, and admins can export the log and check the chain.
- **Data policy** (Settings → Data & privacy), per workspace: store request metadata (on by default), allow AI classification of usage categories (off by default; sends request metadata to the Google Gemini API when on), allow content capture (off by default), and retention in days.

## What the SDK sends

Model, provider, token counts, latency, status, your attribution fields (customer, user, feature, category, project) and metadata keys you allowlist. Prompt and completion text are sent only if both the SDK option and the workspace content-capture policy are enabled. To turn the SDK off, set `SPENDBOOK_DISABLED=1` or revoke the ingestion key.

See also: [sub-processors](https://www.aispendbook.com/docs/sub-processors), the [data processing agreement](https://www.aispendbook.com/docs/dpa), the [security questionnaire](https://www.aispendbook.com/docs/security-questionnaire) and the [SLA and fixed terms](https://www.aispendbook.com/docs/sla-and-terms).

Questions? [Contact support](https://www.aispendbook.com/support).
