谷歌存储桶上传权限

时间:2013-05-13 08:49:30

标签: acl google-cloud-storage gsutil

我尝试使用Google cloud storage documntation中的说明创建“供应商保管箱” 下面执行了一系列命令:

创建存储桶

gsutil  mb gs://customer-10    

添加外部用户权限

gsutil chacl  -u user@company.com:FC gs://customer-10

添加默认acl

gsutil chdefacl  -u -u user@company.com:FC gs://customer-10

使用命令验证acl修改 gsutil getacl gs://customer-10(已成功验证)

     <Entry>
    <Scope type="UserByEmail">
        <EmailAddress>user@company.com</EmailAddress>
        <Name>firstname lastname</Name>
    </Scope>
    <Permission>FULL_CONTROL</Permission>
</Entry>

但是当用户访问存储桶时,使用该链接 https://storage.cloud.google.com/?arg=customer-10&pli=1#customer-10

可以将任何文件上传到此存储桶中。

我的情景中缺少什么?请帮忙

1 个答案:

答案 0 :(得分:1)

此问题已在gsutil版本3.37中解决。 目前它正在记录中。