-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd-build: Enable composeFS signing #3813
base: main
Are you sure you want to change the base?
Conversation
This is a first draft trying to implement a signed composeFS build following the steps in https://ostreedev.github.io/ostree/composefs/#signatures Right now the `ostree container image deploy` step fails with : `error: Reading composefs config: Loading composefs config: Invalid tri-state value: signed`
Skipping CI for Draft Pull Request. |
Also, a lot of osbuild errors :
|
PUBKEY="$(openssl pkey -outform DER -pubout -in ${TMPDIR}/${key_file} | tail -c 32 | base64)" | ||
|
||
## write the pubkey in overrides | ||
echo $PUBKEY > ${workdir}/overrides/rootfs/etc/ostree/initramfs-root-binding.key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be
echo $PUBKEY > ${workdir}/overrides/rootfs/etc/ostree/initramfs-root-binding.key | |
mkdir -p ${workdir}/overrides/initramfs/etc/ostree | |
echo $PUBKEY > ${workdir}/overrides/initramfs/etc/ostree/initramfs-root-binding.key |
I think this would make sense to do after rebasing FCOS on bootc i.e. after coreos/fedora-coreos-tracker#1726 as that would help drive code and build system sharing more. I filed https://gitlab.com/fedora/bootc/tracker/-/issues/14 specifically related to this. |
See also discussions in https://gitlab.com/fedora/bootc/tracker/-/issues/2. |
edit : mistake on my side: I forgot to pop a git stash entry and was building with composeFS enabled on but not signed. I am unable to get the needed rpm-ostree change in a cosa container to make the build completeAfter building I also set Some further notes :
|
This is a first draft trying to implement a signed composeFS build following the steps in https://ostreedev.github.io/ostree/composefs/#signatures
Right now the
ostree container image deploy
step fails with :error: Reading composefs config: Loading composefs config: Invalid tri-state value: signed