Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fall back to sha1 if md5 is not available #354

Closed
wants to merge 1 commit into from

Conversation

daviddavis
Copy link

In FIPS mode, md5 is not available. In such cases, fall back to sha1.
See https://docs.python.org/3/library/hashlib.html for more info.

This change is based on something similar to what celery
did
.

This is needed for https://jira.mongodb.org/browse/PYTHON-1520.

In FIPS mode, md5 is not available. In such cases, fall back to sha1.
See https://docs.python.org/3/library/hashlib.html for more info.

This is needed for https://jira.mongodb.org/browse/PYTHON-1520.
@behackett
Copy link
Member

behackett commented May 21, 2018

Thanks for the pull request. We're currently planning a change to all drivers to avoid this problem and it likely won't involve sha1, which will almost certainly be banned by FIPS in the future. Whatever change we make will happen in PyMongo's next release. Follow https://jira.mongodb.org/browse/PYTHON-1521 (or https://jira.mongodb.org/browse/PYTHON-1520) for updates.

@behackett behackett closed this May 21, 2018
@behackett
Copy link
Member

@daviddavis - I've resolved https://jira.mongodb.org/browse/PYTHON-1521. We've switched to using FNV-1a, a non-cryptographic hash avoiding FIPS issues now and in the future.

@daviddavis
Copy link
Author

@behackett awesome. thank you for the update!

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.

2 participants