3 steps to to make a Cloud Storage 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>Permissionstab >Public accesssection - Click
Remove public access preventionand confirm
2. Add permission for allUsers (e.g. to view objects)
- Go to the
Bucket details>Permissionstab >Permissionssection - Click
Addand fill in the following information, then clickSave- New principals:
allUsersorallAuthenticatedUsers - 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
Bucket details > Configuration tab > PermissionsAccess control field to Fine-grained
Nhận xét
Đăng nhận xét