Repository navigation
Tests: Avoid MD5 or check for MD5 availablity #82451
Copy link
Copy link
Closed as not planned
Labels
3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifependingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedperformancePerformance or resource usagePerformance or resource usagetestsTests in the Lib/test dirTests in the Lib/test dir
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = 'https://github.com/tiran'
closed_at = None
created_at = <Date 2019-09-25.10:09:58.731>
labels = ['3.8', '3.7', 'tests', '3.9', 'performance']
title = 'Tests: Avoid MD5 or check for MD5 availablity'
updated_at = <Date 2019-12-05.16:51:37.334>
user = 'https://github.com/tiran'bugs.python.org fields:
activity = <Date 2019-12-05.16:51:37.334>
actor = 'miss-islington'
assignee = 'christian.heimes'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2019-09-25.10:09:58.731>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 38270
keywords = ['patch']
message_count = 10.0
messages = ['353162', '353204', '353216', '353358', '353548', '353553', '354497', '357571', '357754', '357866']
nosy_count = 7.0
nosy_names = ['vstinner', 'christian.heimes', 'ned.deily', 'petr.viktorin', 'lukasz.langa', 'cstratak', 'miss-islington']
pr_nums = ['16382', '16393', '16418', '16437', '17446', '17450']
priority = 'high'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'resource usage'
url = 'https://bugs.python.org/issue38270'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.7 (EOL)end of lifeend of life3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of lifependingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedperformancePerformance or resource usagePerformance or resource usagetestsTests in the Lib/test dirTests in the Lib/test dir
Activity
tiran commentedon Sep 25, 2019
MD5 hash digest algorithm has known security issues and is getting blocked on systems with strict security policies.
Python uses MD5 in several unittests. These tests should either avoid MD5 and use SHA256 instead. Or tests that really require MD5 should check for the availability of MD5 and skip these tests. The latter are network-related tests that check for digest auth or CRAM-MD5 auth.
Avoidable use of MD5:
Tests that require MD5:
miss-islington commentedon Sep 25, 2019
New changeset c64a1a6 by Miss Islington (bot) (Christian Heimes) in branch 'master':
bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382)
c64a1a6
miss-islington commentedon Sep 25, 2019
New changeset 66cd041 by Miss Islington (bot) in branch '3.8':
[3.8] bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) (GH-16393)
66cd041
miss-islington commentedon Sep 27, 2019
New changeset 9055815 by Miss Islington (bot) (Christian Heimes) in branch 'master':
bpo-38270: More fixes for strict crypto policy (GH-16418)
9055815
ambv commentedon Sep 30, 2019
New changeset bfca56b by Łukasz Langa (Christian Heimes) in branch '3.8':
[3.8] bpo-38270: More fixes for strict crypto policy (GH-16418) (bpo-16437)
bfca56b
vstinner commentedon Sep 30, 2019
Can we close the issue?
ned-deily commentedon Oct 11, 2019
It looks like Christian originally requested autobackports to both 3.8 and 3.7 but both failed due to git checkout errors. He then manually restarted the 3.8 backport but it looks like the 3.7 one did not get restarted. Christian, was that intentional or just an oversight? If the latter, you should try the 3.7 backport again.
encukou commentedon Nov 27, 2019
The change silently disables 2 tests, see comment here:
66cd041#diff-ba7d7a4a1a0050e1f497b71b5cd50afcR365
(I think it's better to reopen this bug, than to open a new one, so all the fixes are in one place. Do you agree?)
miss-islington commentedon Dec 3, 2019
New changeset 8943318 by Miss Islington (bot) (stratakis) in branch 'master':
bpo-38270: Fix indentation of test_hmac assertions (GH-17446)
8943318
miss-islington commentedon Dec 5, 2019
New changeset cfdaf92 by Miss Islington (bot) in branch '3.8':
[3.8] bpo-38270: Fix indentation of test_hmac assertions (GH-17446) (GH-17450)
cfdaf92
iritkatriel commentedon Sep 9, 2022
Is there anything left to do here?