Cloud Storage signed url doc: https://cloud.google.com/storage/docs/access-control/signed-urls
Cloud CDN signed url doc: https://cloud.google.com/cdn/docs/using-signed-urls
What's the difference between them? I am confused which one should I use.
Here is my case:
I want to make my bucket and objects from the public to not public which means I will remove allUsers
member from the permissions.
I am looking for a way that the users of my application can access the objects (images, media) with some authentication. Otherwise, all users on the internet will access my bucket and objects. The users don't need to have Google accounts, so I think IAM
and ACL
are not the correct ways.
I am not sure cloud storage signed url is the correct way. And there is another issue is I already stored many URLs in my database with cloud storage object public url like this:
https://storage.googleapis.com/ez2on/1536250853638-NN.jpg
When a client(Front-End) try to access this data, how should I do to generate signed url for these old data in my backend?
Thanks for your advice.