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.

  1. Go to the Bucket details > Permissions tab > Public access section
  2. Click Remove public access prevention and confirm

2. Add permission for allUsers (e.g. to view objects)

  1. Go to the Bucket details > Permissions tab > Permissions section
  2. Click Add and fill in the following information, then click Save
    1. New principals: allUsers or allAuthenticatedUsers
    2. Select a role: Storage Object Viewer

3. Change Access control to Fine-grained

  1. Go to the Bucket details > Configuration tab > Permissions
  2. Edit Access control field to Fine-grained

References



    Nhận xét

    Bài đăng phổ biến từ blog này

    Lái xe buổi 5, 6 ngày 21/12/2024

    Bán đồ trên Mericari (tiếp theo)

    Lái xe đi nhà Ngát 2025-02-23 Chủ nhật