blue-build / cli

BlueBuild's command line program that builds custom Fedora Atomic images based on your recipe.yml
https://blue-build.org/
Apache License 2.0
76 stars 9 forks source link

fix: Updating policy.json to properly verify images #84

Open gmpinder opened 9 months ago

gmpinder commented 9 months ago

We need to look into some workflow to handle properly verifying images before rebasing on a signed keyless image.

xynydev commented 9 months ago

https://www.mankier.com/5/containers-policy.json#Policy_Requirements-sigstoreSigned

gmpinder commented 9 months ago

After conversations in the ublue discord, we found the following bits of information:

Further development could go into a workflow in blue-build to update the user's policy.json to allow keypair signed images and to also download the pub file ahead of time so that a user could easily rebase to a signed image.

gmpinder commented 9 months ago

@gerblesh just posted this in the Ublue discord. Something to follow

https://github.com/containers/image/pull/2235

gmpinder commented 6 months ago

Another related issue https://github.com/coreos/rpm-ostree/issues/4272

jmpolom commented 6 months ago

We need to look into some workflow to handle properly verifying images before rebasing on a signed keyless image.

What you're after appears to be completely broken/unsupported by the underlying libraries used. Until Red Hat improves them (or you choose to do so and donate your work to Red Hat -- assuming their maintainers agree to merge your changes) your only option is to use static key files which in my opinion adds so little security as to be not worth the effort.

xynydev commented 4 months ago

which in my opinion adds so little security as to be not worth the effort.

It is also required for secure boot to work AFAIK.

jmpolom commented 4 months ago

which in my opinion adds so little security as to be not worth the effort.

It is also required for secure boot to work AFAIK.

Container signing has absolutely nothing to do with EFI secure boot. At all. Ever.

xynydev commented 4 months ago

Sure, ok, that might be a misconception that I've gotten from somewhere. I could not find much information either way online, and I'm too lazy to test it out lol. Regardless, it's a standard way to add a little bit of security by making it possible to verify that a published image was signed with a key from the maintainer.