[nomad-step-2] S2-fix-E — vault-import.sh still writes to secret/data/ not kv/data/ #926
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#926
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?
Part of the Nomad+Vault migration. Step-2 sub-bugfix (5/4). Discovered during Step 2 re-verification on fresh LXC.
Symptom
After #923 landed and
disinto init --backend=nomad --import-env /tmp/.env --with forgejogot past the earlier 4 bugs, vault-import.sh fails:Root cause
tools/vault-import.shwrites to${VAULT_ADDR}/v1/secret/data/${path}— the legacysecret/KV v1 prefix. The Step-2 migration switched everything tokv/(v2) in policies, roles, templates, andlib/hvault.sh. vault-import.sh was missed.Scope — exact lines in
tools/vault-import.sh(main,cfe1ef9)Line 154 is the curl URL; lines 156, 167, 171, 175 are error messages referencing the path:
Change
secret/data/→kv/data/in all five lines.Also sanity-check the read helper if one exists (for idempotency diffs) — same fix.
Acceptance criteria
disinto init --backend=nomad --import-env /tmp/.env --with forgejofrom disinto-dev-box's real.env, vault-import.sh completes without errors.vault kv list kv/disinto/botsshows all the bot paths (review, dev, gardener, etc.).vault kv get kv/disinto/bots/gardenerreturns the FORGE_GARDENER_TOKEN + FORGE_GARDENER_PASS from the source.env.shellcheckclean.Why #923 missed this
Dev-bot's 4-in-1 PR (#923) covered the policy/mount/helper/template layers but treated vault-import.sh as already correct. The docs in its header comment (line 21+) already said
kv/disinto/*— only the runtime code still pointed atsecret/.Labels / meta
backlog+bug-report. Tight scope, 5-line diff.