Open markesha opened 3 weeks ago
Thanks @markesha for opening an issue.
That would make sense indeed to use something else than MD5. Feel free to suggest a PR :)
Else, I'll try to look into it, but I can't commit on any time frame :)
@David-Wobrock here you go https://github.com/3YOURMIND/django-migration-linter/pull/293
Python 3.10 and later versions rely on OpenSSL 1.1.1 or newer, which includes FIPS-compliance checks.
MD5 is not an approved algorithm in FIPS mode, so attempting to instantiate hashlib.md5() in _get_migrationhash will fail when the system is running in FIPS mode.
Since MD5 is used in a non-security context, the usedforsecurity flag should be added.
The same issue in Django https://github.com/django/django/commit/d10c7bfe56f025ccc690721c9f13e7029b777b9c