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
allmyrambinary on yourPATH.
Steps¶
-
Find the owner key's fingerprint. For Secretive:
-
Run
initwith that agent and fingerprint. Touch ID asks twice.initsaves--agent-socketinclient.json, and every later command asks that agent. Without it, allmyram uses$SSH_AUTH_SOCKeach time, which is usually the system agent rather than Secretive's. -
Check the result:
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:
- If
ls -ld ~/.config/allmyramshows anything looser than 0700, runchmod 700 ~/.config/allmyram. allmyram refuses a directory others can read. - If
client.jsonhas aca_public_keyline, delete it.initrefuses fields it doesn't know. - Run
initas above. It drops every runner fromclient.jsonand lists them; rejoin each one with--join. - Delete
ca.pubandclient.pub. Once every runner has rejoined, the old CA directory (~/.config/allmyram-ca) is unused too.