-
Notifications
You must be signed in to change notification settings - Fork 49
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
repo_gpgcheck fails if key is not already imported #471
Comments
Thanks for reporting. I will take a look. |
Okay, I can reproduce this. I think it is not a very big deal though because you can just import the key ( |
That's your call but I maintain that this is a bug that should be fixed. Notably dnf does not do this, it installs the key and proceeds without error. And it's problematic if you are a repo maintainer, not the user, because there's no way to bootstrap users into using your repo by just giving them a repo file if you're using this feature. I could also imagine problems that might arise if your singing key was compromised and you had to migrate to a new one. It's an extra friction point that could be removed. |
I am also encountering this issue on the
|
Describe the bug
If your .repo file has specified
repo_gpgcheck=1
to check the gpg signature of repo metadata, synchronizing the repo cache fails if the gpg key is not already imported. What it should do instead is install the gpg keys fromgpgkey
and try again, likegpgcheck
does.Reproduction steps
Expected behavior
The installation should succeed. The gpgkey should be read and imported from the
gpgkey
option, and then checking the metadata signature should work.Additional context
Tested on
tdnf: 3.5.2
The text was updated successfully, but these errors were encountered: