Keep unlocker list working when unlocker metadata is corrupt (closes #42) #61

Merged
clawbot merged 1 commits from issue-42-pgp-unlocker-id-panic into next 2026-10-04 06:42:16 +02:00
1 Commits
Author SHA1 Message Date
clawbot 959ed5ece4 Keep unlocker list working when unlocker metadata is corrupt (closes #42)
check / check (push) Successful in 1m54s
PGPUnlocker.GetID() panicked when its metadata could not be read or
parsed, which took down `secret unlocker list` for every unlocker. It
now warns with the unlocker's directory and returns `pgp-unknown`;
metadata with an empty GPG key ID counts as corrupt too.
ListUnlockers now skips, with a warning, an unlocker whose metadata
file cannot be checked for, read or parsed, as it already did for a
missing one. The listing's ID lookup skips such a directory without
warning again.

This is the first half of the issue only. Passing the mnemonic in
memory moved to #60.

Model: opus-5-5
2026-10-04 04:08:31 +00:00