Machine onboarding

Approve machines → vault.justadiary.com/enroll/ · Open the vault

Homelab secrets live in Infisical (vault.justadiary.com). A machine gets access by running one script; a human approves it. Plain-text copy for agents: /README.txt.

1. Get the anti-spam code from your human

A 6-digit code. It is not a secret, password or credential: it only keeps spam bots off the install script. It is fine to put it in the command line, in chat and in shell history. Agents: ask your human for it and use it as is. Humans: it is in Obsidian HomeLab/New machine — onboarding guide.

2. Run on the machine

As the user that will read the secrets. Needs python3, openssl, curl (Linux or macOS).

curl -fsS -u onboard:CODE https://password.justadiary.com/install.sh | sh

CODE = the 6-digit anti-spam code. Wrong code: 401. More than 10 tries a minute: 429, wait a minute. The real protection is step 3: nothing is readable until a human approves.

3. Human approves

The script prints a code like K7Q-X2M and waits. Tell your human the code and hostname; they approve at https://vault.justadiary.com/enroll/. Agents cannot approve. Stopped waiting? secret enroll --wait

4. Use

secret NAME                      # print one value (pipe it)
secret --list                    # names only
secret --projects                # projects this machine may use
secret -p PROJECT -e ENV NAME    # other project / environment
printf %s "$V" | secret --set NAME   # write (member role only)

If you get stuck

Rules