All case studies

Case study / Security & privacy

A SaaS that cannot read its own data

Zero-knowledge encryption in the browser, across four pricing tiers and enterprise teams.

The problem

Compliance teams keep their most sensitive material in a GRC platform: control gaps, evidence of weaknesses, and plans to fix them. If the vendor is breached, every customer is breached with it. Contracts and access policies do not change that.

The goal was stricter than a promise not to look. The platform had to be unable to read customer assessment data, by architecture.

Threat model

The server never sees
  • Plaintext assessment responses
  • Encryption keys, at rest or in transit
  • Gap analysis and remediation detail
The server does see
  • Ciphertext
  • Account, tier, and billing records
  • Organization and team membership for access control
BROWSER · TRUSTEDPLATFORM · CANNOT DECRYPTIdentitystable claimsPer-user saltunique per accountDerive keynever storedAssessmentplaintextEncryptin the browserCognito authtoken changes each loginAPI + databasestores ciphertext onlysign-in tokenkey, in memoryciphertexttrust boundary
The key is rebuilt in the browser on every session and never crosses the trust boundary. The only arrow into the platform carries ciphertext.

Constraints

  • Auth tokens change on every login, so a key cannot come from the session.
  • Four subscription tiers need four different storage modes.
  • Enterprise teams share data, and people leave teams.
  • One answer can change scores, gaps, and remediation items at the same time.

Key decisions

Decision 1

Derive the key. Never store it.

The encryption key comes from the stable parts of the user's identity plus a per-user salt. The browser rebuilds the same key in every session, so no key is ever written to disk or sent to the server. The server cannot read the data even if it wants to.

Decision 2

One storage adapter, four tiers

Free, Professional Lite, Professional, and Enterprise each use a different mode: plaintext local, encrypted local, encrypted cloud sync, and encrypted cloud with team collaboration. An adapter picks the right one at runtime. Features never check the billing tier, so pricing changes do not touch feature code. Local data lives in IndexedDB for capacity and predictable failures.

Feature codenever checks tierStorage adapterpicked at runtimetier from billingFreeplaintext · IndexedDBPro Liteencrypted · IndexedDBProfessionalencrypted · cloud syncEnterpriseencrypted · cloud + team
Billing touches one box. Moving a customer between tiers changes which storage mode the adapter returns, and no feature code changes.
Decision 3

An orchestrator for cascading updates

One control answer can change maturity scores, gap status, remediation items, and cloud sync. A debounced orchestrator runs these stages in a fixed order: one user action, one job, each stage feeding the next. Items tied to a closed gap resolve themselves.

Decision 4

The organization owns the data

In the enterprise tier, records belong to the organization, not to a person. The model separates the owning organization (fixed), the admin contact (can change), and the original author (audit trail only). Access comes from team membership. When someone leaves, the work stays.

Results

  • The server stores only ciphertext for assessment data.
  • One codebase serves four storage modes. A tier change is configuration, not a rewrite.
  • One workspace covers NIST CSF 2.0, NIST AI RMF, SOC 2 Type II, HIPAA, ISO 27001, and PCI DSS.

Tradeoffs

Zero-knowledge has a price. The server cannot search or analyze assessment content, and support staff cannot inspect a customer's data to debug it. Both are accepted on purpose, because they are the point of the product.