Linktarythe notary for links

Security

Linktary is a signed-link shortener: every destination is checked at creation time, and the resulting verdict is issued as an Ed25519-signed certificate anyone can verify independently against our published public keys. This page documents how data moves through the system, what we keep, who else touches it, and what we do — and don't — protect against.

Data flow

  you ──TLS 1.3──▶ linktary.com (Cloudflare Worker)
                        │
        ┌───────────────┼────────────────┐
        │               │                │
   create link    verification     click (redirect)
        │               │                │
        ▼               ▼                ▼
  dest encrypted   fetches chain    1 indexed D1 read
  AES-256-GCM      (≤5 hops,        decrypt, 302
  per-link nonce   8s, 1MB cap)
        │               │
        ▼               ▼
  D1 (encrypted    verdict + chain report
  at rest)         stored WITH the link
                        │
                        ▼
                  public trust report
                  linktary.com/v/<code> (HTML + JSON)

Encryption boundaries: the destination is decrypted only inside the Worker isolate at the moment of use (creation, verification, redirect) — never written to logs, never exported in bulk. The verification pipeline receives the destination blob plus a job nonce and returns a verdict plus a chain report; no user id, no account handle, no email flows through verification. A breach of verification logs cannot map destinations back to users, because the mapping was never there.

What we store, and for how long

DataKeptDeleted
Link records (encrypted destination, verdict, chain)While your account exists, or until you delete the linkSoft-deleted immediately (410); purged from active queries; hard-deleted 90 days after deletion by a daily purge (encrypted destination, chain, signals — the whole row)
Account emailWhile your account existsOn account closure
Billing identifiers (Stripe customer/subscription ids, plan state)While the account exists; only for Pro subscribersOn account closure. Payment instruments live at Stripe, never here
Sessions (token hashes only)30 daysExpire automatically; lazily deleted on lookup
Magic-link tokens1 hour, single-useConsumed on use; expired tokens are inert
Rate-limit countersMinutes (sliding windows)Expire with the window
Abuse reportsUntil reviewed and resolvedOn resolution; resolved reports hard-deleted after 90 days
Visitor IPsNot logged or stored. Seen transiently for abuse rate-limiting; persisted only as salted, non-reversible hashes inside the short-lived counters aboveNothing to delete — no address is ever written to disk
User agents, referrersNever read or storedNothing to delete

Subprocessors

Four:

Threat model

Protects against

Does not protect against: a compromised Cloudflare account. Whoever controls the Cloudflare account can read Worker secrets, including the master encryption key. This is the honest boundary of any Cloudflare-hosted system that encrypts at the application layer, and we state it here rather than in a footnote.

The path to stronger: per-customer key-encrypting keys on the enterprise tier (customer-held KEKs via envelope encryption), so a compromise of our Cloudflare account no longer decrypts your destinations. The schema already reserves the key-version column — it's a key-management upgrade, not a redesign.

Authentication

Email magic links — no passwords to phish or breach. Sessions are httpOnly + Secure + SameSite cookies; the sessions table stores token hashes, never raw tokens. Sign-in responses are identical for known and unknown emails (no account enumeration).

If we get a verdict wrong

The written remedy (the full version is §3 of the terms of service): report it at /report-abuse (reference ID issued, reviewed within 24 hours) — we re-verify the destination immediately, block the host or revoke the link when the report checks out, and notify the reporter of the outcome. Link owners don't wait for us: POST /api/links/<code>/revoke retires your own link instantly. The service is free, so the remedy is the incident path itself — prompt re-verification, containment, and an honest account — not monetary damages.

Coordinated disclosure

Found a vulnerability? Email hello@linktary.com with "security" in the subject, or file it at /report-abuse. We acknowledge promptly and publish what we fixed once it's fixed. Please give us a reasonable window before any public disclosure.

For the longer essay behind this page — why we resolve the zero-knowledge-vs-verification tension in the open — read The honest crypto design.