# Security

How KlientBrain protects your data. Anything not built yet is marked Coming.

## Where your data is stored

- Your projects, prompts and answers are stored in a Postgres database hosted by Supabase in London, UK.
- The app runs on Cloudflare. Scheduled runs happen on Trigger.dev in the United States. Sign-in is run by Clerk and email is sent by Resend, both in the United States.
- Some providers process data outside the UK. The Privacy Notice names each provider, its region and the safeguard used. [Providers and regions](https://app.klientbrain.ai/privacy#4-when-and-with-whom-do-we-share-your-personal-information)

## Encryption

- Connections to the app use HTTPS, and browsers are told to use HTTPS only.
- The sign-in tokens, webhook secrets and Slack or Teams addresses you connect are encrypted with AES-256-GCM before they are stored.
- The keys are held in a secrets manager, not in the code.
- Encryption keys can be rotated without losing stored tokens.

## AI and your data

- We do not use your content to train AI models.
- OpenAI, Anthropic and Perplexity each state in their API terms that they do not train their models on data sent to their API.
- Data read from a Google Analytics property you connect is never sent to an AI provider.

## Access

- Each workspace's data is kept separate. People can only open the projects in their own workspace.
- Team members are an Admin, a Member or a Viewer. A Viewer can read and cannot change anything.
- Changes a team makes in a workspace are recorded with who, what and when.
- Coming: Admins can read that record in the app.
- KlientBrain staff reach customer workspaces only through an admin page that customers cannot open. Every change made there is logged with who, what and when.

## Signing in

- Sign-in is run by Clerk. You sign in with Google or with a code sent to your email.
- Our database holds no password.
- Two-factor sign-in is available and optional. Turn it on with an authenticator app, and keep backup codes in case you lose your phone.

## Keeping and deleting data

- A deleted project is hidden at once and can be restored for 60 days. After that it is removed for good.
- A deleted workspace's data is kept for 60 days so you can export it, then erased.
- Data is erased automatically after 60 days.
- Coming: Members' email addresses in a deleted workspace's activity record are replaced after 6 months.
- Coming: Records tied to invoices are kept for 7 years after a workspace is deleted, then removed.
- Deleted data can remain in database backups for up to 7 days.

## Providers

- The companies that process data for us, what each does and where, are listed in the Privacy Notice. [Providers and regions](https://app.klientbrain.ai/privacy#4-when-and-with-whom-do-we-share-your-personal-information)

## Certifications

- We are working towards ISO 27001 and SOC 2.
- We do not hold either one yet.

## Checks and limits

- We test our own app for common weaknesses.
- The libraries we use are checked for known vulnerabilities, and a serious one fails the check.
- Changes are tested on a separate staging copy of the app before they reach live.
- The sign-up form has a bot check and limits on repeated applications.

## Report a vulnerability

- Email support@klientbrain.ai with what you found and the steps to reproduce it.

[Privacy Notice](https://app.klientbrain.ai/privacy) [Terms of Service](https://app.klientbrain.ai/terms)
