Commit graph

1 commit

Author SHA1 Message Date
cb0a938e89
logicsrc passwd: one password for the vault and the SSH keyring (#300)
* feat(cli): logicsrc passwd: one password for the vault and the SSH keyring

The personal vault and the keyring each had their own password, so the
keyring prompt ("Keyring passphrase for id_ed25519") asked for a secret
nobody remembered. `logicsrc passwd` opens both (current password, or the
recovery key; it tries the vault password on the keyring first), asks for
one new password twice, and re-wraps both user keys under it. Not one item
is re-encrypted; recovery keys keep working. Nothing is written until both
stores are open.

The vault sync already follows a password change. The keyring sync compares
the wrapped key, so the account copy is replaced (the `keyring sync
--use-local` path). --reset-keyring starts a fresh keyring when its
passphrase and recovery key are both lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* passwd: LOGICSRC_NEW_PASSWORD, so one script asks once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* passwd: audit the re-wrap as vault.rekey

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 06:36:54 -08:00