Skip to content

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

@ktdreyer

Description

@ktdreyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions