Repository navigation
feat(cli): add and list commands - #31
Merged
Merged
Conversation
The master password is asked first, so a wrong password fails before the user types the entry. Password and notes use hidden prompts because the model treats both as secrets. A missing vault is reported with a hint to run init instead of a bare "file not found". Refs #30
Matches a substring of the site or the username. Passwords and notes are never searched, so a search cannot be used to probe them. Refs #30
Drives the real binary: entries added with --password-stdin are stored with their password and notes, list shows only site and username, and neither command prints the secrets. Refs #30
Owner
Author
|
Self-review: read the full
Not covered: terminal control characters in site or username names are printed as-is. It's the user's own data, and it's noted for the hardening PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
pwv add <site>andpwv list [--search <text>].addunlocks the vault first, then prompts for username, password and notes; password and notes use hidden prompts.listprints a sorted table of site and username only.--searchkeeps entries whose site or username contains the text, ignoring case.Closes #30
Type of change
How was this tested?
cargo fmt --all --check,cargo clippy --workspace --all-targets --all-features -- -D warnings(and without features),cargo test --workspace --all-features,cargo deny checkaddagainst a missing vault (exit 1 with an init hint) and with a wrong master password (exit 3)Security checklist
pwv-core::kdf/pwv-core::cryptoNotes for the reviewer
SecretText. The trade-off: you can't see notes while typing them.get,editanddeletewill ask which one in the next PR.add --generate(PR feat(storage): atomic vault persistence #17) will be the main way to set one.