Search code examples
pythongoogle-cloud-storagepre-signed-urlsigned-url

Google Storage creating Signed Urls with your own program rather using google cloud libraries


Google Storage allows using custom created signed urls as advertised in the following link : V4 signing process with your own program

What is the reason for that ? Will this be faster than requesting a signed url for each of the objects in google storage ?


Solution

  • The purpose is to provide a way to sign URL without needing one of the provided Cloud Storage client libraries. Since it's a rest API, you can call it from any language you want that can make HTTP requests and perform RSA signatures. From that page you linked:

    This page describes an algorithm for implementing the V4 signing process so that you can create Cloud Storage RSA key signed URLs in your own workflow, using a programming language of your choice.

    The example shown is in python, but the text makes it clear that:

    The sample uses the Python programming language, but does not use the Cloud Storage Client Libraries: