-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add option to change the nk3 secret apps pin for reowner ship #40
Comments
GPG Admin/User PINs are reset through gpg factory reset under Heads. If Admin PIN has no counter left then Admin is locked out and factory reset needs to be done there. That was also the case for HOTP in nk2/librem key for HOTP secret sealing: GPG Admin PIN was used there. The bare minimal here would be to have hotp-verification permit factory reset of the secret app just like gpg does for opengpg smartcard si that OEM factory reset and re-ownership can be done under Heads, and the secret element by wiped as anything else in the dongle. No issue was opened to tackle the issue of physical presence. Could this be optionally turned off when reset at oem-factory-reset through hotp-verificarion? This prevent unattended oem factory reset and transfer of ownership improvements to happen and I see no justification for touch requirement in remote attestation use case but maybe for servers: PIN does the physical presence + authentication being physically present brings what more? |
this will lead to a new command line argument: how to handle backwards compatibility? will this just fail for pro/storage? |
This comment was marked as off-topic.
This comment was marked as off-topic.
@JonathonHall-Purism comments? |
This comment was marked as off-topic.
This comment was marked as off-topic.
@daringer @JonathonHall-Purism in my opinion that wouldn't break anyrjing since it was not possible to do so before? |
ok, summarizing what shall be implemented:
|
This sounds like it should work. Thanks @daringer |
Ideal is still for hotp_verification reset SECRET_APP_PIN so that physical presence is given once not twice: not changed but setuped through re-ownership, ideally skipping the whole "set on first use" issue of nk3 right now, while a new nk3 firmware version not requiring physical presence lands. There is no need for passphrase change. |
I don't understand this.
do we need the changes defined in my comment above or not? yes or no? |
ok, then we keep this and extend #42 with the secret pin |
No need to change a PIN that has no PIN set (#42 created after #41 rejected for now and #38/#39 clarifying there is no admin/user pin for secreet app...). Therefore: if PIN is set but locked, reset secret app PIN needed because there is no Admin PIN nor USER PIN here to unlock one another if locked: there is a single PIN.... So why a change PIN? eavesdropped while sealing remote attestation? Bad end user doing that in unsafe space, but why not? #40 nice to have All of which is #42 for now: setting a PIN, not letting it silently be set on first use(right now), or not considering it at all (hotp_verification prior of 1.6 with nk3 <1.7.1). But as of today, Secret App PIN is silently set on first use, which is totally wrong, possibly with a typo in it. And as of today, oem-factory-reset has no way to set that PIN. This is what #42 is about. Logic of changing PIN needs 2 or even 3 PIN by GPG reference implementation, changing user PIN is from Admin PIN in case of being locked, Admin PIN is from reset code PIN. Nk3 has one single Secure App PIN, no double PIN to prevent locking out, no reset code PIN. But has 6 counters (tries) instead of 3 by implementation choices (that I was unaware of before details disclosed upon bug discovery). TLDR: you can close #40 unless you plan of PR a change PIN because user thinks his Secure App PIN has been eavesdropped. But considering that secret app PIN is typed only upon firmware upgrade or configuration changes, as opposed to GPG User PIN used to sign /boot changes upon OS boot related changes, htought experiments proves this pretty useless to my eyes under nk3 context. |
I need #42. Would love #41 but said not right now. So unattended reownership will be postponed (physical presence still needed) while misleading info reported to users #38 and #39 would make sense for all support request teams, including yours. TLDR: please deliver #46 asap. |
see also #36
this is not yet possible in heads only via nitropy or the nitrokey app 2
The text was updated successfully, but these errors were encountered: