python / release-tools

Scripts for making (C)Python releases
41 stars 34 forks source link

Enable use of Azure Trusted Signer for code signing #172

Closed zooba closed 1 month ago

zooba commented 1 month ago

This isn't quite ready to merge - I'm hoping we can get Nuget signing sorted first. But if not then I'll remove the certificate requirement from upload and we'll just go back to unsigned packages (the contents are still signed).

Everything else will sign with our new Azure Trusted Signer account.

I need to update the readme.

zooba commented 1 month ago

So the story on Nuget signing is that it's possible with a new .NET sign tool, but that tool insists on opening the package and re-signing everything inside. It does this for MSIX packages as well, which actually leads to a failure because it signs files that it shouldn't be trying to sign.

I've requested an option to bypass this, which would make it a totally suitable tool. Until then, it seems fine to skip NuGet packages for the time being (NuGet can't validate Azure Trusted Signing packages anyway).

zooba commented 1 month ago

Hopefully the build at https://dev.azure.com/Python/cpython/_build/results?buildId=156601&view=results will succeed (without publishing), and if so then the build changes are good. Just need to update readme docs.

zooba commented 1 month ago

I'm running one more full test run (including PGO) to make sure it all works with the current tip, and then yes.