[nomad-step-2] S2-fix-C — make tools/vault-import.sh --sops optional (spec regression) #921
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#921
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 (3/4). Replaces part of the consolidated #912.
Goal
Relax
tools/vault-import.sh's argparse so--import-sopsis optional. The original S2.2 spec (#880) said:Current implementation hard-errors
"Missing required argument: --sops"and blocks the real migration path — the livedisinto-dev-boxhas only.env, no.env.vault.enc, no sops age key.Scope
In
tools/vault-import.shargparseChange the validation block to:
Flow guard
Where the current code does
decrypt_and_write_sops "$SOPS_FILE", wrap inif [ -n "${SOPS_FILE:-}" ]; then ... fi. Same for the.envpath withENV_FILE.Acceptance criteria
tools/vault-import.sh --env /path/.env(no --sops) succeeds, writes plaintext keys only.tools/vault-import.sh --sops file.enc --age-key keys.txt(no --env) succeeds, writes sops keys only.tools/vault-import.sh --sops file.enc(no --age-key) errors "requires --age-key".tools/vault-import.sh(no args) errors "must provide --import-env and/or --import-sops".disinto init --backend=nomad --import-env /tmp/.envchain works end-to-end without sops (the common real-migration case).Non-goals
Labels / meta
[nomad-step-2] S2-fix-C— no dependencies. Can land parallel to S2-fix-A/B/D.Resolved by merged PR #923 (merge commit
cfe1ef95) which landed all 4 sub-issue fixes at once. Closing as superseded.Blocked — issue #921
closed_externally2026-04-16T21:29:25Z