Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

return error when attempting to remove key from YubiHSM wallet #7923

Merged
merged 1 commit into from
Sep 16, 2019

Conversation

spoonincode
Copy link
Contributor

Change Description

The YubiHSM keosd wallet doesn't support removing keys from the YubiHSM. This is mostly because the interaction with the YubiHSM for removing a key is tricky given our desire to validate the wallet password before performing that action. Implementing this would mean opening up a second simultaneous session with the YubiHSM just to verify the wallet password. While this may be a valid enhancement in the future, it's too much effort for now.

That said, the current implementation was silently dropping removal requests. Fix it to return an error so it's not deceptive.

Fixes #7904

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

The YubiHSM keosd wallet doesn't support removing keys from the YubiHSM. This is mostly because the interaction with the YubiHSM for removing a key is tricky given our desire to validate the wallet password before performing that action. Implementing this would mean opening up a second simultaneous session with the YubiHSM just to verify the wallet password. While this may be a valid enhancement in the future, it's too much effort for now.

That said, the current implementation was silently dropping removal requests. Fix it to return an error so it's not deceptive.
@spoonincode spoonincode merged commit f440309 into develop Sep 16, 2019
@spoonincode spoonincode deleted the yubihsm_disallow_delete branch September 16, 2019 15:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants