Skip to content
itsF4LCONPublic

About

One-time encrypted secret links. The key never leaves the URL fragment; the secret burns after one read.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postburn

Send a secret that burns after one read. Part of the Postblind privacy suite.

The browser encrypts the secret, the server stores only data it can't read, and the link works exactly once.

How it works

  1. Seal. The browser makes a random 256-bit key and encrypts the text with AES-256-GCM (WebCrypto). It sends only the ciphertext, the IV and an expiry time to POST /api/secret.
  2. Link. The server returns an id. The link is /s/<id>#<key>. Browsers never send the part after # to the server, so the server never sees the key.
  3. Open. The reveal page doesn't contact the server when it loads, so link previews in chat apps can't burn the secret. When the reader clicks Open and burn, POST /api/secret/<id>/open returns the ciphertext and deletes it in the same step. The browser then decrypts it.
  4. Expire. If nobody opens it, an alarm deletes it after 1 hour, 1 day or 7 days.

Passphrase (optional)

The key becomes SHA-256(link key ‖ PBKDF2-SHA256(passphrase, salt, 600k)), so a reader needs both the link and the passphrase. Links that need a passphrase end in ~p, so the reveal page asks for the passphrase before opening. A wrong passphrase still burns the secret.

Server design

  • A Rust Worker (src/lib.rs) validates requests and serves the static pages in public/.
  • Each secret is its own Durable Object (src/secret.rs), with an id from unique_id(). A Durable Object handles one request at a time, so even when several requests race, only one reader gets the secret.
  • The server doesn't store IP addresses, user agents or access times. Workers observability is off. Rate limiting uses the Workers Rate Limiting binding, which keeps its counters at the edge and never writes them to our storage.
  • Every response sends Cache-Control: no-store and Referrer-Policy: no-referrer, and pages get a strict CSP (public/_headers).

Threat model

Protects against:

  • The server operator, Cloudflare, or anyone who seizes the storage: they get only ciphertext and never the key.
  • Link previews and scanners: the page needs a click before it opens the secret.
  • Reading the secret twice.

Doesn't protect against:

  • Someone who gets the full link before the recipient opens it: they can read it once, and the recipient will then see it's gone. Use a passphrase sent another way to protect against this.
  • A compromised device on either side.
  • A malicious server operator who changes app.js to leak keys. This is the usual limit of web-based encryption.

Limitation: Durable Objects store data on Cloudflare's disks. The ciphertext exists on disk until it is opened or expires. It is useless without the key, but this isn't the RAM-only design Postblind aims for.

Develop

wrangler dev

.dev.vars sets ALLOW_TEST_TTL=1, which also accepts ttl: 60 so you can test expiry. Production never sets it.

Deploy

wrangler deploy

This serves the app on burn.xivlabs.tech. Change routes in wrangler.toml once postburn.app is registered.

About

One-time encrypted secret links. The key never leaves the URL fragment; the secret burns after one read.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages