Files
nix-config/home/base/tui/password-store
ryan4yin | 二花 a9d38491f0 feat(git): sign commits with the CanoKey OpenPGP key, reuse SSH 30 s (#535)
* feat(ssh): reuse every connection for 30 s to save touches

Assisted-by: DeepSeek Harness (claude-opus-5-5)

* feat(git): sign commits with the OpenPGP key on the CanoKeys

Assisted-by: DeepSeek Harness (claude-opus-5-5)
Assisted-by: DeepSeek Harness (claude-fable-5-2)

* flake.lock: Update

Flake lock file updates:

• Updated input 'mysecrets':
    'git+ssh://git@github.com/ryan4yin/nix-secrets.git?ref=refs/heads/main&rev=6ab2a713e5938e1bb8ef2d33acab632ba0bd5331&shallow=1' (2026-11-11)
  → 'git+ssh://git@github.com/ryan4yin/nix-secrets.git?ref=refs/heads/main&rev=eba74369427e98b0246f6f0f35e80ddcc6808995&shallow=1' (2026-11-19)
2026-11-19 22:56:41 +08:00
..

Password Manager

Changing the GPG key

Change the key only when a CanoKey is lost or the key may be compromised; its subkeys never leave the cards, so there is no scheduled rotation. python3 scripts/gpg_canokey.py pass switches the store: it decrypts every entry with the old key before changing anything, runs pass init, then checks that each entry opens with the new key alone and kept its content. The whole procedure, from generating the key to retiring the old one, is in hardware security keys.

Once the old key is deleted, older revisions in the store's git history can no longer be decrypted.