user25730
user25730

Reputation: 709

Make a bucket writeable, but only from a specific domain (or specific Google accounts)

I've got a Google Cloud Storage bucket which is going to be used to store photographs, and a website to upload the photos from. Uploading is working fine for me from my Google account, but I need to know how to get it so that others can upload too. Basically, one of two scenarios:

1 - since my website is quite secure, it could be so that anyone in that domain can upload, but not outside that domain

2 - the company I work for has loads of Google accounts, and everyone uploading will have a Google account under our company (e.g. [email protected]). If we could make it so that only our accounts can upload that would probably be better

Either of those scenarios would be great.

Upvotes: 1

Views: 45

Answers (1)

user25730
user25730

Reputation: 709

Seems to have worked - for those interested, I went to the bucket permissions and set up a new permission, using the Domain entity, for mywebsite.co.uk as a writer. This makes it so that anyone outside this domain, or not signed into Google, can't access, but [email protected] can.

Upvotes: 1

Related Questions