Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1500533

Summary: DNF installs packages without verifying signatures
Product: [Fedora] Fedora Reporter: Michael Kuhn <suraia>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dmach, ffesti, ignatenko, jmracek, mhatina, mjw, packaging-team-maint, pmatilai, pmoravco, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.14.0-2.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-17 00:15:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Kuhn 2017-10-10 20:59:35 UTC
Description of problem:
I am also filing this here because I think this might be a security problem. On a freshly installed Fedora 27 system, DNF installs packages without having an appropriate key installed. This seems to be due to a bug in RPM, please see: https://github.com/rpm-software-management/rpm/issues/330

Version-Release number of selected component (if applicable):
dnf.noarch  2.7.3-1.fc27         @updates-testing
rpm.x86_64  4.14.0-0.rc2.3.fc27  @updates-testing

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora 27 (beta)
2. dnf install $package

Actual results:
DNF installs the package without prompting to import the key

Expected results:
DNF only installs the package if the appropriate key is imported first

Comment 1 Panu Matilainen 2017-10-11 13:53:55 UTC
This is a bug (regression) in rpm, switching component.

Comment 2 Panu Matilainen 2017-10-11 13:58:20 UTC
Fixed upstream: https://github.com/rpm-software-management/rpm/commit/e6c88eaeab3661f5fb180b970cafba233bcd999a

Will fix Fedora tomorrowish.

Comment 3 Fedora Update System 2017-10-12 14:33:01 UTC
rpm-4.14.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0d1c2f84a4

Comment 4 Fedora Update System 2017-10-13 06:25:24 UTC
rpm-4.14.0-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0d1c2f84a4

Comment 5 Fedora Update System 2017-10-17 00:15:35 UTC
rpm-4.14.0-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.