-
Notifications
You must be signed in to change notification settings - Fork 26
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
Nitrokey hmac-secret blocked after use of openpgp #518
Comments
This comment has been minimized.
This comment has been minimized.
Not using heads |
Hi, Thank you for the report. Can you pleas give me the following details: Which device are you using:
What tool are you using to use PGP? (I suppose GPG, if yes, which version). Are you using the secure element backend? (You can get this information through: |
The device is a NK3 A Mini If I recall correctly, the secure element is used by default after version 1.7.0 and I did not set specific options during deployment. In case it is relevant: The private pgp keys were created outside the nitrokey and imported afterwards, keytype is ed25519 |
This sounds like you imported the keys after the update. Is that correct? Did you already use both OpenPGP (with the same device) and systemd-homed before the update? |
I completely reset and updated the nk3 to version 1.7.0 before importing the private pgp keys. Afterwards I setup systemd-homed again with the nk3 as authenticator (and fscrypt key) Before the reset/update I already used the same setup with the same pgp keys and the same nk3 but on firmware version 1.6.x |
I see. And I understand that authentication works before using the OpenPGP keys. Are there any log messages related to the FIDO authentication for the failed attempts? You can change the log level using the |
Without changing the loglevel, I didn't notice any relevant log entries in the journal when the authentication failed. However, when I run A small correction of the original post: Removing the nk3 and plugging it back in does fix the issue as well. I am going to try to get the debug log during login |
Here are some relevant log entries I found after triggering the bug:
If you also want the entire log with mostly libfido entries, I can try to setup a testsystem and send that to you if required.
|
Another observation of the bug: After using the pgp keys, I can still use webauthn, e.g. to login to Github.
|
Update: I tried to reproduce the issue on another system with a different nk3 and the issue did not reappear. The first system is running arch and the nitrokey was reset and private keys imported after upgrading to firmware 1.7.2 Potential triggers would be:
Since both nitrokeys were bought together they should be from the same batch, therefore I think it is unlikely related to the hardware. |
I reproduced the issue on the first nk3 with both a vanilla Arch Linux iso and Debian Bookworm, therefore it does not seem to be related to software version or configuration. Unlike a few month ago, I do get a different output when using
When using To summarize:
Please find attached the requested log files |
I use my NK3 mainly for local authentication of my linux user through systemd-homed (which uses the fido2 hmac-secret extension if I am not mistaken) as well as for managing my openpgp keys.
After updating to firmware version 1.7.0 I noticed that every time I accessed my pgp keys, I was afterwards unable to use my nitrokey for local authentication. Running something like sudo would result in the pin being requested only to then switch to password authentication as a fallback.
This only happens after the pgp keys on the nitrokey are used.
Removing the nitrokey and plugging it back in does not help. So far only rebooting seems to solve the issue.Unplugging the nitrokey and plugging it back in does resolve the issue. Rebooting the system without unplugging the nk3 however did not always fix itUpdating to 1.7.1 and 1.7.2 has not resolved the issue either.
The text was updated successfully, but these errors were encountered: