Security at Publishedt
This is how Publishedt protects your account and your data.
Signing in
- Sign-in links work once and expire after 15 minutes. Publishedt stores only a hash of each link, which is useless for signing in even if the database leaks.
-
Sign-in requests are rate limited. Each limit allows a burst, then refills one request at a time:
- One email address from one network address: 3, then one every 5 minutes.
- One email address from any network address: 20, then one every 72 minutes.
- One network address, for any email address: 10, then one every 90 seconds.
- The whole service: 300, then one every 12 seconds.
- You can sign in with a passkey. Publishedt stores only its public key, and a passkey must confirm it's you on your device, so it skips the authenticator code.
- Each passkey challenge works once and expires in 5 minutes. A passkey whose use count went backward, a sign that it was copied, is rejected, and Publishedt emails you.
- Passkey sign-ins are limited per IP address: 20 at once, then 10 a minute.
- Two-factor authentication can guard sign-in links. Your authenticator app's secret is sealed with AES-GCM and bound to your account. A code works once, and Publishedt accepts the one before and after it for clock drift.
- Each sign-in allows 5 tries at a code, and each account allows 10, then one more every 6 minutes.
- Every 5 wrong codes block code entry for 15 minutes, doubling each time up to 24 hours. Publishedt keeps that count in its database, where a restart doesn't reset it. The first lock emails you.
- Adding or removing a passkey, or turning on two-factor authentication, requires a code from your authenticator app. With two-factor authentication off, it requires a sign-in from the last 10 minutes instead. Turning two-factor authentication off requires a code from the app or a recovery code. Each change emails you.
- Until the code checks out, a sign-in link starts no session. A second cookie, which expires after 10 minutes, lets its holder try a code and nothing else.
- Recovery codes are stored only as hashes. Each works once, and making a new set retires the old one.
- Your session is a record on the server. Your browser stores only a signed session ID, not your data. Signing out ends the session on the server, and any copy of the cookie stops working with it.
- You can see every device you're signed in on and end any of them. Sign out everywhere ends all of them.
- Sign out everywhere leaves your passkeys. Remove any you don't recognize in Account.
- Rotating IPv6 addresses don't get past a limit. Sign-in, API token, and ping limits count an IPv6 /64 once, because one host is often given a whole /64.
Your data
- Workspaces are isolated by the database. Postgres row-level security keeps each workspace's rows out of reach of every other workspace.
Feeds
- Publishedt only fetches public web addresses. Before connecting, it blocks private, internal, and cloud-metadata addresses, including after redirects.
- A private feed's address and login are encrypted, never shown again after you save them, and never sent to another site.
- Feed images load through Publishedt, so the sites they come from never see who's looking.
Destinations
- Destination logins are encrypted. Publishedt requests the narrowest access each service offers for posting.
- Publishedt requests permission to read an account's notifications only when you turn on collecting replies, likes, and reposts for that destination. It reads notifications only while collecting is on. Some servers only offer broad permissions, and on those, the permission to post already includes reading.
- Each login is sealed with AES-GCM under a rotating key ring, bound to its row. A sealed login copied to another row won't open.
- Outbound webhooks go only to public https addresses, and every request is signed so your server can tell it came from Publishedt.
- The signature is one header you can check. Publishedt-Signature is
t=<unix>,v1=<hex>, wherev1is the HMAC-SHA256 of"<t>."followed by the request body, keyed with your webhook's secret. - Publishedt never reposts on its own. Each post includes an idempotency key where the platform honors one. Where a platform can't confirm a post (Discord, Telegram, and Micropub always, and Mastodon and Matrix once their key has expired), it shows as Not confirmed instead of being resent. You choose whether to post it again.
- Each Mastodon or Bluesky account, Discord webhook, Telegram chat, Matrix room, Micropub site, and repository branch connects once per workspace. Connecting one a second time is rejected.
API tokens
- API tokens are stored only as hashes, so nobody at Publishedt can read one.
Payments
- No card details reach Publishedt's pages. The checkout page gets a public client token and a transaction ID the server created, or one named by a payment link from Publishedt's payment provider.
- Payment webhooks are verified before they count. Each includes a signature checked against a secret only Publishedt and the provider have, and one whose timestamp is more than 5 minutes off is rejected.
- A checkout includes a token the server signed, which ties the subscription to the workspace that started it.
- The key that signs it is derived from the server secret that also keys private feed fingerprints, so rotating that secret rotates this key too.
Staff access
- The operator admin is reachable only from a private network. It's a separate site with its own sign-in, session cookie, and signing secret, and a customer's session never works there.
- Staff sign in through a single sign-on provider, and only an email on the staff list gets a session. A session expires after 12 hours at most. The admin checks it with the provider each time its access token expires, so disabling someone there ends their access within that token's lifetime. If the provider can't be reached, the session continues and the check is retried every 2 minutes until it responds, or until the 12 hours end. Disabling someone on the staff list ends their access on their next request.
- A break-glass password, shared by staff, exists for a provider outage. Every action taken in a session it started is marked as break-glass in the audit log. The changelog's command line, for when the admin can't be reached, requires a staff email and a reason, and its changes are marked as break-glass too.
- If you lose your authenticator app and your recovery codes, staff can remove two-factor authentication only after matching your billing customer at Publishedt's payment provider, never on an email alone. It takes effect 7 days after Publishedt emails you, and that email's link cancels it. Signing in with the app or a recovery code during those 7 days cancels it too.
- Every change staff make to a workspace, its billing, or the published changelog requires a written reason. The audit log stores it with who made the change, what changed, and when.
Logs and headers
- Sign-in tokens never reach the access log. It records the path of a request, never the query string.
-
Every response includes security headers:
- A content security policy that includes frame-ancestors 'none'.
- X-Content-Type-Options: nosniff.
- Referrer-Policy: no-referrer, which keeps Publishedt's addresses from leaking to the sites it links to.
- HTTP Strict Transport Security (HSTS).
Contact
To report a security problem, contact security@publishedt.app. Contact details are also at /.well-known/security.txt.