Skip to content

Comments

fix(vault): use default vault dir for age key/path fallback#613

Merged
bug-ops merged 2 commits intomainfrom
fix/vault-default-paths
Feb 19, 2026
Merged

fix(vault): use default vault dir for age key/path fallback#613
bug-ops merged 2 commits intomainfrom
fix/vault-default-paths

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • parse_vault_args now falls back to default_vault_dir()/vault-key.txt and default_vault_dir()/secrets.age when age backend is active but no CLI flag or env var is provided
  • Consolidates default_vault_dir() into zeph-core::vault module, reused in main.rs
  • Fixes the mismatch where zeph vault init saves to default dir but runtime required explicit --vault-key/--vault-path

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes
  • cargo nextest run --workspace --lib --bins — 2014 tests pass
  • Manual: zeph vault init then run with --vault age without --vault-key/--vault-path — should load from default dir

…tive

parse_vault_args now falls back to default_vault_dir() for vault-key.txt
and secrets.age when no CLI flag or env var is provided and the backend
is "age". Previously this required explicit --vault-key/--vault-path
even though `zeph vault init` saves to the default directory.

Consolidates default_vault_dir() into zeph-core::vault and reuses it
in main.rs.
@github-actions github-actions bot added rust core bug Something isn't working size/M labels Feb 19, 2026
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 19, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 19, 2026 18:55
@bug-ops bug-ops merged commit 7ef501a into main Feb 19, 2026
25 checks passed
@bug-ops bug-ops deleted the fix/vault-default-paths branch February 19, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core documentation Improvements or additions to documentation rust size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant