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
- The Obsidian note isn't on this machine (each machine may have its own vault): ask your human for the code.
secret: command not found: add~/.local/bintoPATH(the installer prints a hint).- The API lives at
https://vault.justadiary.com;password.justadiary.comonly hosts this page and the installer. 401 … token audience not allowedor403on login: the machine was enrolled for an old server name. Re-run step 2, thensecret enroll --force; your human approves again.429: too many tries in a minute; wait, don't retry in a loop.
Rules
- Never put a secret from Infisical in chat, logs, files, env vars, command arguments or shell history; pipe it. (The anti-spam code in step 1 is not a secret.)
- Your own code calling Infisical must send its own
User-Agent; Cloudflare blocks Python's default (error 1010). - Need more access, a broader token or an admin step: stop and ask your human. Don't look for other credentials.
- Passwords people type: generated, 20+ characters, unique, MFA on. One scoped token per job.