Security & legal
Security questionnaire
Answers to common security review questions, from how the product works today.
Answers to the questions most security reviews ask, written from how the product works today. For anything not covered, email support@aispendbook.com.
| Question | Answer |
|---|---|
| Where is customer data stored? | United States. The database is Google Cloud Firestore, nam5 (United States multi-region). The web app and API run on Vercel Functions in cle1 (Cleveland, Ohio, United States). |
| Can we choose the region? | 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. |
| Is data encrypted in transit? | Yes. The web app and the API are served over HTTPS only, with HSTS. Calls to provider APIs use HTTPS, and Postgres connections require TLS. |
| Is data encrypted at rest? | Yes. 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. |
| Can staff or the API read connector credentials back? | The API never returns a credential after it is saved. You see a masked hint. Credentials are never logged. |
| How are API keys stored? | Ingestion and read keys are shown once and stored as SHA-256 hashes. Share links and invitation tokens are stored the same way. |
| Do you have a SOC 2 report or an ISO 27001 audit? | Not yet. SOC 2 readiness assessment in progress. Google Cloud and Vercel, which host the service, publish their own SOC 2 reports. See the trust center. |
| Has a third-party penetration test been done? | Not yet. |
| SSO, SAML or SCIM? | Available on the Business and Enterprise plans for workspace owners to set up: SAML or OIDC single sign-on, set up in the app after verifying the email domain by DNS, which an owner can then require, and SCIM 2.0 user provisioning (PUT and PATCH, as Okta and Entra ID send them) with a workspace token. See SSO, MFA, SCIM and keys. |
| Is MFA enforced? | An owner can choose to require two-step verification for a workspace, on any plan. Members then sign in with an authenticator app (TOTP). With SSO, enforce MFA in your identity provider. |
| How is access controlled? | Five roles, checked on the server on every request. Members can be limited to projects, kept from seeing revenue and kept from seeing employee data. Non-members get “not found”. See permissions. |
| How are tenants isolated? | Every API query is scoped to the workspace in the request after a membership check. Database rules deny all direct client access to workspace data. |
| What is audit logged? | Connector and settings changes, key creation and revocation, member changes, close, accounting and finance changes, and one sign-in entry per person per day. Each entry is chained to the one before by a SHA-256 hash; admins can export the log and check the chain in Settings, Audit log. The log can also be streamed to Datadog, Splunk or Sumo Logic. |
| Is prompt or completion content collected? | Not by default. It is stored only if a workspace admin turns on content capture and the SDK is set to send it. |
| Is our data used to train models? | AI Spendbook does not train models. The AI Analyst uses the Google Gemini API, which under the provider's API terms for paid services does not use prompts or responses to train its models. See the Google Gemini API terms. |
| How long is data kept? | Each workspace sets a retention period in days. Deleting a workspace deletes its data, its read keys and its share links. |
| Backups and recovery? | Daily database backups, kept for 7 days. A scripted restore drill restores into a separate database. Point-in-time recovery is not turned on. |
| Do you connect to our database? | Only if you set up the Supabase or Postgres connector, through a read-only role you create. Private and internal addresses are refused. |
| How are dependencies and changes checked? | Every pull request and push to the main branch runs the API and web test suites and a type check. The security workflow (security.yml) runs on every pull request and every push to the main branch: a secret scan of the full history, dependency and Dockerfile scans (Trivy, pip-audit, pnpm audit), static analysis (Bandit, Semgrep, ESLint security rules) and a software bill of materials. Dependency updates are proposed weekly. An external check calls the production health endpoint every hour. |
| Who are the sub-processors? | The sub-processor list. |
| How are incidents reported? | As set out in the DPA: by email to the workspace owners, without undue delay. |
See also: sub-processors, the data processing agreement, the security questionnaire and the SLA and fixed terms.