samhclark / custom-silverblue

Following Jorge Castro's lead and making my own spin on Silverblue
0 stars 1 forks source link

Also sign images with Cosign #12

Closed samhclark closed 1 month ago

samhclark commented 1 month ago

So, I decided that I wanted to pair GitHub Attestations with Cosign signatures anyway.

The threat model is kinda weird though.

With just Attestations, if someone took over and replaced the repo with the same one, same name, then they could still push images and make attestations for that image. It's just proving that the repo named "samhclark/custom-silverblue" built the images. So if they could like, rename my account. Or delete my account and takeover the namespace.

With just the Cosign signing, if the keys were exfiltrated somehow, and an attacker got upload access to GHCR, then they could sign and upload malicious images.

So, doing both together means that I can verify:

It's a little flimsy. I'm not totally sure that both were necessary. But, I'm also using this as an excuse to practice with cosign and attestations a little so it's not a big deal.