I am trying to generate the signed url for the Google cloud storage object without expiration time. But when I am creating the signed url with V4 signing process, it is getting expired after seven days.
Is there any alternative to achieve this?
Also, what was the expiration time of V2 signing process?
The intent with Signed URLs is to provide (time-)limited access to a Cloud Storage URL.
Take away the time limitation and you may wish to consider just making the URL public.
Signed URLs are accessible to anything that has the URL. So, if you're concerned with discovery of guessable URLs (e.g. my-bucket/my-object-path) then you could consider obfuscating the object name, perhaps using base64-encoding to make the URL less-guessable although easily derivable:
my-bucket/my-object-path --> my-bucket/bXktb2JqZWN0LXBhdGg=
Create the generated signed url without expiration time for Google cloud storage object