如何从ACL控件禁用Google Cloud Storage存储桶列表? [英] How to disable google cloud storage bucket list from acl control?

查看:97
本文介绍了如何从ACL控件禁用Google Cloud Storage存储桶列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Google云存储作为CDN。

We're using google cloud storage as our CDN.

但是,任何访问者都可以通过键入以下内容列出所有文件: http://ourcdn.storage.googleapis.com/

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

如何在默认情况下,存储桶下的所有文件仍是公共可读的?

How to disable it while all the files under the bucket is still public readable by default?

我们先前使用

gsutil defacl ch -g AllUsers:READ 


推荐答案

您的默认设置看起来不错。问题很可能是由于某种原因,AllUsers还必须在存储桶本身上具有READ,WRITE或FULL_CONTROL。您可以使用以下命令清除它们:

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

这篇关于如何从ACL控件禁用Google Cloud Storage存储桶列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆