|
|
|
|
|
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... |
|
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.