Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Google Cloud signed URL invalidation

The Google Cloud signed URL documentation says:

"Anyone who knows the URL can access the resource until the expiration time for the URL is reached or the key used to sign the URL is rotated." How can I tell which key was used to sign a URL, and when it will be rotated? If I am using a service account to create the signed URL, is the service account’s key the key used to sign the URL?

Also, if I create a signed URL for file A, and then several minutes later create a second signed URL for file A, are both signed URLs valid? Or does the first signed URL become invalidated after the second is created?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

How can I tell which key was used to sign a URL, and when it will be
rotated?

The identity used to sign the URL is included in the Signed URL parameter key X-Goog-Credential.

If I am using a service account to create the signed URL, is the
service account’s key the key used to sign the URL?

Yes, the service account’s RSA private key is used.

Also, if I create a signed URL for file A, and then several minutes
later create a second signed URL for file A, are both signed URLs
valid? Or does the first signed URL become invalidated after the
second is created?

Both Signed URLs are valid. Creating a new Signed URL does not invalidate a previous one.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading