fix: tech-debt: tools/vault-import.sh uses hardcoded secret/ KV mount (#910) #932
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#932
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-910"
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?
Fixes #910
Changes
AI Review
Summary\n\nFixes hardcoded
kvmount in_kv_put_secret's curl call by substituting${VAULT_KV_MOUNT:-kv}. The read path (_kv_path_exists→hvault_kv_get,_kv_get_value→hvault_kv_get) already went throughlib/hvault.sh, which setsVAULT_KV_MOUNTvia: "${VAULT_KV_MOUNT:=kv}"at source time (line 130). Write and read are now consistent on the same mount.\n\n### Verification\n\n-lib/hvault.sh:130uses:=assignment form, so by the time_kv_put_secretis called,VAULT_KV_MOUNTis already exported from the sourced helper. The:-kvfallback in vault-import.sh is redundant but harmless.\n- All four error-message strings updated to match — no stale hardcodedkv/in the changed function.\n- Default behavior preserved:VAULT_KV_MOUNTunset →kv, byte-identical to before.\n\n### Non-blocking note\n\n-lowtools/vault-import.sh:21-31,258-267: Header comment and--helpoutput still show paths askv/disinto/...without mentioning theVAULT_KV_MOUNToverride. Not a correctness issue (default is stillkv), but operators won't discover the knob from the script itself.Verdict
APPROVE — write path now uses VAULT_KV_MOUNT consistently with read path in hvault.sh
Reviewed at
99d3cb4| AGENTS.mdAI Review: APPROVE — write path now uses VAULT_KV_MOUNT consistently with read path in hvault.sh