bsns.cc
Security & trust
Last updated November 27, 2026
bsns.cc is built around the premise that customer records belong to the customer, not the platform. This page documents the technical controls behind that promise, the gaps we haven’t closed yet, and how to verify either claim.
For the user-facing version of this material with examples and plain-English framing, see Help · Data & security.
Hosting & data residency
Production application compute runs on Google Cloud Run and production relational data lives in Cloud SQL PostgreSQL 17 in us-west1, behind a global Google Cloud HTTPS load balancer. Preview is isolated in the separate bsns-nonprod GCP project, with passive Cloud Run services and separate Cloud SQL databases in us-west1. Development runs in the same bsns-nonprod project with its own databases and holds no customer data. Neither Vercel nor Neon hosts anything for us: the former Neon databases and the former Vercel account, including its historical file stores, have been deleted. Production data is not copied into a non-production tier without a separately reviewed, redacted refresh procedure.
The customer-identity database (sign-in, MFA, federation) is a logically separate Postgres database from the business-data database; the two are queried by separate Prisma clients with distinct credentials. That separation narrows accidental access and recovery scope.
Encryption
In transit
TLS 1.2 or higher on every public endpoint. HSTS is set with a long max-age. Production and Preview terminate at Google Cloud frontends; Cloud Run reaches Cloud SQL through managed connectors, which authenticate and encrypt the network path. Development uses the same Google Cloud path.
At rest
Cloud SQL and the managed object-storage providers encrypt their storage at the platform layer. On top of that, sensitive columns — date of birth, SSN, EIN, tax IDs, driver license numbers, federation private keys, telematics API keys — are individually encrypted with AES-256-GCM using a separate encryption key for each area of the app. Application encryption keys are stored in Google Cloud Secret Manager. Plaintext of these columns never leaves the single decrypt helper that wraps them.
Key management
Keys are 256-bit, generated with a cryptographic RNG, and rotated on demand using a documented runbook (docs/operations/rotate-secrets.md). The offsite backup decryption key is held separately for disaster recovery.
Keeping businesses apart (tenant isolation)
Each business is a separate tenant. Every business-data table that carries a tenantId column is under Postgres row-level security with the FORCE attribute. The application connects with a role that doesn’t bypass RLS, and the tenant identifier is set as a server-side session GUC inside an explicit transaction before any read or write. An application-layer bug that forgets to set the GUC returns zero rows — it cannot leak another business’s data.
Operations that span businesses (super-admin views, support tooling, billing rollups) use a separate owner-role client and are gated by the platform-permission system below.
A required local invariant (check:rls-coverage) refuses any change that introduces a tenant-keyed table without enabling RLS. A second invariant (check:rls-carveouts) maintains an explicit allowlist of exceptions that span businesses and flags additions.
Authentication
One sign-in for every room via auth.bsns.cc. Sessions are issued as signed JWTs scoped to the .bsns.cc cookie domain. The portal supports email + password, WebAuthn passkeys, TOTP, and SAML federation for enterprise customers.
Multi-factor authentication is enforced by default. New accounts have a 7-day grace window to enroll a passkey or TOTP, after which sign-in routes through MFA verification before launching the app. A current Google or Apple federated sign-in satisfies this requirement through the identity provider rather than requiring a second bsns.cc factor. MFA verification status rides in the JWT and is checked by every launch endpoint.
A business’s own admins may exempt an individual non-admin teammate from the enrollment requirement — the counter or field worker with no smartphone and no security key. Exemptions are per-person (never workspace-wide), require a written reason, and are recorded in the security log. Administrator accounts cannot be exempted, and an exemption never bypasses verification for a user who has enrolled a factor.
API access uses two distinct token types: per-user personal access tokens (pat_*) for human-driven scripts, SHA-256 hashed at rest and shown once at creation; and env-scoped service keys for trusted backend traffic. Both run through rate limiters backed by Upstash Redis so a single compromised credential can’t fan out faster than the configured ceiling.
Platform-permission groups (SUPER_ADMIN, BILLING_ADMIN, SUPPORT_ADMIN, AUDITOR, CUSTOMER_OPERATIONS) gate the admin surface. Group → permission mapping is code, not a UI form — a change requires a pull request, not a checkbox.
AUDITOR is the read-only seat we issue for outside review — board members, advisors, and external auditors. It reaches our purpose-built maturity and compliance aggregates plus aggregate error and performance rates. It cannot reach raw operational evidence, a customer’s workspace, a user record, a support ticket, an individual monitoring event, or impersonation. Someone reviewing how we run the platform does not need to see your data, so the seat is built so they can’t.
Audit logging
Sensitive actions write to one of three audit surfaces:
PlatformAuditLog— every super-admin action, including the permission that authorized it, actor, target, and metadata. Surfaced on/admin/audit.ImpersonationEvent— one row per launch into another business via the impersonation flow; viewable by both the super-admin and the business that was viewed.- Document signing in Documents — a tamper-evident hash chain for each business (each entry holds a SHA-256 of the prior entry) with advisory-locked writes so concurrent signers can’t fork the chain.
Side effects that one room causes in another (notifications, tasks, emails, payment webhooks) carry schema-level idempotency keys so a duplicate write hits a unique constraint instead of double-firing.
Monitoring & incident response
Application errors, slow queries, and cron failures forward to a central observability surface (/admin/observability). Google Cloud supplies seven public uptime checks, Cloud Run error-log policies, a monitoring dashboard, and a proved email channel. Alerts also fan out to the operator with PII-safe payloads. A dead-man’s switch tracks every wrapped cron and alarms when an expected run is overdue. An external heartbeat monitor also checks whether the watchdog itself is still running.
Live and resolved incidents are posted at /status. For business-impacting events affected customers are also contacted directly. Reporting target: confirm receipt of a vulnerability report within 24 hours, status update within 5 business days.
To report a vulnerability or suspected incident, email security@bsns.cc. The endpoint and policy are also published at /.well-known/security.txt per RFC 9116.
Backups & continuity
Production Cloud SQL retains seven days of point-in-time recovery logs and 14 automated daily backups, with deletion protection. A separate nightly job exports both the business and identity databases, age-encrypts them before upload, and writes ciphertext to Cloudflare R2. A current-source export passed archive, privacy, row-count, and hash guards on August 14, 2026.
Recovery objectives. Target RPO is at most one hour through Cloud SQL, or at most 24 hours if GCP-native recovery is unavailable. Target database-restore/application-rollover RTO is one hour. A pre-migration restore completed in 3 minutes 25 seconds on May 25, 2026. On August 14, the current age-encrypted R2 artifacts passed a full cross-vendor PostgreSQL 17 restore and validation sequence in under 10 technical minutes, excluding human escrow unlock and incident-decision time. Cloud SQL-native recovery was posture-checked, not restored into a second Cloud SQL instance.
For the “what if the operator gets hit by a bus” question, see Continuity & bus-factor.
Change management
Code ships through a fast-forward-only branch sequence: dev → master. The GCP release command refuses a dirty checkout or anything other than exact origin/master, proves the currently served release is contained by trunk, preserves live activation posture, and audits an image-only infrastructure plan.
Every reviewed release runs the required test and audit suite locally, including check:api-auth (every API route declares its auth posture), check:env (no environment-contract drift), check:rls-carveouts (no new tenant-keyed table without RLS), and check:security-invariants (catch-all), plus dependency advisory and registry-signature checks. GitHub Actions mirrors useful checks when available but is not release authority. A pre-commit hook runs a fast audit subset on staged files.
Database migrations are forward-only via Prisma migrate deploy, run through the Cloud SQL Auth Proxy and a compatibility gate before any new revision serves. Destructive schema changes follow an expand → migrate → use → contract pattern documented in docs/environment-strategy.md.
Data portability & deletion
Workspace admins can export their data from Settings → Data export in each room. The archive contains JSON for included entities, flat CSVs for spreadsheet-friendly entities, a manifest.json with counts and schema version, and a README that names exclusions and redactions. Same envelope in every room, no proprietary archive format. Some binary artifacts, including executed contract PDFs from Documents, are downloaded separately rather than embedded in the current archive.
A workspace admin can schedule deletion from Settings → Close account. The next renewal is cancelled and the workspace becomes read-only immediately, followed by a 30-day undo/export window. An already-paid period is not prorated. Final deletion removes the Stripe customer and managed object-storage records, releases managed Telnyx numbers, detaches Plaid items and supported Stripe Connect accounts, and then purges business-data rows and customer-identity records. External failures are recorded for reconciliation. User-owned Gmail grants for identities that end with the workspace use the account-deletion revocation path. Google Calendar, Microsoft Outlook calendar, Apple iCloud calendar, Zoom, and native-voice SIP credentials remain documented manual follow-ups. The runbook is in docs/operations/tenant-delete.md.
For verbatim data-subject-rights requests under GDPR or CCPA, email privacy@bsns.cc. Response target: 30 days.
Sub-processors
Third parties that process customer data on our behalf are enumerated, with purpose, region, and DPA status, at /security/sub-processors. The list is maintained in source control; a change is a pull request.
Security questionnaire
A pre-filled response to the most common prospect security questions (CAIQ-aligned) lives at /security/faq. If you have a questionnaire your team is required to use, send it to security@bsns.cc and we’ll return it with answers cross-referenced to the relevant control on this page.
What we don’t have yet
Trust is built on what is true, not what we’d like to be true. The following gaps are real today and tracked in our risk register:
- Single operator. bsns.cc is currently run end-to-end by one person. Segregation of duties in the strict SOC 2 sense isn’t structurally possible yet; the compensating controls are the audit logs, the local release gates, and Bitwarden key escrow with documented recovery procedures.
- External penetration test. Engagement scope drafted but not yet contracted. We’ll publish the date here when it’s booked.
- SOC 2 Type 1 / Type 2. Groundwork in progress; no audit firm engaged yet. We’ll publish the auditor and target window here when both are confirmed.
- Database network path. Production currently uses Cloud SQL’s managed public connector path rather than a private-only endpoint. Connector enforcement is required, transport is encrypted-only, there are zero authorized networks, and access requires Google IAM plus database credentials.
- DMARC subdomain policy. The apex is enforced at
p=reject; pct=100. The remaining gap issp=none, which must be raised before delegating or sending from additional subdomains. - Hard-delete completeness. Deleting a business now removes Stripe customer and managed object-storage records, managed Telnyx numbers, Plaid items, supported Stripe Connect accounts, and user-owned Gmail grants for identities that end with the workspace before identity deletion, with failure evidence or replay markers. Google Calendar, Microsoft Outlook calendar, Apple iCloud calendar, Zoom, and native-voice SIP credentials remain documented manual follow-ups.
Contact
Vulnerability reports, security questions, incident inquiries: security@bsns.cc.
Privacy and data-subject-rights requests: privacy@bsns.cc.
General support: /help/support.