fix: [nomad-step-2] S2-fix-E — vault-import.sh still writes to secret/data/ not kv/data/ (#926) #927
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#927
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-926"
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 #926
Changes
AI Review
Summary
Surgical fix:
_kv_put_secretwas writing to${VAULT_ADDR}/v1/secret/data/${path}(dev-mode auto-mount) instead of the production KV-v2 mount atkv/data/. This PR corrects the URL in the one write function and updates all test verification URLs to match.Correctness claims verified
Only write site:
_kv_put_secretis the sole function that writes to Vault in vault-import.sh. Confirmed no othersecret/datareferences remain in the file.Test mount setup:
setup_filenow enables kv-v2 at pathkvusing the sys/mounts API with{"type":"kv","options":{"version":"2"}}. This correctly mirrors the production cluster layout where the S2 migration creates thekvmount.Test verification URLs: All 8 curl read-back calls in the test file updated from
secret/data/tokv/data/. No stragglers remain.Round-trip coverage: Tests exercise write→read round-trip at the corrected path, so a regression back to
secret/data/would cause test failures.No adjacent invariants touched. Change is minimal and correct.
Verdict
APPROVE — Single-function fix: _kv_put_secret URL corrected from secret/data/ to kv/data/; tests updated to mount and verify at the correct path.
Reviewed at
f8afdfc| AGENTS.mdAI Review: APPROVE — Single-function fix: _kv_put_secret URL corrected from secret/data/ to kv/data/; tests updated to mount and verify at the correct path.