Skip to content

Comments

feat(vault): implement vault CLI subcommands and fix init wizard flow#602

Merged
bug-ops merged 3 commits intomainfrom
feat/598-vault-cli
Feb 19, 2026
Merged

feat(vault): implement vault CLI subcommands and fix init wizard flow#602
bug-ops merged 3 commits intomainfrom
feat/598-vault-cli

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 19, 2026

Closes #598

Summary

  • Add zeph vault subcommands: init, set, get, list, rm for managing age-encrypted secrets
  • Reorder init wizard: vault backend selection moved to step 1, API key prompts skipped when age backend is selected
  • Vault commands dispatch before full app initialization for minimal startup overhead

Changes

  • crates/zeph-core/src/vault.rs — AgeVaultProvider write operations (load/save/set/remove/list/init_vault), atomic writes, capacity hints
  • src/main.rs — VaultCommand enum, handle_vault_command dispatch, default_vault_dir with XDG/APPDATA/HOME
  • src/init.rs — wizard step reorder, conditional key prompts based on vault backend

Test plan

  • 11 new tests (1893 total, 0 failures)
  • handle_vault_command all 5 branches covered
  • default_vault_dir env-var paths tested with serial_test
  • VaultCommand CLI parsing tested
  • Get/Rm missing-key error paths tested
  • cargo fmt, clippy (0 warnings), nextest all pass

@github-actions github-actions bot added enhancement New feature or request rust size/XL core dependencies documentation Improvements or additions to documentation and removed enhancement New feature or request labels Feb 19, 2026
…#598)

Add vault management commands (init/set/get/list/rm) for age-encrypted
secrets and reorder the init wizard to select vault backend before
collecting provider credentials.
Update CHANGELOG, READMEs, and mdbook pages to cover vault init/set/get/
list/rm commands and init wizard reorder.
@bug-ops bug-ops enabled auto-merge (squash) February 19, 2026 13:27
vault get intentionally prints secret values to stdout (its purpose).
init wizard prints variable names with placeholder, not actual values.
@bug-ops bug-ops merged commit a06a87b into main Feb 19, 2026
22 checks passed
@bug-ops bug-ops deleted the feat/598-vault-cli branch February 19, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core dependencies documentation Improvements or additions to documentation enhancement New feature or request rust size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement vault CLI subcommands and fix init wizard key collection flow

1 participant