Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1469 Use a different checksum calculation method to run in FIPS env
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 self.blob.download_to_file(self._file) will fail when the system is running in FIPS mode. The change configures the `download_to_file` function to use an alternative algorithm provided by gcloud storage SDK - 'crc32c' - for checksum calculation.
- Loading branch information