Skip to content

Validate CRC32c if x-goog-hash header is present #2281

Closed
@jonasfj

Description

@jonasfj

The x-goog-hash header is present in responses from GCS, see: https://cloud.google.com/storage/docs/hashes-etags

Please note that if the object was transcoded by GCS then the has will be invalid.
Also the validate must happen before gzip decompression, if the response is gzipped, and the request must be made with Accept-Encoding: gzip.

If we get this wrong, we won't be able to gzip data in GCS in the future, let's aim to avoid that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions