Skip to content

Join-by-invite acceptance: the laptop and smaug

These runs went from Gavin's laptop (macOS) to smaug (Debian 13, x86-64) over tailcat on 2026-11-24. The client was built from wip/bootstrap-design at ea6a309, and smaug ran the Linux binaries from the same commit. To keep the laptop's existing setup and the macOS runner (which has no --join yet) working, the laptop side used a separate config, ~/.config/allmyram-join/client.json. smaug itself moved from the old CA setup to the new one.

Step 1: init

Gavin made a new Secretive key that requires Touch ID with the current fingerprints. This is the command that was run:

allmyram init --config ~/.config/allmyram-join/client.json \
  --agent-socket ~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh \
  --owner-key SHA256:b34bJM5zhGM3tnNGeaSpmVhVPKzARi2gLd3q+uo184w

There were two Touch ID prompts. The directory is 0700 and every file in it is 0600. allmyram info reported: - the agent offers the owner key; - the client key's approval is valid and the key is not revoked; - the day key and the client certificate both end 24 h out; - there are no runners and no revocations.

Secretive signed the client-key approval as an ordinary agent signature, so no special agent support was needed.

Step 2: invite and join

  • Laptop: allmyram invite printed the tailnet IP it detected (100.80.88.77) and an invite.
  • smaug: sudo bash install.sh --name smaug --join asked for the invite at its prompt and installed. It then printed fingerprint: CBLD-YZDL.
  • Laptop: it showed Approve smaug (new runner), fingerprint CBLD-YZDL?. The fingerprints matched and Gavin approved. There was no Touch ID prompt, because the day key was fresh.
  • Both sides: smaug printed joined and wrote /etc/allmyram/trust.json, and the laptop printed smaug joined. smaug was labelled "new runner" rather than "replacement" because the separate config had never seen it.
  • Result:
  • The install renamed the helper to the warden, as expected, and exited with egress self-check: passed. All nine self-check results were ok.
  • client.json gained smaug, with its pinned host key and address.
  • The runner's log printed its tailcat address only in redacted form (tcpGFwWCCHv1…).

Step 3: a job

allmyram run --runner smaug --image docker.io/library/alpine:3.20 -- sh -c '…; exit 3' printed the job's hostname (its run ID) and the worktree snapshot's files. It exited 3, the job's own status, after 1.7 s. There was no Touch ID prompt.

Step 4: revoke

allmyram revoke spare.pub revoked a fresh ed25519 key. - First try: the Touch ID prompt went unanswered. Secretive refused to sign (the ssh-agent would not sign) and nothing was saved: info still showed 0 revocations. - Second try: it printed revoked SHA256:QSdM6j… and reached: smaug, and info showed 1 revocation.

Step 5: rotate the client key

allmyram rotate-client-key asked for Touch ID twice. It printed replaced the client key and revoked the old one and reached: smaug. info showed the new client key and 2 revocations. The next job (echo still works) ran on the new key and exited 0.

Step 6: renew

allmyram renew smaug printed sent smaug a new host certificate. There was no Touch ID prompt, since the day key signs it. The host certificate's end, as info reported it, moved from 2026-12-24 16:27 to 16:33 PST.

Step 7: rerun the install without --join

On smaug, sudo bash install.sh asked for no invite. It restarted the three units and exited with egress self-check: passed. The next job (echo after rerun) ran without a rejoin and exited 0.

Clocks

smaug's systemd reported NTPSynchronized=yes, and both machines read the same UTC second. No skew warning appeared, and the laptop made no NTP query: info showed "laptop clock: not measured (no disagreement seen)". The Linux kernel-sync read (adjtimex) also passed its own test on smaug (just test-smaug ./internal/skew).

Not checked here

  • Behaviour across the daily day-key renewal during a long attach. The tests cover it with an injected clock.
  • A real clock disagreement between the two machines.
  • The macOS runner, which joins once its installer gains --join.
  • Moving the laptop's real ~/.config/allmyram over.
  • shellcheck on install.sh: it is not installed on the laptop, so only bash -n and these real runs checked the script.