Home / Trust center
Trust center
Security and privacy, sourced from the code
Answers for IT and security reviewers. three.ws is open source under Apache 2.0, so every answer below links to the file that does what it says. Where a control does not exist yet, we say so.
- Google Cloud, us-central1Application runs on Cloud Run. Database on Neon (AWS us-west-2).
- TLS everywhereHSTS with preload. Keys and tokens stored only as hashes.
- Deletion is a job, not a promiseScheduled purges enforce every retention window.
- No SOC 2 or ISO yetMicrosoft 365 Publisher Attestation in preparation.
Hosting and regions
The API and website run as one container on Google Cloud Run (service three-ws-api, region us-central1, Iowa, United States), deployed by Cloud Build under dedicated build and runtime service accounts. Scheduled jobs run on Cloud Scheduler. Cache and rate-limit state live in Memorystore for Redis on a private network that is not reachable from the internet.
The database is Neon managed PostgreSQL in AWS us-west-2 (Oregon). User files are stored in Cloudflare R2. All customer data is processed in the United States. We do not offer data residency in other regions today.
Evidence server/cloudbuild.yaml docs/ops/gcp-production.md Subprocessor list
Encryption
In transit
HTTPS only, with Strict-Transport-Security: max-age=63072000; includeSubDomains; preload on every response. Calls to the database, object storage and model providers use TLS. The Redis link runs over Google's private network.
At rest
Each storage provider encrypts data at rest by default: Google Cloud, Neon and Cloudflare R2. On top of that, the application encrypts its most sensitive values itself:
- Custodial wallet keys and per-agent provider keys: AES-256-GCM with HKDF-derived keys and a random nonce per record, under a key separate from the session secret.
- Sessions, OAuth refresh tokens and API keys: stored only as SHA-256 hashes. The raw value is shown once and never stored.
- Passwords: bcrypt.
Evidence api/_lib/agent-wallet.js api/_lib/auth.js docs/security.md
Authentication
- People: email and password, Sign-In With Solana, EVM wallet sign-in (EIP-4361, single-use nonces), Google, GitHub and X, or Privy social sign-in. Browser sessions are opaque 32-byte random tokens in a
__Host-cookie (HttpOnly, Secure, SameSite=Lax) with a 30-day lifetime. - Apps and MCP clients: OAuth 2.1 with PKCE, where only
S256is accepted, and audience-bound access tokens that expire after one hour. Refresh tokens rotate, and if an old one is reused the whole token chain is revoked. Scoped API keys can be revoked at any time. - Microsoft Marketplace buyers sign in with their Microsoft Entra ID work account to activate a purchase.
- Rolling out to a Microsoft organisation: an Entra administrator approves the sign-in app once on the admin consent page (delegated sign-in and own-profile permissions only), and the IT admin deployment guide covers pushing the Teams app, the web app and the Edge extensions through Intune, Group Policy and Teams policies.
- Enterprise SSO: SAML 2.0 service-provider support is built and can be enabled for a deployment with that organisation's identity provider. It is not enabled on three.ws today.
- Multi-factor: any account can turn on two-step verification in Settings (Security tab) with an authenticator app (TOTP, RFC 6238) and ten single-use recovery codes. It applies to every sign-in path: password, Google, GitHub, X, wallet and Telegram sign-in, and SSO. Secrets are encrypted before storage, recovery codes are stored only as hashes, and a code works once. It is opt-in per account; sign-ins through Microsoft Entra inherit the organisation's Conditional Access MFA policy and are not asked twice. Passkeys are not supported yet.
Evidence api/oauth/[action].js api/_lib/saml.js api/_lib/microsoft-marketplace.js docs/authentication.md
Access control and admin access
Every API request is checked against the caller's scopes. Records belong to the user or agent that owns them, and generated files stay private to their owner until the owner publishes them. Agent skills declare the permissions they need, and the user grants them.
Roles. A team has an owner and fixed-ceiling specialist roles (Researcher, Entry, Trader, Launcher). A grant can be narrowed but never widened past its role, and the server enforces it. See the Teams documentation.
Admin endpoints require a signed-in session whose wallet is on a short allowlist or whose account is flagged as an admin in the database. Production infrastructure is reached through Google Cloud IAM, and secrets are held in Google Secret Manager rather than in the repository.
Evidence api/_lib/admin.js scripts/read-service-env.mjs docs/security.md
Logging and monitoring
Request and error logs go to Google Cloud Logging. Every server fault and every reported browser error becomes an alert, deduplicated by signature. Critical alerts reach the operator by private Telegram chat and email immediately; warnings arrive in an hourly digest. A probe checks the platform, API and payment surfaces every 5 minutes and publishes the results on the status page. Signer keys are scanned for leaks every 15 minutes.
Chat message content is not logged. Audit trail: sensitive account actions (API key creation and revocation, two-step verification changes, deletions, legal acceptances, failed sign-ins) are recorded with time, IP address and user agent. Account holders read their own trail in the action log and export it as CSV, and a team owner exports the team's admin activity as CSV or JSON from the team page. Security audit logs are kept for 365 days.
Evidence api/_lib/alerts.js api/status.js docs/ops/production-log-triage.md
Data retention and deletion
Every retention window below is enforced by a scheduled job. The schedules are in UTC.
| Data | Kept for | Enforced by |
|---|---|---|
| Deleted accounts | 30 days soft-deleted, then purged: files first, then rows. Financial records are kept but stripped of anything that identifies you. | purge-deleted-accounts, daily 04:17 |
| Sessions (with sign-in IP and user agent) | 30-day lifetime; the record is deleted 30 days after it expires or is revoked | privacy-retention, every 15 minutes |
| Sign-in nonces | Expire after 5 minutes; deleted within 24 hours | privacy-retention, every 15 minutes |
| Usage events | 60 days in the live database, then moved to a private cold-storage archive in us-central1. Metered billing rows stay for invoicing. | db-archive-tables, every 15 minutes |
| Security audit logs | 365 days in the database, archived before pruning. Legal-acceptance records are kept for the life of the account. | audit-archive, daily 04:00 |
| Widget view events | 12 months | privacy-retention, every 15 minutes |
| Raw MCP client sessions | 30 days; only daily totals remain after that | db-retention, every 15 minutes |
| Connected-home action log | 90 days by default; the owner can shorten it to 1 day | home privacy, every 15 minutes |
| Microsoft 365 Copilot connector index (tenant id, sync state, a hash per indexed item; no Microsoft tokens) | Until the account disconnects. Disconnect deletes the connection and its items from the customer's tenant, then every stored row. Items that leave three.ws are deleted from the tenant on the next sync. | Microsoft 365 connector, sync every 15 minutes |
| Teams bot AI feedback and content reports (hashed conversation and person ids, tenant id, which agent or 3D job wrote the message; no message text except the capped excerpt of reported bot output) | Message links 90 days. Thumbs feedback and comments 12 months. Reports 12 months after a reviewer closes them. | Teams Responsible AI, db-retention every 15 minutes |
| CSRF tokens | Until expiry | cleanup-csrf-tokens, hourly |
To access, export or delete your data, email privacy@three.ws from your account address or sign a request with your wallet. We answer within 30 days. Data written to a public blockchain cannot be deleted by anyone.
Evidence Privacy policy, section 5 vercel.json (cron schedules) tests/privacy-retention.test.js
Backups and recovery
The database runs on Neon, which keeps a history of changes so it can be restored to an earlier point in time within the plan's restore window. Audit records, older usage records and pruned market-feed data are archived to Google Cloud Storage and checked against the source before any row is deleted. Every deploy is an immutable Cloud Run revision, so a bad release can be rolled back in one command.
We do not yet run scheduled database dumps to storage outside Neon. The last full dump was taken by hand on 8 July 2026, and automating it is in progress.
Evidence api/_lib/db-archive.js docs/ops/gcp-production.md Neon point-in-time restore
Wallet custody
Every agent gets a custodial Solana wallet: three.ws holds the key, encrypted as described above, so the agent can act without a person approving each transaction. That means we hold signing power, and we say so plainly. The controls on it:
- Owner-set spend limits (daily and per transaction) and a destination allowlist, enforced on the server before anything is signed.
- A one-tap freeze that stops all autonomous spending but never blocks the owner's own withdrawal.
- A custody event trail of every withdrawal, spend, limit change and freeze, with balances committed to a Merkle attestation that anyone can re-verify in the browser.
- Social recovery and inheritance that transfer ownership of a wallet without exposing its key.
Wallets people connect themselves from their own browser or mobile wallet app are never custodial. Their keys never reach three.ws.
Evidence docs/custody.md api/_lib/agent-wallet.js
AI data use
three.ws does not train models on your prompts, files or photos. Most 3D generation runs on our own GPU workers in Google Cloud, so that content does not go to a third party. Chat goes to hosted model providers in a failover order. Free lanes come first, which means a prompt can reach any provider in the order below. The terms each provider publishes for its API:
| Provider | Used for | What the provider publishes |
|---|---|---|
| Groq | Default chat lane | "By default, Groq does not retain customer data for inference requests." Inputs and outputs may be logged for up to 30 days for reliability and abuse investigation. Source |
| OpenRouter | Chat failover, free models | "Wherever possible, OpenRouter works with providers to ensure that prompts will not be trained on, but there are exceptions." Some downstream providers "may train on it if marked." Source |
| NVIDIA | Chat failover, speech recognition, text-to-3D | NVIDIA's API catalog documentation makes no statement about training on or retaining submitted inputs. We treat it as a provider that may retain them. Privacy policy |
| OpenAI | Paid chat backstop, embeddings | "Data sent to the OpenAI API is not used to train or improve OpenAI models." Abuse-monitoring logs are "retained for up to 30 days." Source |
| Google Vertex AI | Gemini chat anchor, Imagen images | "Google won't use your data to train or fine-tune any AI/ML models without your prior permission or instruction." Cached data is "deleted no later than 24 hours after it's written." Source |
| Cloudflare Workers AI | Image understanding | "Cloudflare does not use Customer Content processed by Workers AI to train AI models." Source |
Because free lanes lead the order, do not put confidential or personal data in prompts. Selfie photos for avatars go to our own reconstruction service. We never use them for training and never derive a face template from them.
Evidence api/chat.js (routing order) api/_lib/chat-models.js Privacy policy, sections 3 and 10
Incident response and status
Incidents are detected automatically, as described under logging. Responders can contain one by rotating a secret, freezing wallets, revoking sessions, rolling back to an earlier revision, or turning off a feature with its kill switch. If a breach affects personal data, we notify affected users, and regulators where the law requires, without undue delay and within the legal deadline, for example 72 hours under GDPR. Live availability is on the status page.
Evidence docs/incident-response.md three.ws/status Privacy policy, section 9a
Vulnerability disclosure
Report vulnerabilities privately to security@three.ws. We aim to acknowledge reports within 48 hours and to ship fixes for critical issues within 7 days. Please give us a reasonable window to fix an issue before disclosing it publicly. Do not access other people's data, disrupt the service, or move funds you do not own while testing.
Compliance status
Where things stand today. We do not claim a certification until we hold it.
| Item | Status | Detail |
|---|---|---|
| Open-source code | In place | Apache 2.0; every control on this page can be read in the source. |
| Encryption in transit and hashed credentials | In place | TLS with HSTS preload; sessions, refresh tokens and API keys stored as hashes. |
| Enforced retention and deletion | In place | Scheduled jobs for every database window above, each covered by tests. |
| Vulnerability disclosure | In place | RFC 9116 security.txt and a monitored security contact. |
| Public status page | In place | Probes every 5 minutes, with 90 days of history. |
| Dependency advisory triage | In place | Advisories reviewed for reachability and recorded in docs/security.md. |
| Written security policies | In progress | Information security, access control, change management, vulnerability and patching, logging, backup and recovery, retention, secure development and supplier policies, plus a risk register, are published in docs/compliance. Owner signature pending. |
| Microsoft 365 App Compliance: Publisher Attestation | In progress | In preparation. Answers are drafted from the code and have not been submitted. |
| Written incident response plan | In progress | Drafted from the running system and awaiting owner sign-off. |
| Automated off-provider database backups | In place | Daily dump to a locked, immutable bucket, restored into a scratch database on every run. Measured recovery time 215 seconds. See the backup and recovery policy. |
| Archived usage records expiry | In progress | Archived usage events do not yet expire. Adding an expiry rule that matches the privacy policy's 90-day window. |
| Two-step verification (authenticator app, recovery codes) | In place | Opt-in per account and applied to every sign-in path. Passkeys are not supported yet. |
| SOC 2 Type II, ISO/IEC 27001 | Not pursued | Not held, and no audit is under way. |
| Third-party penetration test | Not pursued | Not yet commissioned. An internal source-level security review was completed in October 2026. |
| Data residency outside the US | Not pursued | All customer data is processed in the United States. |