Bug 1394318

Summary: Change in format of DN reporting in 3.5.6 breaks compatibility for libvirt
Product: [Fedora] Fedora Reporter: Daniel BerrangĂ© <berrange>
Component: gnutlsAssignee: Nikos Mavrogiannopoulos <nmavrogi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: nmavrogi, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnutls-3.5.7-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-09 22:29:47 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 Daniel Berrangé 2016-11-11 17:13:20 UTC
Description of problem:
Previously the client cert DN would get reported as

    C=UK,CN=libvirt

and with new version we're getting back

    CN=libvirt,C=UK

This is causing a regression for libvirt. The libvirt server has ablity
to set a whitelist against the DN string, against which we do a regex
match.

eg the sysadmin may have defined a whitelist of

    C=UK,CN=libvirt-client-*

to allow all certs issed to libvirt clients.

This change in DN ordering by gnutls breaks any existing whitelists
our admins have setup, as well as breaking the libvirt test suite
which validates this.

Also reported at https://lists.gnupg.org/pipermail/gnutls-devel/2016-November/008224.html

Just filing this bug to track request that 3.5.6 not be pushed to Fedora 25 updates

Version-Release number of selected component (if applicable):
3.5.6-1.fc25

Comment 1 Nikos Mavrogiannopoulos 2016-11-14 08:58:32 UTC
https://gitlab.com/gnutls/gnutls/merge_requests/140

Comment 4 Fedora Update System 2016-12-08 09:08:06 UTC
gnutls-3.5.7-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4b4b8f7e3d

Comment 5 Fedora Update System 2016-12-08 19:26:36 UTC
gnutls-3.5.7-1.fc25 has been pushed to the Fedora 25 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-2016-4b4b8f7e3d

Comment 6 Fedora Update System 2016-12-09 22:29:47 UTC
gnutls-3.5.7-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.