Building Google Cloud Storage Signed URLs
Signed URLs can be used to allow temporary access to private objects stored in Google Cloud Storage. In this article, we are going to learn how to generate a signed URL using Rust, but the steps should be easily translatable to your language of choice.
The final result
Google provides documentation on how to generate a signed URL, but even following those instructions, it took me a few tries to get it right, so I’m going to try to give an explanation here.
A signed URL looks like this:
1
https://storage.googleapis.com/<BUCKET_NAME>/<OBJECT_PATH>?<CANONICAL_QUERY_STRING>&X-Goog-Signature=<SIGNATURE>