Closed robin-nitrokey closed 5 months ago
did some testing on this to find a regression, but nothing so far... nice!
tested with: nk3am + nk3an means mostly the nk3
and fido2
sub-commands - not yet tested with the nkpk
lgtm!
I get an error when doing nitropy ilst
:
Critical error:
An unhandled exception occurred
Exception encountered: AttributeError("'NoneType' object has no attribute 'device_name'")
It looks like the list
method in cli/trussed/__init.py
gets a None
context.
Ah, good catch. That’s due to this ugly hack:
Maybe there is a typesafe replacement for this code.
Should be fixed now.
This PR adds a new abstraction layer by extracting most of the functionality from the
nk3
module to atrussed
module and introduces thenkpk
subcommand that uses this abstraction.Currently available commands for
nkpk
:list
provision fido2
reboot
rng
status
test
version