Digitally sign before publish? #67
-
Hi Team, Is there a way to digitally sign my package before publishing it to pypi? Is there a feature in here that allows for such a security publish? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Prasanth, It sounds like you're confusing two different aspects of the release flow. So let me first address that. I also want to mention that the "old way" will probably get phased out at some point and you shouldn't rely on it long-term. There is an effort of solving this problem "the right way" on scale with TUF and Sigstore but the timeline is blurry (but I haven't checked on the state of that development for a while now). I suggest you check the state of the ecosystem once in a while but meanwhile, you could try using the old signatures. Just know that there's no verification infrastructure that you could rely on at the moment. |
Beta Was this translation helpful? Give feedback.
Hi Prasanth,
It sounds like you're confusing two different aspects of the release flow. So let me first address that.
Publishing is the matter of sending the dists over HTTPS. So publishing itself is secure (to the extent of your trust to GHA to securely store your secrets).
Now, adding a signature is a whole other thing. Technically, PyPI still supports having signatures next to the dists but there's no proper tooling for working with them, and thus it's been discouraged for years as barely usable. If you put a signature file next to the dist,
twine upload
will pick it up and send it over to PyPI too.Since we mostly just call
twine upload
, there's no extra configuration necessary, just …