How to disable google cloud storage bucket list from acl control?

前端 未结 4 494
误落风尘
误落风尘 2021-01-05 04:34

We\'re using google cloud storage as our CDN.

However, any visitors can list all files by typing: http://ourcdn.storage.googleapis.com/

How to disable it whi

4条回答
  •  心在旅途
    2021-01-05 04:46

    Your defacl looks good. The problem is most likely that for some reason AllUsers must also have READ, WRITE, or FULL_CONTROL on the bucket itself. You can clear those with a command like this:

    gsutil acl ch -d AllUsers gs://bucketname
    

提交回复
热议问题