python
python copied to clipboard
Draft implementation of sigstore for alpine images
All supported python releases now have associated sigstore files available.
This enables sigstore verification in the alpine images using cosign. Unfortunately cosign 2.4+ is required which is only available in edge, package seems to work fine on 3.19/3.20.
Cosign is removed once the build completes.
Thank you for working on this! Unfortunately, mixing Alpine releases with packages from Edge is going to be something we're not comfortable with -- it often works, but it also often breaks, and the transition between those is usually unexpected and without warning, so we avoid using Edge entirely as a result. :disappointed:
Totally understandable and exactly why I marked this as a draft. And this independently verified your points mentioned in #977.
However a068d8102dd7988a8634a208c3314aafd21623ff is probably worth merging.
However a068d8102dd7988a8634a208c3314aafd21623ff is probably worth merging.
Can you elaborate? I left that in when I made #978 because I'd already done the work and it does work, so even if unused, it should be harmless (and I'm still not totally convinced extracting the SHA256 from the sigstore bundles is a great solution to simply getting checksums). It also gives us a fallback if the sigstore bundles happen to start using a different hash type (although I don't think that's actually a very likely scenario right now).
I'd actually love to improve our confidence in my really hacky extraction of the signature from the sigstore bundles by cross-referencing the SBOM explicitly, but I'd prefer even more to have officially published upstream checksums in a form that's intended for consumption (and then I'd remove both means of scraping a checksum from other data sources).