【发布时间】:2012-08-21 04:26:35
【问题描述】:
存储桶是项目私有的。到目前为止,我设法通过 gsutil CLI 更新了存储桶的 ACL。问题是只有所有者(写入/上传文件的应用程序)有权访问。当我尝试读取或列出存储桶内容时,存储桶 ACL 中指定的其他应用程序出现权限错误。我错过了什么吗?
<Entry>
<Scope type="UserByEmail">
<EmailAddress>
application-id@appspot.gserviceaccount.com
</EmailAddress>
</Scope>
<Permission>
READ
</Permission>
</Entry>
<Entry>
<Scope type="UserByEmail">
<EmailAddress>
anotherapp-id@appspot.gserviceaccount.com
</EmailAddress>
</Scope>
<Permission>
READ
</Permission>
</Entry>
【问题讨论】:
-
您所做的应该是正确的 - 您如何尝试从存储桶中读取文件?你可以尝试使用blobreader吗? (developers.google.com/appengine/docs/python/blobstore/…)
标签: google-app-engine google-cloud-storage