Skip to content
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

libdnf ignores https:// gpgkey URLs if baseurl is file:// #143

Open
ktdreyer opened this issue Aug 6, 2024 · 0 comments
Open

libdnf ignores https:// gpgkey URLs if baseurl is file:// #143

ktdreyer opened this issue Aug 6, 2024 · 0 comments

Comments

@ktdreyer
Copy link

ktdreyer commented Aug 6, 2024

microdnf will ignore a repo's gpgkey URL if it is https:// when the repo's baseurl is file://.

Here's an example /etc/yum.repos.d/build.repo file that triggers this:

[build]
name = my builds
baseurl = file:///build
enabled = 1
gpgcheck = 1
gpgkey = https://www.example.com/MY-RPM-GPG-KEY

microdnf will say that the packages in this repo are unsigned and refuse to install them. It will not import the GPG key.

dnf will download GPG key over HTTPS, add it to the trust store, and properly verify the packages.

As a workaround, I must download the GPG key to local disk, and then use a file:// URL for gpgkey. Then microdnf will import the key as expected.

Tested with:

  • libdnf-0.69.0-8.el9
  • microdnf-3.9.1-3.el9
  • dnf-4.14.0-9.el9
@jan-kolarik jan-kolarik transferred this issue from rpm-software-management/libdnf Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant