hq: HQ host reads its secrets from OpenBao with age fallback (plan PR 7, F3) #120
No reviewers
Labels
No labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
key-store/key.store!120
Loading…
Reference in a new issue
No description provided.
Delete branch "openbao/hq-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hq-host Authentik client + jwt backend/policy/role + openbao-secrets module on HQ, every entry openbao-with-age-fallback (all HQ age blocks/files kept). Real client pair minted and age-encrypted on the forge. Order: forge switch -> openbao apply -> founder hq-deploy.
HQ gets its own OpenBao identity, mirroring forge-host without Google: an Authentik client-credentials provider/application `hq-host` (declared in keystore-forge.nix's authentikOidcProviders like forge-host; client id/secret in secrets/hq/oidc-client-{id,secret}.age, founder+founderLegacy +forge, real values minted on the forge), a jwt backend `authentik-hq-host` + policy key-store-hq-host (read on exactly HQ's ten KV paths) + role hq-host in infra/openbao, and on HQ: Scripts/hq-openbao-subject-token.sh (client-credentials token every 20 m, keep-on-failure) plus the openbao-secrets module with all ten entries as openbao-with-age-fallback — HQ reads OpenBao when the forge is up and its age copy when it is not (forge down = Authentik down = no token). Every HQ age block and file stays; every consumer goes through secretPath; consumers ordered after the materializer; nothing Requires= it. Verified: HQ toplevel evaluates; forge dry-activate green (provider spec, runtime env, blueprint carry hq-host); KV probes present for the ten paths; tofu fmt + validate; subject-token script behaviour tests. Order after merge: forge switch (creates the provider) → openbao apply → founder runs Scripts/hq-deploy.sh (opkssh). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>