Tin Hat / Run a server / What you're trusting
What you're trusting
What runs on your server, what leaves your home, what we can and can't see, and what happens if Tin Hat goes away. Plainly, so you can decide.
What runs on your server
Your server is a small Debian 13 system running well-known open-source parts in containers, plus Tin Hat's own manager (the setup page and the dashboard):
| Part | What it does | Licence |
|---|---|---|
| Synapse | The chat server (Matrix): accounts, rooms, messages | AGPL-3.0 |
| PostgreSQL | The database Synapse keeps everything in | PostgreSQL Licence |
| LiveKit | The call server: passes everyone's sound and video along | Apache-2.0 |
| Caddy | The web server: HTTPS, the app, the dashboard | Apache-2.0 |
| Tin Hat Web | The Tin Hat app, served by your server for browsers | Tin Hat's own |
| The manager | Setup, the dashboard, updates, backups | Tin Hat's own |
Every version is pinned: the exact container images are listed by their digest in the server's /opt/tinhat/images.lock, and an update changes them only through a signed release. (With Docker Compose, the manager's own image is the one exception: it comes by tag from GitHub's registry.)
Installed with the Linux script, the same parts run in Docker on your own Debian or Ubuntu machine, and the machine itself stays yours: its name, network, SSH, firewall and system updates (what the script changes).
What leaves your home
- To the Tin Hat names service (only for a server reachable from anywhere): your server's name, your home's public address, the Tin Hat Server version and the results of the outside check, with the times. Kept 90 days to handle abuse reports.
- With your own domain, nothing is registered with the names service. Your server looks your domain up at public DNS resolvers (1.1.1.1 and 9.9.9.9) to show you where it points; calls your DNS provider's API with the token you gave it (the token stays on your server, and in its encrypted backups); asks the Tin Hat names service for your home's public address (if it doesn't answer, a public "what's my address" service instead: 1.1.1.1's
/cdn-cgi/trace, thenapi.ipify.org); and asks the names service for the check from outside. That check connects back only to the address the request came from, with your domain as the name, and the names service logs it (your domain and that address) for 90 days. Behind your own reverse proxy there's no token at all. - To Let's Encrypt: your server's name, to issue its certificate. Like every certificate on the web, it's published in the public certificate logs, so your server's name is public, and like any name on the internet anyone can look up the address it points to.
- To GitHub, where releases are published (and our mirror, if GitHub doesn't answer): a request for the latest release once a day, so they see your server's address.
- To Debian (or Ubuntu), Docker Hub and GitHub's container registry (ghcr.io): downloads for installing and updating (they see your address, like any download).
- For features people use: link previews fetch the page a link points to (never addresses on your home network); GIF search asks Giphy, watch-party search asks YouTube, a Steam library import asks Steam and game covers come from SteamGridDB; notifications go through the push service of each person's browser or phone, encrypted for that device; servers you connect to or allow get what people share with them; a game-server panel or extra call relay (TURN) you add in the dashboard gets the requests it needs.
- Nothing else by itself. No analytics, no usage reports, no crash reports unless you send a support report yourself.
What we can't see
- Your messages and calls. They live on your server, not ours. Calls, direct messages and private rooms made in Tin Hat are also end-to-end encrypted between people's devices, so even your own server can't read them. Three kinds of room aren't, on purpose: public channels inside a space and your server's #general, so people who join later can read what was said before, and the guest room. They stay on your server.
- Your accounts, rooms, files and settings. They live on your server's disk, in your home.
- Your backups. They're encrypted with a password only you know. Nobody can open a backup without it: not you, not Tin Hat.
Your server's name
A name like crew.tinhat.me is a part of tinhat.me, which Tin Hat owns. That makes it free and needs no setup, but it means trusting us with it: whoever controls a name's records can point it somewhere else. We don't, and the names service keeps a log of every change. End-to-end encrypted messages stay encrypted either way, and your history stays on your server. But a name pointed somewhere else would send people's apps, and Tin Hat Web in their browsers, to a server that isn't yours: that's the trust you place in whoever runs the name.
If you'd rather trust nobody with it, use your own domain at setup: your DNS provider (Cloudflare, Porkbun, deSEC or DuckDNS) or your own reverse proxy handles the certificate, and nothing depends on tinhat.me. A Matrix server's name is part of every account, so choose it at setup; the server can move to another domain later (moving), but everyone then signs in again.
One honest caveat: certificates for tinhat.me names can only come through a DNS check that the names service answers. So whoever runs the names service could, in principle, get a certificate for your server's name (that's the power over DNS described above). A planned watch on the public certificate logs would show it. Your own domain avoids it.
How updates work
- Releases are published on GitHub, with a copy of the release list on our own mirror in case GitHub doesn't answer.
- Every release is signed with Tin Hat's release key (minisign, Ed25519), which never goes to GitHub. Your server checks the signature and each file's checksum before installing an update, so neither GitHub nor the mirror could slip anything else into a genuine server; with both answering, it takes the newest signed release. What you download and start yourself the first time (the image, the Windows installer,
install.sh) you can check against the same key; the Docker Compose edition's manager is a container image from GitHub's registry, picked by its tag, and what it installs after that is checked like everywhere else. The release key (minisign key ID2B53E5F91E971B14):RWQUG5ce+eVTK+HZgYoCViu7WY1nwnbLR8s54/zRQR0DLiACjVuh5Mkv - The Linux install script is signed with the same key (
install.sh.minisignext to it), carries the key inside, and checks the release the same way before installing it. You can check the script by hand withminisign -Vm install.sh -Pand the release key (how). - By default updates install at night (3–5 AM, your time) when nobody's in a call. You can switch that off and install them yourself.
- Before each update the server makes a safety copy (database and settings). If the new version doesn't start properly, it goes back to the copy by itself.
- Security fixes for the operating system install by themselves; if one needs a restart, it happens at night. On your own Linux machine, the operating system's updates and restarts stay yours.
Backups
Backups use restic: encrypted, deduplicated and checkable. They hold everything needed to bring the server back on another computer: the database, the server's identity, its settings and the files people shared. They go to a USB drive plugged into the server or a shared folder on another computer, every night; you can also download one. Test restore in the dashboard checks a backup without touching your server: it restores the database into a throwaway copy and counts people, rooms and messages. More in the dashboard guide.
If Tin Hat goes away
- Your server keeps running. It doesn't need us to start, to chat or to call.
- A tinhat.me name needs the names service to follow your home's address and to renew its certificate. If it stopped, your name would keep pointing at your home's current address but wouldn't follow a change, and the certificate would run out within about three months: from then on, apps outside your home couldn't connect. If the tinhat.me domain itself lapsed, the name would stop working, and friends outside couldn't find the server; people in your home still could.
- tinhat.me is registered until October 2027; the plan is to renew it well ahead of time.
- The names service is small and open source with the rest (
names/in the server's repository), so anyone could run it. - A server set up with its own domain keeps its name, its certificate and its public address without us: when the names service doesn't answer, it reads the address from a public "what's my address" service instead. Only the check from outside needs the names service.
Source and licence
Open source under the AGPL-3.0: Tin Hat Server, the names service and Tin Hat Web at github.com/TinHatLabs/TinHatServer; the Tin Hat app at github.com/TinHatLabs/TinHat.
Tin Hat is AI-built: the code is written with Claude (Anthropic's AI) and reviewed adversarially by a second AI model, directed and tested by its maintainer. Every change goes through automated tests and adversarial reviews. It has not had a professional security audit. How it's made.
Report a problem
Found a security problem in Tin Hat or Tin Hat Server? Write to security@tinhat.me, privately, before telling anyone else. Someone using a tinhat.me name for abuse: abuse@tinhat.me. For everything else, open an issue on GitHub.
Tin Hat can't read anyone's messages, and won't build a way to: there's no back door. What we can act on is what we run. A tinhat.me name used for abuse can be suspended, and child sexual abuse material reported to us goes to the National Center for Missing & Exploited Children (NCMEC). The rules for tinhat.me names say what's not allowed and what happens on a report.