Skip to content

fix: pass usedforsecurity to hashlib.md5 to fix error on FIPS-enabled systems - #1366

Merged
adriangb merged 15 commits into
Kludex:masterfrom
adriangb:1365-use-usedforsecurity-parameter
Dec 17, 2021
Merged

adriangb merged 15 commits into
Kludex:masterfrom
adriangb:1365-use-usedforsecurity-parameter

Conversation

@adriangb

Copy link
Copy Markdown
Contributor

Closes #1365

@adriangb adriangb left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I wasn't sure about: do we want a test that monkey patches hashlib to verify that we are passing usedforsecurity=False? Seems like overkill to me

Comment thread starlette/_crypto.py Outdated
Comment thread starlette/_crypto.py Outdated
Comment thread starlette/responses.py
Comment thread starlette/_crypto.py Outdated
Comment thread starlette/responses.py Outdated
Comment thread starlette/_compat.py Outdated
@lovelydinosaur

Copy link
Copy Markdown

@adriangb Fantastic, thanks! I've invited you as a maintainer, so that you can merge this PR yourself.
You'll then be able to merge or approve other pull requests too. 👍

@adriangb
adriangb merged commit 0aef172 into Kludex:master Dec 17, 2021
@adriangb
adriangb deleted the 1365-use-usedforsecurity-parameter branch December 17, 2021 12:37
@adriangb

Copy link
Copy Markdown
Contributor Author

Worked perfectly, thank you Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ETag checksum fails on FIPS-enabled systems when using MD5

4 participants