-
-
Notifications
You must be signed in to change notification settings - Fork 773
Keyring desync issue #7043
Copy link
Copy link
Open
Labels
trezorlibPython library and the command line trezorctl tool.Python library and the command line trezorctl tool.
Metadata
Metadata
Assignees
Labels
trezorlibPython library and the command line trezorctl tool.Python library and the command line trezorctl tool.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
No status
When a THP credential is stored in the keyring, but the keyring entry is deleted using the OS (i.e. not using
trezorctl device forget), the keyring gets blocked.trezorctl listreturns NotPaired errorterzorctl get-featuresfails ontrezorctl device forgetfails as wellMost likely cause is that there is still a "pointer" stored in the
config_dir / "thp-credentials.json", but there is no underlying keyring.Proposed fix: catch the potential exceptions when loading/trying-to-delete from keyring.
jsonin case of deleting credentials