Skip to content

How to set up the laptop

Do this once, on the laptop that holds the owner key. Afterwards you can add runners and run jobs.

Before you start

  • An owner key in an ssh-agent that asks for you on every use, such as a Secretive key that requires Touch ID with current biometry. The key never leaves the agent.
  • The allmyram binary on your PATH.

Steps

  1. Find the owner key's fingerprint. For Secretive:

    SECRETIVE=~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh
    SSH_AUTH_SOCK=$SECRETIVE ssh-add -l
    
  2. Run init with that agent and fingerprint. Touch ID asks twice.

    allmyram init --agent-socket $SECRETIVE --owner-key SHA256:...
    

    init saves --agent-socket in client.json, and every later command asks that agent. Without it, allmyram uses $SSH_AUTH_SOCK each time, which is usually the system agent rather than Secretive's.

  3. Check the result:

    allmyram info
    

    It shows the agent offering the owner key, the client key approved and not revoked, and a day key and client certificate good for about a day.

The day key and client certificate renew themselves, with one Touch ID prompt each time (see Certificates and clocks). If you're about to leave agents running overnight, run allmyram renew-day-key first.

If the laptop was set up before joins existed

A laptop with ca.pub and client.pub in ~/.config/allmyram moves over with the same init:

  1. If ls -ld ~/.config/allmyram shows anything looser than 0700, run chmod 700 ~/.config/allmyram. allmyram refuses a directory others can read.
  2. If client.json has a ca_public_key line, delete it. init refuses fields it doesn't know.
  3. Run init as above. It drops every runner from client.json and lists them; rejoin each one with --join.
  4. Delete ca.pub and client.pub. Once every runner has rejoined, the old CA directory (~/.config/allmyram-ca) is unused too.