Skip to content

Releases

v2.0.0

Choose a tag to compare

@nbwpuk nbwpuk released this 12 Oct 16:38

Secrets are now encrypted in the browser. The server never has the key and cannot read any secret.

Breaking changes

  • Database schema. Import sql/schema.sql again. It drops and recreates the secrets table.
    Existing secrets are deleted, because the new code cannot read rows that the old server key encrypted.
  • Config. master_key is no longer used. Remove it from the config file.
  • JavaScript is required to read a secret, not only to create one.

Changes

  • The browser makes a random 256-bit key, derives an AES-256-GCM key with HKDF-SHA256, and sends only ciphertext.
    The key is the part of the share link after #, which browsers never send to a server.
  • A passphrase is mixed into the browser key and also stored as an Argon2id hash on the server,
    so the incorrect-attempt limit still deletes the secret.
  • Create and reveal are JSON endpoints (POST /secrets, POST /s/{token}) driven by the page script.
  • Requests for a host name other than base_url redirect to it, and public pages carry a canonical link.
  • The create form defaults to 3 views.
  • A corner ribbon and a footer link point to the source code.
  • README rewritten for self-hosters, with a section on what the design does not protect against.
  • New tests/crypto.js runs the browser encryption code in Node.