Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Nitrokey FIDO2 update #185

Merged
merged 4 commits into from
Feb 9, 2022
Merged

Correct Nitrokey FIDO2 update #185

merged 4 commits into from
Feb 9, 2022

Conversation

szszszsz
Copy link
Member

@szszszsz szszszsz commented Feb 8, 2022

Correct Nitrokey FIDO2 update

  • Check available firmware before downloading
  • Require --force switch if current firmware is up-to-date
  • Visual reformat of the messages
  • Correct reconnection after the bootloader switch
  • Use the new list command

Tested on Fedora 34, with market version of Nitrokey FIDO2.

Check available firmware before downloading
Require --force switch if current firmware is up-to-date
Visual reformat of the messages
@robin-nitrokey
Copy link
Member

I’ll have a closer look later, but what do you think about using the pynitrokey.updates module if we change the FIDO2 code anyway? It would remove the duplicated asset download code and would make it possible to also show a progress bar (pynitrokey.helpers.DownloadProgressBar).

@szszszsz
Copy link
Member Author

szszszsz commented Feb 8, 2022

Sure! I am all in favor of it. This is just a quick correction of the current state - surely could be refactored and unified across devices.

@szszszsz
Copy link
Member Author

szszszsz commented Feb 8, 2022

Just to add: since it has adds some value from the user POV I propose not delay it more, and push it out as it is as long as it does not break anything or violate any rules, and plan the further refactor later.

Copy link
Member

@robin-nitrokey robin-nitrokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me, not tested though.

@szszszsz szszszsz merged commit 8a16a1e into master Feb 9, 2022
@szszszsz szszszsz deleted the nkfido2-update branch February 9, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants