-
Notifications
You must be signed in to change notification settings - Fork 4
Cosign creates private key file that isn't working #4
Comments
Yep... I've also run into this.
The latest cosign github action is now v3.0.1 or v3.0.2 or something ... and it does seem cosign action 3 (using cosign 2) is not backward compatible with cosign 1 keys. Though, I didn't experience this specifically with the create-ublue-image script, rather by having an older key in my repo and then upgrading the cosign action and then having troubles. |
For me, it creates a key starting with Edit: #5 was the issue I was experiencing. After it being ✨ magically sorted out, ~~I'm having no signing issues as of right now. ~~ Edit2: Apparently after #5 my key now starts with Issue succesfully reproduced, yay. Edit3: This being based on alpine, there's no way to go back to cosign v1 (I'm not sure if that even is the intended direction to take). It's odd then that it doesn't work as from what I understand from yall, the action is using v2 too? But, here's our culprit sigstore/cosign#2735 (new change in v2.0.1). It seems that cosign installer defaults to that version (newest) too (sigstore/cosign-installer@9e9de22), so I'm not sure why it wouldn't work, as per my understanding, both the GHA and this container image should be using the same version of cosign... Edit4: I changed |
Update: Startingpoint has now been updated to use the same signing steps in I think we're done here. |
Cosign 2 (which is what's being used now in the alpine container) seems to produce a different private key file that isn't working, it's PEM header starts with:
compared to from previous versions:
This seemingly leads to the following error during the signing step:
The text was updated successfully, but these errors were encountered: