An account has one personal vault and one keyring, plus a local copy on each
machine. `logicsrc passwd` (and `--email`) changed this machine and left the
rest to manual commands: `vault sync`, then `keyring sync --use-remote` on
every other machine.
- passwd pulls the account's vault first and pushes it after. Without the
pull, a password set on another machine since the last sync won on the next
pull ("the account's wins") and silently replaced the one just chosen. It
also lets a freshly logged-in machine with no local vault reset by email.
- `keyring sync` takes the account's keyring without a flag in the two cases
where nothing can be lost: the same keyring under a newer password, or a
newer keyring that holds every key this machine has (the old one is still
backed up). Anything else stays a question, as before.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
`logicsrc keyring` (alias `kr`; `keys` is API keys): add/gen/list/show/restore/
rm/export --pub/sync/status. A keyring is an OpenCreds user-profile vault (same
PBKDF2-600k + HKDF + AES-256-GCM scheme as `logicsrc vault`, recovery key);
each private key is an OpenCreds `key` item envelope, public halves stay
readable. Works fully local under ~/.config/logicsrc/keyring; `keyring sync`
pushes ciphertext to the account. restore writes the default file name,
600/644, refuses a different existing key without --force and backs it up
first; private keys are printed only with --print-private.
- apps/pwa: /api/keyring (person Bearer key; session read-only; machine keys
refused), additive migration 008_keyring, server refuses any upload that
carries plaintext private key material (incl. base64'd PEM "ciphertext");
/keyring page lists public halves and decrypts in the browser (WebCrypto,
same derivation) for download.
- logicsrc-mcp: list/show/export_authorized_keys/add (sealed only)/remove/
restore instructions; never returns a private key.
- docs/keyring.md served at /docs/keyring.
- Tests: crypto round trip, ssh-keygen fingerprint parity, AAD binding,
restore perms + overwrite guard + backup, two-machine sync, server stores
ciphertext only, browser decrypt opens CLI-sealed envelopes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>