Hacker News new | ask | show | jobs
by tsuraan 16 days ago
If the PGP key was generated on a yubikey, then the owner of the key can generate and publish an attestation certificate[0][1], and then anybody (including PyPI, I assume) can verify and "gold star" artifacts signed by gpg keys with verified attestations. Pulling a private key off a yubikey isn't super easy, at least not that I know of. Maybe other hardware keys can do similar things?

Seems more straightforward than custom stuff built on OIDC, but I'm not a security guy, so maybe I'm missing something?

[0] - https://developers.yubico.com/PGP/Attestation.html [1] - https://docs.yubico.com/software/yubikey/tools/ykman/OpenPGP...

1 comments

One missing bit of context here might be that PyPI used to support GPG signing your packages and barely anybody did it. And that’s not even with trying to push for hardware keys to limit user ability to make a mistake.

You can also look to FIDO2 / passkeys to see that a lot of the folks who have concerns about PyPI trusted publishing also view device attestation as a scourge.