Add secrets-bao with sec CLI; use in hosts; fix git helpers

This commit is contained in:
RingOfStorms (Joshua Bell) 2026-01-06 20:05:14 -06:00
parent c223dedb70
commit f8f93a97dc
6 changed files with 192 additions and 33 deletions

View file

@ -0,0 +1,15 @@
- Create machine in zitadel and generate a key. Put that at /machine-key.json
- sudo chmod
## CLI
If `ringofstorms.secretsBao.enable = true`, you also get a `sec` helper.
It reads `/run/openbao/*` files, so it will `sudo` itself if needed.
- `sec <kv-path> [field]` reads a field (default: `value`) from KV v2.
- It reuses `/run/openbao/vault-agent.token` when available, otherwise it logs in via the same jwt auth mount path using `/run/openbao/zitadel.jwt`.
Example:
- `sec machines/home_roaming/test value`