feat: Indicate that md5 is used as a CRC#1522
Conversation
|
@chandra-siri can you please approve this workflows to run? This is currently blocking multiple deployments to access GCP storage when using Python in FIPS mode. |
Hi @xnox , Sorry for the late response. I've added a minor comment, also please apply the latest changes to your working branch. |
Some of system tests are failing, will re-approve once those are fixed
|
@chandra-siri I see that most checks are now passing on the mainline. I have rebased this PR. Would it manage to pass presubmit CI now? |
Hi @xnox , |
|
Thank you! Will look into fixing that mock. |
MD5 in storage helpers is used as a CRC function for non-cryptographically secure purposes. Ensure that md5 is initiated with `usedforsecurity=False` to ensure that Python in FIPS mode can fetch MD5 implementation for such non cryptographically secure purpose. This is no effective change on non-FIPS mode Python installations. This improves compatibility with most FIPS mode Python installations.
There are many other warnings about other mocks which print a lot of noise, but hopefully all of these are ok. The _MD5 mock is now updated and the test pass with at least one python version, I do not have older versions of python readily available to me. |
|
@chandra-siri ping, did you have a chance to look at the update code with fixup mock for the tests? |
|
@Pulkit0110 @chandra-siri are you able to review please? all previous feedback and testsuite failure have been addressed. |
Hey @xnox - sorry for the delay. It got skipped ! |
|
No worries, there were lots of holidays and events in the mean time. |
|
Does this PR need a label kokoro:run for CI to trigger? sort of expected it to report by now. |
|
CI looks green! Just need a second reviewer now. |
|
kokoro:force-run label needed again? |
MD5 in storage helpers is used as a CRC function for
non-cryptographically secure purposes. Ensure that md5 is initiated
with
usedforsecurity=Falseto ensure that Python in FIPS mode canfetch MD5 implementation for such non cryptographically secure
purpose.
This is no effective change on non-FIPS mode Python installations.
This improves compatibility with most FIPS mode Python installations.