Skip to content

Check MD5 & SHA1 usage#8542

Open
sfayer wants to merge 1 commit into
DIRACGrid:integrationfrom
sfayer:mark_hashlib
Open

Check MD5 & SHA1 usage#8542
sfayer wants to merge 1 commit into
DIRACGrid:integrationfrom
sfayer:mark_hashlib

Conversation

@sfayer
Copy link
Copy Markdown
Member

@sfayer sfayer commented May 19, 2026

Hi,

I've looked through all of the usage of MD5 & SHA1 in the codebase... The majority of these are just protection for accidental corruption and caching (where the input parameters aren't user controlled). I've marked these as usedforsecurity=False. (This flag doesn't do anything on non-FIPS systems, but is picked up by security scanners as a hint).

There is one place in the proxy cache where I swapped md5 out for truncated sha256: This doesn't make an enormous amount of difference and is more an "abundance of caution" style change.

Regards,
Simon

BEGINRELEASENOTES
*All
FIX: Mark md5/sha1 usage as not used for security where appropriate.
*Core
FIX: Use truncated sha256 for proxy hash (caching) rather than md5.
ENDRELEASENOTES

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