test: Set up local RPM signing key for package tests#22894
test: Set up local RPM signing key for package tests#22894martinpitt merged 1 commit intocockpit-project:mainfrom
Conversation
Rawhide now enforces rpm signatures by default [1]. To be able to install our test RPMs, set up a local signing key. This happens lazily the first time an RPM is built. [1] https://fedoraproject.org/wiki/Changes/Enforcing_signature_checking_by_default
|
Lol -- now COPR/packit/testing farm fall into the same trap when installing the built packages:
This is outside of our domain. In the meantime you can trust me that I validated that on our |
|
I triggered a fedora-rawhide/expensive run. Not sure to what degree that even works, as we don't routinely do this, but let's see 🤞 |
Oh this is a sea of red, applying updates PackageKit crashed.. Testing farm's rawhide run also ran into issues but that is infra related. |
|
I re-triggered testing farm's rawhide. |
jelly
left a comment
There was a problem hiding this comment.
Its really hard to judge for me if this works or not, one interesting snippet is:
Generating key rpmbuild-root@fedora-rawhide-127-0-0-2-2201
Exporting public key (certificate) to /root/.config/rpm/rpmbuild-root@fedora-rawhide-127-0-0-2-2201.asc
Setting up gpg autosigning in /root/.config/rpm/macros
To import this public key (certificate), run:
sudo rpmkeys --import /root/.config/rpm/rpmbuild-root@fedora-rawhide-127-0-0-2-2201.asc
|
Our own fedora-rawhide images don't seem to enforce signatures yet. Getting testing-farm:fedora-rawhide-x86_64:self green here should be enough proof. |
Ah right, that doesn't work bc of the signatures. |
|
cockpit-project/bots#8740 has been merged so our fedora-rawhide image should now have a signature enforcing rpm. |
|
With the signature enforcing fedora-rawhide image (fedora-rawhide-0baabca0fd69e8653e215af089d49f89ace751068d81eea215a53b6224ef0c4b) but with this PR: The test succeeds with this PR. Approved! |
Rawhide now enforces rpm signatures by default [1]. To be able to install our test RPMs, set up a local signing key. This happens lazily the first time an RPM is built.
[1] https://fedoraproject.org/wiki/Changes/Enforcing_signature_checking_by_default
This fixes the recent package test failures on rawhide.