Skip to content

Mark non-security md5 usage to allow for compatibility with fips environments#1288

Open
lratc wants to merge 1 commit intoapache:trunkfrom
lratc:fips_compatibility_mark_non_security_md5
Open

Mark non-security md5 usage to allow for compatibility with fips environments#1288
lratc wants to merge 1 commit intoapache:trunkfrom
lratc:fips_compatibility_mark_non_security_md5

Conversation

@lratc
Copy link
Copy Markdown

@lratc lratc commented Apr 23, 2026

As per python/cpython#53462 hashlib.md5() takes an implicit "usedforsecurity=True" argument. In a FIPS-140 environment, this causes the cassandra-python-driver to error as md5 is not permitted for security usage.

ModuleNotFoundError: No module named 'md5'

Within the context of this package, the token is not used for security - this is used for an internal hashing function only, so marking it as usedforsecurity=False is a straightforward method to permit its usage without affecting compatibility.

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.

1 participant