Signature issue when rebasing to signed image.

I'm trying to set up a laptop with the image I've been using on my desktop for a few months. I was able to successfully rebase to the unsigned image, but when trying to rebase to the signed image, I'm getting the following error
error: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: A signature was required, but no signature exists
error: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: A signature was required, but no signature exists
I haven't changed the cosign key I'm using, and it seems like it's stored in both /etc/pki/containers and /usr/etc/pki/containers. How can I resolve this?
Solution:
Thanks for the responses! It seemed like maybe it was just because my github action build failed, but I didn't think of looking at that. Once a new pipeline successfully finished and I upgraded to the newly built unsigned image I was able to rebase to the signed image. Before upgrading, I did do a diff of both policy.json and they were the same. So, I'm pretty confident something went wrong with the failed pipeline.
Jump to solution
3 Replies
Luke Skywunker
Luke Skywunker3mo ago
Try copying /usr/etc/containers/policy.json to /etc/containers/policy.json It's possible those got out of sync at some poiint
xyny
xyny3mo ago
if you have intentionally made policy.json changes you can just port those over manually
Solution
uncountable
uncountable3mo ago
Thanks for the responses! It seemed like maybe it was just because my github action build failed, but I didn't think of looking at that. Once a new pipeline successfully finished and I upgraded to the newly built unsigned image I was able to rebase to the signed image. Before upgrading, I did do a diff of both policy.json and they were the same. So, I'm pretty confident something went wrong with the failed pipeline.
Want results from more Discord servers?
Add your server