Repository navigation
FAQ
What is HiddenForge, in one sentence?
A hardened container that turns a web app you already run into a Tor .onion service, without exposing the server.
Do I need to know Tor to use it? No. Point it at your app with one environment variable and it handles the Tor side. To trust it, read How It Works and The Security Model.
Docker or Podman?
Both. There's a compose file for each. Rootless Podman needs slightly different capabilities, which the Podman compose file already sets. Two things are Podman-specific, and the README's Podman section walks through both: run it with Docker Compose on the Podman socket (the only way every resource limit is applied), and enable linger plus podman-restart.service once, or it won't come back after a reboot.
How long until my address is live? Usually under a minute on a fast connection, up to six minutes on a slow one. Tor has to bootstrap fully and publish the service. The container reports "healthy" only when it's reachable, so wait for that.
Can I choose my .onion address?
Yes, optionally. The image ships a vanity-prefix generator (hiddenforge vanity --prefix PREFIX --keys DIR, or run the image with vanity --prefix PREFIX --out DIR); generate the key offline and put it in your key folder before first start. See Backing Up Your Onion Address.
Will upgrading change my address? No, as long as you keep your key folder. Upgrades never touch existing keys. Moving from 2.1.x to 3.0.0 is a drop-in: same compose file, keys, address and commands, and going back to 2.1.6 keeps the address too (see What Changed in 3.0.0). See Upgrading Safely.
Can I run more than one site?
Yes. Each *_TOR_SERVICE_HOSTS variable is its own independent .onion. See Running Multiple Services.
Can I use this to browse anonymously? No. It publishes a service; it is not a client proxy. The SOCKS proxy is deliberately off.
Is my server's IP hidden from visitors? Yes, that's the core purpose. Visitors reach you through Tor's rendezvous mechanism and never learn your server's address. But this only holds if you don't undo it; see OPSEC: Mistakes That Deanonymize You.
Does it make my service a Tor relay? No. It's configured to never relay or exit other people's traffic.
Should I turn off Docker's seccomp (seccomp=unconfined)?
No. 2.0.4's compose files set it, and 2.1.0 removed it. The runtime's default profile and Tor's own sandbox stack, and the shipped compose files keep both. See The Security Model.
What if the guard monitors don't start?
Your service still works on Tor's built-in vanguards-lite protection. It's degraded, not down, and HiddenForge keeps retrying: after repeated quick crashes the monitors pause for 10 minutes and then start again. hiddenforge status reports vanguards as not ready until they are back.
Is this good enough for a high-risk, long-lived service?
It's a strong default, but guard protection is Tor's vanguards-lite, which pins no layer-3 guards. For a long-lived, high-risk service 3.0 offers full vanguards as an opt-in (HIDDENFORGE_VANGUARDS: full, which requires TOR_SANDBOX: "0", so it gives up Tor's own seccomp sandbox). Read the "limits" section of The Security Model before betting something serious on it.
How do I know the image is really yours and not tampered with?
Verify the signatures (post-quantum ML-DSA-65 and a YubiKey hardware key; 3.0.0 and 2.1.0 to 2.1.6 publish only the ML-DSA half, so hiddenforge verify-image needs --allow-pq-only and reports complete: false) and, if you want, reproduce the build yourself. See Verifying the Image.
Where does it get published?
The maintainer's own registry at sambent.dev/sam/hiddenforge, and Docker Hub at doingfedtime/hiddenforge. Both serve the identical digest: for 3.0.0 the index sha256:5024c341017525b404882e4501c0181eeaddefa3ebab791129a4bb8c893b895b, covering linux/amd64 and linux/arm64.
Can I get a shell in the container?
No. The 3.0.0 image holds Tor, its libraries, the hiddenforge program and the vanity generator, on Docker's minimal static base, and nothing to run a shell with. docker exec <container> sh is refused with a message pointing to hiddenforge <command>. The commands the 2.x docs showed (su-exec tor cat ..., hiddenforge ..., the healthcheck) still work. See What Changed in 3.0.0.
Can I keep the service key encrypted on disk?
Yes, opt in with hiddenforge setup --encrypt-keys. The key is sealed on the volume (AES-256-GCM, scrypt) and decrypted into memory at each start. It protects a volume, disk or backup taken while the service is stopped, not a running host or a passphrase kept beside the volume. hiddenforge unseal-keys turns it off again.
Can I limit who reaches my service?
Yes, opt in with client authorization: hiddenforge client-auth add --name myapp --client alice, then restart the container. Only clients holding a key can find the service.
Something's broken. Where do I start?
hiddenforge status --json: it says whether the service is ready and, if not, why. Container logging is off by design, so docker compose logs shows nothing. Then Troubleshooting.
Start here
Older releases
Going deeper
- The Security Model
- Verifying the Image
- Reproducing the Build
- The hiddenforge CLI
- Rootless Podman
- Backing Up Your Onion Address
- Upgrading Safely
- Running Multiple Services
Help