Is your feature request related to a problem? Please describe.
Currently the tar.gz of gcloud downloaded from GCS is not verified once downloaded. It should be checked against a hash to ensure it was downloaded correctly.
Describe the solution you'd like
GCP Storage APIs for GCS Object Get support fetching a crc32c and md5Hash field in the metadata. We should leverage those to ensure the file is correct once downloaded.
Describe alternatives you've considered
NA
Additional context
Google recommends using crc32c over md5. Importantly, crc32c is NOT the same as crc32.
Is your feature request related to a problem? Please describe.
Currently the
tar.gzofgclouddownloaded from GCS is not verified once downloaded. It should be checked against a hash to ensure it was downloaded correctly.Describe the solution you'd like
GCP Storage APIs for GCS Object Get support fetching a
crc32candmd5Hashfield in the metadata. We should leverage those to ensure the file is correct once downloaded.Describe alternatives you've considered
NA
Additional context
Google recommends using
crc32covermd5. Importantly,crc32cis NOT the same ascrc32.crc32cinstalled viapipin thegcloudGoogle Cloud Builder: https://github.com/GoogleCloudPlatform/cloud-builders/blob/cb2df7028a2127d4ac0b8df34fc9d9fb8a5147ad/gcloud/Dockerfile.slim#L20