Areas we serve

Self-Hosted OneTimeSecret: Send the Link, Not the Password

Someone pasted the new root password into Slack. It is now in the channel, the email notification, the phone preview, and whatever export you run next year. A one-time link is the boring fix: the chat gets an address, the password stays somewhere else, and the second person to open it finds nothing.

OneTimeSecret (onetimesecret/onetimesecret) is that somewhere else. MIT license, about 3,000 GitHub stars, docs at docs.onetimesecret.com. The GitHub repo is a read-only mirror. Issues and merge requests live on GitLab. You can try the public site at onetimesecret.com with no account. You can also run the same app yourself, which is the version worth using for a password you would not put in a ticket.

What the link actually does

You paste the secret, pick how long it may sit unread, and optionally set a passphrase. The app gives you a link and a receipt. It does not show the secret back to you. Send the link in chat or email. If you set a passphrase, send that by a different path. The service's own email, when you use it, carries the link and names the sender. It does not include the secret or the passphrase.

Opening the page does not burn the secret. A chat app that previews the URL is fetching the page, and a bare GET is safe. The recipient has to confirm the reveal. That click returns the content once and deletes the stored secret. If they never come, the expiry deletes it. If you change your mind, burn it from the receipt. Burning asks for the passphrase when you set one.

That is the whole product. It is not a password manager. Next week the link is dead on purpose. Keep your own copy if you still need the value.

Why the public site is the wrong disk

The stored secret is encrypted, and the instance key is what makes it readable. The project is plain about this: lose the SECRET you generated and existing secrets cannot be recovered. Whoever runs the server holds that key until the link is revealed, burned, or expired. onetimesecret.com can keep a regional hostname. The secret still sits on their side until someone opens it.

Self-hosting moves that key, the Redis store, and the logs onto a machine you control. A small team handing out a VPN password or a recovery code for an hour does not need the public site in the middle.

A small install, then lock it

The quick start is two containers. Redis sits on a private Docker network with a password and no published port. The app image is onetimesecret/onetimesecret, pinned to a release tag (the README's example was v0.26.14). It listens on port 3000 and speaks plain HTTP. It does not terminate TLS. Put Caddy or nginx in front with a real certificate, and set the host so the links it prints are https, not an IP on port 3000.

Generate SECRET before anyone uses it, chmod the file, and back it up. Replacing it later is not a repair. It makes the secrets already stored unreadable. Create the first admin with the colonel role from the ots command in the container. The generated password is printed once.

Simple mode is Redis and that key. It is enough for "paste a password, send a link." Full mode adds accounts: SQLite by default, so the database file has to live on a volume or a restart wipes the users, with PostgreSQL as an option. Background jobs, if you turn them on, want RabbitMQ. The fuller stack is where MFA and passkeys show up. Do not start there if all you needed was a link that dies.

Good fit / skip it

Good fit: a password, a token, or a recovery code that should exist for one recipient and then disappear from the channel history.

Skip it: a vault, a shared notebook, or a threat model where the server operator must be unable to read the secret at all. This app encrypts with a key the server holds. If that is not acceptable, you want a different design, not a harder passphrase on this one.

Bottom line

OneTimeSecret keeps the password out of the chat log by putting it behind a link that works once. Self-host it so the key that can still read that password is yours, Redis is not on the internet, and the link your colleague clicks is a name you control.

Talk with Swift Host if you want that pair of containers on a Canadian VPS, with TLS in front, instead of leaving a one-hour root password on the public service.

Tags:
  • OneTimeSecret
  • Passwords
  • Redis
  • Docker
  • Self-Hosted

Need Help With Your Hosting?

Tell us about your application — we respond within 1 hour with honest recommendations.