Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google cloud storage - signed urls - one time access

we are planning to use Google cloud storage with signed urls that we can give to users.

So we upload a document Generate the signed url (using the details mentioned here: https://developers.google.com/storage/docs/accesscontrol#Signed-URLs)

The issue is that google (or) aws etc.. they provide expiration time for the URLs (say : few min/ few hours/ few days etc..) But we want the urls to expire after certain number of requests

Let us say, I generate the URL and send to my user (with some 4 hrs expiration) and we want that url to expire after user access the URL for 2nd time (when the user access the URL for 3rd time, it (google) should not return the data.

Is this possible?

like image 992
Kumar D Avatar asked Sep 04 '25 01:09

Kumar D


1 Answers

This is not currently possible.

like image 156
Travis Hobrla Avatar answered Sep 07 '25 19:09

Travis Hobrla