Skip to content

How to look after keys and machines

Most of this happens by itself. This page covers what doesn't. allmyram info shows the state of every key, certificate, runner and sink.

A runner's certificate expired

A host certificate lasts 30 days and renews whenever the laptop connects with under 10 days left. After a long absence, run:

allmyram renew smaug

A client key may have leaked

If it is this laptop's key, replace it. The new key works at once on every runner.

allmyram rotate-client-key

For any other client key, revoke it everywhere. KEY is a .pub file or a quoted authorized-key line.

allmyram revoke KEY

Runners it can't reach get the revocation on the laptop's next connection; run revoke again to retry them now.

The owner key is lost

This includes a Secretive key that a change of fingerprints invalidated.

  1. Make a new owner key.
  2. Run allmyram init --new-owner with it. Every runner is dropped.
  3. Rejoin each Linux and Mac runner with --join, and add the sink again. A join under a new owner key drops the revocations, the sink record and the telemetry kept under the old one.

You no longer want a runner

allmyram remove smaug

Nothing changes on the runner, which keeps admitting the laptop's key. To retire the machine, uninstall it there (Linux, Mac).

A certificate is refused because of the clocks

  1. Read the gap the client reports, and the runner's log line with both times (the journal on Linux, runner.log on a Mac).
  2. Find the wrong clock: allmyram info shows the laptop's last NTP check, and the runner's log shows its own.
  3. Fix that clock, for instance by enabling chrony or systemd-timesyncd on the runner.

If you want another NTP server, or none, set ntp_server in client.json or the runner's runner.json. Certificates and clocks has the rules.

Clients can't reach a runner after a relay region was retired

A runner keeps the tailcat relay (DERP) region it chose when it joined. If Tailscale retires that region, delete the runner's tailcat-key.json and rejoin it:

  • on Linux, /var/lib/allmyram/runner/state/tailcat-key.json, then rejoin;
  • on a Mac, ~/Library/Application Support/allmyram/tailcat-key.json, then rejoin.