Security by architecture

Documents are sensitive. The product is designed around that assumption.

Foldline has two modes. The private workspace is zero-knowledge: invoices are read and checked on your device and we store only data we cannot read. The standard workspace processes documents on our servers with private storage, short-lived access and automatic deletion.

Private workspace · zero-knowledge

Your invoices never reach our servers.

  1. 01
    Read on your device

    In the private workspace, PDFs are read by your browser. The invoice file is never uploaded to Foldline.

  2. 02
    Checked on your device

    Duplicate and arithmetic checks run in your browser against your decrypted invoice history.

  3. 03
    Encrypted before it is saved

    Each result is encrypted with AES-256-GCM before it leaves the browser. The key comes from a workspace passphrase (PBKDF2-SHA256, 600,000 iterations) that is never sent to us.

  4. 04
    Spreadsheets are not stored at all

    The paid-twice audit reads a CSV or Excel export in your browser and keeps nothing: no upload, no saved copy, not even an encrypted one.

  5. 05
    Unreadable on our side

    Foldline's database holds only ciphertext. A leaked database, a curious employee or a subpoena gets data we cannot decrypt.

What zero-knowledge does not cover
  • If you lose the passphrase, the data cannot be recovered. There is no reset, by design.
  • Scanned, image-only PDFs are not supported in the private workspace yet.
  • You still rely on the code our site serves. We protect our hosting and code accounts with two-factor authentication and lock the page down with a strict Content Security Policy (it can only talk to Foldline, and refuses to open if that policy is missing), but this is the honest limit of any browser-based encryption.
Open the private workspace

Standard workspace

Private document storage

Original files are stored in a private Supabase Storage bucket. Browser access uses short-lived signed URLs rather than permanent public links.

Database isolation

Supabase Row Level Security and authenticated server routes restrict access to account and workspace records.

Server-only credentials

Service-role and other privileged credentials stay on the server and are not exposed through public environment variables.

Human review

Extracted values and checks are treated as review aids, not as automatically trustworthy decisions.

Bounded file access

Document processing uses short-lived access to retrieve private files instead of making customer documents publicly addressable.

Private pilot inbox

Pilot requests are stored in a table with no anon or authenticated client access. The founder admin view reads them only after a server-side user-ID allowlist check.

Security contact

For now, security concerns can be submitted through the contact page. A dedicated monitored security mailbox and responsible-disclosure process will be added before broader production use.