Hacker News new | ask | show | jobs
by samhclark 20 days ago
This is great! I want sigstore-based or at least sigstore-style "keyless" short lived signatures to become more and more popular, so that support gets better everywhere. In particular, if having secure OIDC handling in a CI/CD pipeline becomes something that keeps people on GHA or GitLab then I'd hope third-party hosted CI/CD services begin to take that gap seriously and work on meeting those requirements.

I'm bought in on keyless signing, and I want there to be many more providers, so I like to see more adoption which builds more momentum.

2 comments

>I'd hope third-party hosted CI/CD services begin to take that gap seriously and work on meeting those requirements.

How is a third party service, especially a self-hosted one, expected to meet those requirements? They seem to be lengthy, onerous, and also require a detailed vetting by the pypi team that is unlikely to scale beyond a few large hosting providers.

(What's more, this does relatively little to actually signal trust to someone downloading them. All it does is provide a signature that one of the big providers has built the package from a given source (but nothing about the trustworthiness of that source). This is a problem much better solved by reproducable builds and distributed verification of those builds)

Sorry, by "hosted" I meant "not self-hosted" but I see how that's super unclear.

I don't mean just PyPI either. The list of acceptable OIDC providers with Sigstore/Cosign is short too: GitHub, GitLab, Google, Microsoft, and I _think_ BuildKite and Octopus? (But maybe only if the runner is in GHA?) It's really that last category that I'm talking about here (BuildKite and Octopus). No reason that I have to be tied to GitHub or GitLab, so I'd love to see this proliferation of trusted OIDC issuers that PyPI, NPM, Sigstore etc trust.

That's all I mean. If one of them, like BuildKite, believes this is important, because users expect trusted publishing, then this could be the kind of motivation which helps.

Still, agreed about reproducible builds, I just think that didn't really catch on beyond OS packages and Go. (Just my impression) So, if an easy-mode signature system can be created here, that could be a win for everyone.

Tangled and Codeberg both seem to support issuing JWTs during actions runs.

Codeberg: https://codeberg.org/mfenniak/oidc-jwt Tangled: https://tangled.org/docs/spindles/workflows/#audience

I think OIDC tokens from workflows is basically table stakes at this point, since the alternative is a static secret, which is basically guaranteed to leak eventually.

All that's left is for PyPI to accept these tokens in their set of trusted publishers.

Please see the other comments in this thread (as well as on PyPI's issue tracker) for some important context here. It's not enough to throw JWTs over the wall, PyPI also needs to know that it can trust any given service to operationalize the ugly and risk-prone parts of managing PKI.

(I haven't looked at Tangled at all. If Tangled has a secret management story for its PKI that's stronger than a private key on disk and can demonstrate that a non-trivial number of PyPI users would benefit from federation, then it's a strong candidate.)

Sorry I didn't intend to insinuate that pypi should necessarily accept any old tokens just because they're there. Just that increasingly OIDC is more and more an option, which is generally a good thing.

PKI definitely is still hard, but if it can be done well by a smallish number of trusted parties to the benefit of their users, this can have huge ecosystem benefits. Let's hope we live in that timeline.