Bug 1486212

Summary: Restore hashlib FIPS patch
Product: [Fedora] Fedora Reporter: Petr Viktorin (pviktori) <pviktori>
Component: python3Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: cstratak, mhroncok, pviktori, rkuska, tomspur, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-23 13:15:16 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:
Bug Depends On:    
Bug Blocks: 1724745, 1734126    

Description Petr Viktorin (pviktori) 2017-08-29 08:45:54 UTC
Patch 146 in python3.spec, which adds "usedforsecurity" arguments to hashlib functions (used to override FIPS mode restrictions in OpenSSL), was removed due to incompatibility with OpenSSL 1.1.0.
Reimplement and restore it.

The patch was removed in commit 737c23e8071caa7a8ac9573b677f1af3977f362c.

Comment 1 Fedora End Of Life 2018-02-20 15:26:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 2 Charalampos Stratakis 2018-04-19 14:02:17 UTC
WIP PR upstream: https://github.com/python/cpython/pull/5548

Comment 3 Petr Viktorin (pviktori) 2018-09-24 12:36:52 UTC
This is currently blocked by compatibility with OpenSSL 1.1.1.

Comment 4 Miro HronĨok 2019-04-16 13:15:23 UTC
Relevant upstream change of PEP 452 https://github.com/python/peps/pull/530

Comment 5 Ben Cotton 2019-05-02 19:40:38 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Petr Viktorin (pviktori) 2019-07-23 13:15:16 UTC
The "usedforsecurity" flags aren't useful for FIPS compliance in RHEL.
On the RHEL side, there might need to be some changes, and we'd like to push them upstream. But there's no reason to track this in Fedora.