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
| Data | Kept | Deleted |
|---|---|---|
| Link records (encrypted destination, verdict, chain) | While your account exists, or until you delete the link | Soft-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 email | While your account exists | On account closure |
| Billing identifiers (Stripe customer/subscription ids, plan state) | While the account exists; only for Pro subscribers | On account closure. Payment instruments live at Stripe, never here |
| Sessions (token hashes only) | 30 days | Expire automatically; lazily deleted on lookup |
| Magic-link tokens | 1 hour, single-use | Consumed on use; expired tokens are inert |
| Rate-limit counters | Minutes (sliding windows) | Expire with the window |
| Abuse reports | Until reviewed and resolved | On resolution; resolved reports hard-deleted after 90 days |
| Visitor IPs | Not logged or stored. Seen transiently for abuse rate-limiting; persisted only as salted, non-reversible hashes inside the short-lived counters above | Nothing to delete — no address is ever written to disk |
| User agents, referrers | Never read or stored | Nothing to delete |
Subprocessors
Four:
- Cloudflare — compute (Workers), database (D1), DNS, TLS termination. There is no analytics vendor, no third-party error tracker, no third-party script on any page.
- Stripe — subscription payments for the Pro plan only. Checkout and card handling happen entirely on Stripe's pages; card numbers never reach our servers. What Stripe tells us is identifiers (customer and subscription ids) and payment status, which we store on the account so the plan state is auditable. Free accounts never touch Stripe.
- URLhaus (abuse.ch) — threat-intel corroboration. When a (free) abuse.ch API key is configured, the destination URL is submitted to the URLhaus API at link creation or re-verification to check it against their malware-URL blocklist; without the key the provider is inert and nothing is sent. How abuse.ch handles submitted URLs is governed by their own policies.
- MailChannels — transactional sign-in email only
(magic-link delivery), sent from
noreply@linktary.com. No marketing email; the address is used for nothing else.
Threat model
Protects against
- D1 theft — backups, SQL dumps, stolen database credentials. Destinations are encrypted; sessions are hashes.
- Log leakage. No plaintext destination exists in any log, because we never write one.
- Insider curiosity. No dashboard shows plaintext destinations except the owner's own links.
- Traffic analysis by outsiders. Verification is identity-separated: watching the verifier teaches you nothing about who created what.
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.