Access tokens for Google Cloud Storage files

0

I'm uploading videos to a Google Cloud Storage project, what I want is something like Amazon, AWS Security Token Service (STS) I want the video can only access with the token for x number of minutes and always ask me a valid token to access the content. I've searched for information to do that with Cloud but I still do not find anything relevant.

Would I have to switch to AWS or what solution do you give me? Thanks.

    
asked by Angel Mendez 18.04.2018 в 23:26
source

1 answer

0

Viewing your use case, I understand that the Google Cloud Storage feature that best matches your requirements is Signed URLs .

Signed URLs is an authentication mechanism for buckets and objects stored in GCS, which provides read and / or write access with time limitation to anyone who has the URL (without the need to have from a Google account for it).

The Signed URLs documentation includes several examples that show how create Signed URLs with gsutil or even programmatically . More specifically, you can use the gsutil signurl command, with the different available flags (more information in the % documentation gsutil ) to create them easily. The -d flag allows you to specify the duration of the video.

    
answered by 11.05.2018 / 15:47
source