[nomad-step-2] S2-fix-F — wire tools/vault-seed-<svc>.sh into bin/disinto --with <svc> #928
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#928
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Final Step-2 loose end.
tools/vault-seed-forgejo.shexists and works correctly — when invoked, it seedskv/disinto/shared/forgejowith generatedsecret_key+internal_token, which unblocksnomad/jobs/forgejo.hcl's template.But:
bin/disinto init --backend=nomad --with forgejonever calls it. Result on a fresh LXC with empty Vault: the forgejo alloc hitsTemplate Missing: vault.read(kv/data/disinto/shared/forgejo), waits untilhealthy_deadline = 5m, Nomad marks it unhealthy,deploy.shtimes out, operator has to manually runvault-seed-forgejo.shandnomad alloc restartto recover.Fix
In
bin/disinto's_disinto_init_nomadpath, after thevault-import.shstep (if applicable) but beforelib/init/nomad/deploy.shis called withforgejo:This convention lets later services (Woodpecker in Step 3, chat/edge in Step 5/6) ship their own
vault-seed-<svc>.shand get auto-invoked by--with <svc>without adding more code tobin/disinto.Acceptance criteria
./bin/disinto init --backend=nomad --import-env /tmp/.env --with forgejocompletes with forgejo healthy insidedeploy.sh's 240s window — no manual seed step required.FORGEJO__security__SECRET_KEYmatchesvault kv get kv/disinto/shared/forgejo'ssecret_key.vault-seed-forgejo.shitself is already idempotent (does not rotate keys).shellcheckclean.Non-goals
tools/vault-seed-forgejo.shitself — it already works.Labels / meta
backlog+bug-report. Tight scope — wiring only, 10-line loop inbin/disinto.