Google 云存储 - 权限不足

Google Cloud Storage - Insufficient Permissions

尝试将文件上传到 PHP 中的存储桶时,Google Cloud Storage 出现错误 403:InsufficientPermissions 错误。在能够成功完成数月之后,这才突然开始发生。我已在 IAM 和 Bucket 权限中启用服务帐户访问 字面上的所有内容。我创建了一个新帐户并添加了新权限。 2017 年我们必须如何验证 GCS 是否有变化?

为了让您的服务帐户能够将新对象插入到存储桶中,您需要确保服务帐户电子邮件至少具有 编辑器 访问存储桶 ACL 或 Storage Object Creator (roles/storage.objectCreator) 项目 IAM 策略中的角色。

根据您 post 的日期,您可能受到了 7 月 6 日 2:34pm 到下午 4 点(东部时间)发生的 GCS 中断的影响。

https://status.cloud.google.com/incident/storage/17002

July 6, 2017 2:50pm:

We are experiencing an intermittent issue with Google Cloud Storage - JSON API requests are failing with 5XX errors (XML API is unaffected) beginning at Thursday, 2017-07-06 16:50:40 US/Pacific. Current data indicates that approximately 70% of requests globally are affected by this issue. For everyone who is affected, we apologize for any inconvenience you may be experiencing. We will provide an update by 18:30 US/Pacific with current details.