Prepare the VM
The VM, DNS, ports and mail relay Tach needs before you install it, with notes for cloud VMs.
Built from commit f569b4a on Nov 14, 2026
This page is generated from the maintained install guide, GUIDE.md, at source commit fa247a8. Keep the signed guide that came with your installed release.
This guide installs Tach for one organization on one Linux VM. Your IT team owns and operates the VM. Nobody outside your organization needs access to it. You need only the public material linked here.
Checklist
Use this page as the record of your install. Each line links to the section that explains it. Everything here is done by your own IT team on your own systems.
Before you install
- A fresh Ubuntu Server 24.04 amd64 VM on a durable local disk. See The VM.
- A hostname with a DNS record, and ports 80 and 443 open. See DNS and ports.
- A mail relay that accepts mail from the VM. See Mail relay.
- An address that operator alerts go to, read by a person.
- A place off the VM for backup copies. See Azure Blob backup upload or Other off-host targets.
Install
- Package downloaded, and its signature and checksums verified. See Download and verify.
- Configuration written, with the alert address and the off-host backup target set. See Configure.
- Installed, and the first administrator signed in. See Install and Sign in as the first administrator.
sudo tach statusshows no warnings. See Safety warnings.- First keys moved to your secret store. See Install.
Prove it before people rely on it
- One alert email arrived in the alert inbox. See Operational notices.
- One backup shows
off_host: copied. See Back up. - One restore from the off-host copy, compared with the live data. See Restore.
- One computer connected and visible in Health. See Connect computers.
Roll out
- People added, by hand or from a roster file. See Manage people and keys from the command line.
- The agent installed on each person’s computer with your software-distribution tool. See Connect computers.
- Health shows every expected person and computer reporting.
Operate
- Someone reads the alert inbox and acts on notices. See Operational notices.
- Updates are reviewed and installed on your schedule. See Pending updates (no automatic install) and Upgrade and roll back.
- A restore is rehearsed again after each upgrade.
Before you start
Read the Licence.
The VM
Use a fresh Ubuntu Server 24.04 LTS, Linux amd64 VM with sudo access. Start
with 2 vCPU, 2 GB RAM and at least 20 GB of local ext4 or XFS disk, then measure
capacity for your usage and retention. The installer refuses any other Ubuntu
release or CPU architecture, and a data directory on any filesystem other than
ext4 or XFS. Tach keeps its database and its verified backups on that disk, so
use a durable one. Never use a network file share (SMB, NFS or a cloud file
share) or an ephemeral container layer. Do not install alongside an existing
Docker workload or web server: the installer owns Caddy’s config and the
tach-selfhost and tach-backup-copy systemd units.
The installer uses Ubuntu’s own Docker, Caddy, skopeo and minisign packages. You need no source checkout, Rust, Node, public container registry or hosted database. On a cloud VM, also read Cloud VMs.
DNS and ports
Choose a hostname for Tach, such as tach.your-company.example. Create a DNS A
record for it pointing at the VM, and an AAAA record only if IPv6 works.
Inbound, allow TCP 443 for HTTPS and TCP 80 for certificate (ACME) validation and HTTPS redirects. Restrict SSH (TCP 22) to your administrators. Do not expose port 8080. Outbound, allow DNS, time synchronization, Ubuntu package repositories, ACME (Let’s Encrypt) and your mail relay. When update checks are enabled, also allow HTTPS to tach-site.pages.dev; see Pending updates for disabling them.
Cloud Cowork and computers outside your network can send usage through a second, ingest-only hostname. See Ingest-only hostname.
Mail relay
People sign in with a code that Tach sends by email. Arrange a mail relay and an approved sender address on your domain. The relay must use implicit TLS or STARTTLS. Publish SPF, aligned DKIM and DMARC records for the sender. You will confirm that a real sign-in email reaches the administrator’s inbox before you invite anyone.
Cloud VMs
The package also contains IT-KIT.md in the package, the managed-policy rollout
questionnaire/checklist, IT-REVIEW.md in the package, the data-flow review packet,
and COWORK.md in the package, the organization-export runbook. These are readable
offline without a GitHub account. Give them to IT with this signed package; this
GUIDE remains the sole server installation and recovery authority.
Tach runs the same on a cloud VM. Azure is the example here; other clouds have the same parts.
- Disk: use a managed disk attached to the VM, formatted ext4 or XFS and
mounted persistently before you install. Set
data_diron it; Tach keeps its database and verified backups there. Do not use a cloud file share such as Azure Files. - Ports: apply the inbound rules from DNS and ports in the VM’s firewall, such as an Azure network security group.
- One writer: only one VM or container may write the database. Never attach the data disk to two running VMs.
- Secrets: to keep relay credentials in a secret store, download each one
into a private, root-owned, mode 0600 file and point
username_fileandpassword_fileat it. In Azure Key Vault, with the VM’s managed identity:az keyvault secret download --file PRIVATE_FILE --vault-name VAULT --name SECRET. Never put secret values on a command line.
The installer creates no cloud resources and never signs in to a cloud account.
Azure Application Gateway in front of Tach
If you publish Tach through Azure Application Gateway, publish only ingestion there and keep the VM on a private address:
- Add a public HTTPS listener for the ingest hostname, with its certificate.
- Add a backend pool that holds the VM’s private address. Add backend settings for HTTPS on port 443, with the host name override set to the hostname that Caddy serves on the VM (below). The gateway must trust the VM’s certificate: use a public CA, or upload your private CA’s root certificate.
- Add a path-based rule on that listener. Route the paths
/v1/logsand/v1/metrics, without wildcards, to that backend pool. - Add a custom health probe for those backend settings: protocol HTTPS, host
your main
domain, path/healthz, healthy status codes 200-399. Tach answers/healthzthere with 200. The gateway’s default probe sendsGET /with the override host. The ingest hostname answers it with 404, so the gateway would mark the VM unhealthy and send no traffic. The VM’s certificate must cover the maindomaintoo. See Microsoft’s health probe overview. - Set the rule’s default target to a backend pool with no members. The gateway then answers every other path with 502 itself and never reaches Tach.
- In the VM’s network security group, allow TCP 443 only from the gateway’s subnet and your internal network. Probes come from the gateway’s subnet.
Application Gateway path rules ignore letter case and the request method. So
GET /v1/logs or POST /V1/LOGS still reaches Tach, which refuses it. For
Caddy’s exact match as well, also set up an
Ingest-only hostname and use it as the host name
override. Otherwise, use your main domain. A VM that the internet reaches only
through the gateway cannot complete ACME validation, so use
tls.mode = "provided".
Azure Blob backup upload
A hung upload/download is cancelled when its cycle releases its kernel lease,
its staging directory is replaced, or its receipt becomes overdue. All copy
subprocesses are killed; the next cycle can retry without a manual service reset.
Restarting tach-selfhost also stops its copy service. An abandoned request is
refused rather than replayed as a new cycle. For diagnostics, read
sudo journalctl -u tach-backup-copy -n 50 --no-pager; do not delete backup files
to clear a copy problem.
Tach can copy each verified backup to an existing Azure Blob container:
- Install the Azure CLI using Microsoft’s instructions.
- Sign the root account in with the VM’s managed identity:
sudo az login --identity. The copy service runs as root. - Grant that identity Storage Blob Data Contributor on the container.
- Set
backup.azure_accountandbackup.azure_containerin your config and rerun the same install command.
After a backup passes its checks, and before the server keeps it, the
tach-backup-copy service uploads it as tach-backup-SHA256.sqlite, named by
its SHA-256. It then downloads that blob and compares its size and SHA-256 with
the checked file. Only a match lets the cycle keep the backup; the receipt then
says "off_host":"copied". A failed upload or readback fails the cycle, which
keeps every earlier backup and shows the failure in tach status and Health.
The copy service’s log says why: run
sudo journalctl -u tach-backup-copy -n 50 --no-pager.
No Azure command runs unless both settings are set. The readback downloads each backup once, so keep the storage account in the VM’s region. Tach never deletes remote backups; set remote retention with your Blob lifecycle policy. A verified copy does not prove recovery from Blob storage; test that separately with Restore.