linuxboot / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops, workstations and servers.
https://osresearch.net/
GNU General Public License v2.0
1.42k stars 187 forks source link

Test nk3 related hotp-verification patches upstream #1866

Open tlaurion opened 3 days ago

tlaurion commented 3 days ago

Focusing on PR content, see PR to follow white rabbit on security/UX/oem issues they solve:

10h of work and counting. Will edit.

tlaurion commented 3 days ago

The one i'm the most interested (Heads maintainer), per defined priorities at https://github.com/Nitrokey/nitrokey-hotp-verification/issues/36#issuecomment-2479284125 is https://github.com/Nitrokey/nitrokey-hotp-verification/pull/46, starting with it.

tlaurion commented 3 days ago

The one i'm the most interested (Heads maintainer) is Nitrokey/nitrokey-hotp-verification#46, starting with it.

Ha. segfaults on nk2/lk https://github.com/Nitrokey/nitrokey-hotp-verification/pull/46#issuecomment-2503442845

tlaurion commented 2 days ago

Finally got an understanding that it doesn't make sense to not set a pin if no default pin is set at https://github.com/Nitrokey/nitrokey-hotp-verification/pull/46#issuecomment-2508143760

tlaurion commented 2 days ago

There is still two pins instead of one at https://github.com/Nitrokey/nitrokey-hotp-verification/pull/44#issuecomment-2508687329

tlaurion commented 2 days ago

A lot of misunderstanding around https://github.com/Nitrokey/nitrokey-hotp-verification/pull/45 around related issues.

There is no need to change pins if there is only one secure app pin which if locked requires reset, as opposed to gpg pins..... Seems like nitrokey attempts to reinvent the wheel and do patches on top of bad design.

Let's review what worked before here instead of under their issues and PR, since I'm not going to participate but sporadically more and more feeling like https://vimeo.com/800938284


Under gpg:

On devices prior of nk3

Nk3:

Therefore.

TLDR...... hotp-verification should

@daringer this is heads requirements. You have to decide what is best for nitrokey other secret app PIN; I have no voice there, but this is looping over Heads use case. Nitrokey chose to reinvent the wheel without consulting first. And current implementation is bogus.

Consequently. hotp_verification should also stop presenting false or misleading information:

That's it.


Added number of hours spent on this prior of even implementing changes needed under heads, feedback received after feature freeze original date set to 2024-11-20. Everything will land in my hands at the same time, I hope everyone will understand that it's not how things should work for healthy iterative development. Tag bounty added.