Make GCS bucket public
We need 3 configurations to make a bucket public to everyone.
1. Remove public access prevention
A bucket cannot be accessed by public as the default. So we need to remove public access prevention.
- Go to the
Bucket details
>Permissions
tab >Public access
section - Click
Remove public access prevention
and confirm
2. Add permission for allUsers (e.g. to view objects)
- Go to the
Bucket details
>Permissions
tab >Permissions
section - Click
Add
and fill in the following information, then clickSave
- New principals:
allUsers
orallAuthenticatedUsers
- Select a role:
Storage Object Viewer
- New principals:
3. Change Access control
to Fine-grained
- Go to the
Bucket details
>Configuration
tab >Permissions
- Edit Access control field to
Fine-grained
References
https://cloud.google.com/storage/docs/access-control/making-data-public#buckets