Skip to content

What Changed in 3.0.0

Sam Bent edited this page Dec 3, 2026 · 3 revisions

What Changed in 3.0.0

3.0.0 is a drop-in replacement for 2.1.x. The compose files, the key volume, your *_TOR_SERVICE_HOSTS lines, the onion address and the commands you already run all work as before. An upgrade from 2.1.6 and a rollback back to it were both tested with the same key. What changed is inside the image: 40 MB instead of 107 MB, with no shell or Python in it.

The full record is in the CHANGELOG.

Why

2.1.x was Alpine plus Python. Each time Alpine shipped a security update it removed the old package from its index, the pinned build stopped resolving, and a release was needed to catch up. 3.0 removes the cause: on Docker's minimal static base the image holds Tor, the libraries Tor links, one small binary and the vanity generator, built from inputs the project archives and verifies.

2.1.6 against 3.0.0

Area 2.1.6 3.0.0
Base Alpine plus Python Docker Hardened Images static, used unchanged, plus one layer holding Tor, its libraries and the hiddenforge program.
Size 107 MB 40 MB
Vulnerabilities Python and its libraries counted At release, trivy and grype reported 0 findings at every severity, on both architectures. CI fails a build on any finding and scans again daily.
Tor 0.4.9.15 0.4.9.17, compiled from Tor Project's release tarball after its signature and hash are checked. 0.4.9.17 no longer trusts the bastet directory authority's keys, removed after a possible compromise. The relay and directory-authority code is compiled out.
Runtime Python scripts One Rust binary: the entrypoint, the in-image CLI, the healthcheck, the vanity wrapper and the guard monitors.
Guard monitors The Vanguards Python addon Native bandguards and rendguard, checked against the Python original on the same control-port traffic. Tor's vanguards-lite stays pinned on.
torrc Byte-identical to 2.1.6 for the same environment.
Confinement Capability drop, seccomp, Tor's sandbox The same, plus Landlock on the supervisor and a stricter Landlock domain for each helper. No core dumps and no ptrace attach for any HiddenForge process. The supervisor no longer holds CAP_KILL.
Build Pinned apk packages From a verified input archive, with no network in any build step. Two clean builds gave byte-identical images. See Reproducing the Build.

What you have to do

3.0.1 changed the in-container commands; see What Changed in 3.0.1.

Usually nothing. Pull the new image and recreate the container. The one visible difference is that docker exec <container> sh fails with "executable file not found", because the image has no shell. Use hiddenforge <command>. hiddenforge ... and the healthcheck the shipped Docker compose file runs answer as before.

Opt-in features

All four are off by default.

Feature How Notes
No-root mode hiddenforge setup --no-root The container starts as the tor user with no capabilities. Nothing runs as root, even at start-up. doctor recognises it.
Full vanguards HIDDENFORGE_VANGUARDS: full and TOR_SANDBOX: "0" Pins 3 layer-2 and 8 layer-3 guards, kept on the key volume. It needs the Tor sandbox off, and the container refuses to start otherwise.
Client authorization hiddenforge client-auth add|remove|list, then restart From the first client on, the descriptor is encrypted to the clients' keys, so the address alone no longer reaches the service. The client's private line is printed once and never stored.
Key encryption at rest hiddenforge setup --encrypt-keys (with --passphrase-file) The service key is sealed on the volume (AES-256-GCM, scrypt) and decrypted into RAM at each start. An existing plaintext key is sealed on first 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.

There is also an offline setup wizard, wizard/hiddenforge-wizard.html, one file you open from disk. It makes no network request and writes what hiddenforge setup writes for the same answers.

Fixes

  • Under the shipped Podman file the <name>.onion file is now written to the key volume, and podman exec <container> hiddenforge show and doctor work as root.
  • hiddenforge verify-image <repo>@sha256:<digest> --skip-registry now compares the digest you give it with the signed one. Before, any digest after the @ was accepted. 2.x has the same defect.
  • restore and decrypt-key refuse a file that was never encrypted. Before, someone able to replace a backup could have a key set of their choosing installed without the passphrase. 2.x has the same defect.
  • restore reports the real encryption mode of a gpg backup instead of calling every one AEAD.
  • backup and encrypt-key refuse a key that is a symbolic link, by name, instead of skipping it and answering ok.
  • A key folder under key encryption at rest, holding only the sealed hs_ed25519_secret_key.enc, can be backed up and restored. Before, backup refused it as holding no key.
  • decrypt-key --require-aead refuses an envelope that is not AEAD. Before, it accepted the flag and ignored it.
  • setup --json reports onion_port from a --service mapping's own port.

Rolling back

Put the 2.1.6 image back with the same volume and the address is unchanged. One exception: 2.1.6 cannot read a sealed key. If you turned on key encryption, stop the service and run hiddenforge unseal-keys --keys ./tor-keys --name myapp --passphrase-file ./key-passphrase.txt first, then remove the passphrase lines from the compose file. Back the passphrase up separately: without it a sealed key cannot be recovered.

Signing status and verification

3.0.0 is signed with ML-DSA-65 only, as 2.1.x is. There is no hardware (SSH-FIDO2) signature yet; one may be added later over the same digest without a new image. hiddenforge verify-image verifies the ML-DSA half and refuses by default because the hardware half is missing; pass --allow-pq-only to accept it, and the result reports complete: false.

The release is a two-platform index (linux/amd64 and linux/arm64), sha256:5024c341017525b404882e4501c0181eeaddefa3ebab791129a4bb8c893b895b, served identically from sambent.dev/sam/hiddenforge and doingfedtime/hiddenforge. Verify from master, not from the v3.0.0 tag: signatures are committed after the tag they sign. See Verifying the Image and Reproducing the Build.

Clone this wiki locally