Skip to content

pending --reset can replace a remote wrapped key using a stale local key - #26

Open
dipeshbabu wants to merge 3 commits into
subconscious-systems:mainfrom
dipeshbabu:fix/pending-key
Open

dipeshbabu wants to merge 3 commits into
subconscious-systems:mainfrom
dipeshbabu:fix/pending-key

Conversation

@dipeshbabu

Copy link
Copy Markdown

Pending recipients are matched locally only by email. If another machine registered a replacement key for the address, this machine advertises its stale passphrase and can overwrite the remote wrapped private key with an unrelated one.

Match remote and local fingerprints before showing a passphrase or resetting the wrapped key. Tests verify stale local keys cannot send a reset request or advertise a usable passphrase.

Validation: frozen-lockfile dependencies, typecheck, full tests, npm build, and bundled CLI version/help smoke checks. Ubuntu/Windows Node 20/22 CI passed before PR creation on this exact head commit (7930459): https://github.com/dipeshbabu/vibi-cli/actions/runs/37263204862

This branch includes the CI foundation from #2; merging that PR first removes the common CI changes from this diff.

Closes #25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pending --reset can replace a remote wrapped key using a stale local key

1 participant