GCP 实例元数据未超出范围

GCP Instance Metadata not passing scope

我正在尝试使用 gcsfuse 和服务帐户身份验证装载 GCP 存储桶。一切正常,但我只有读取权限,见下文;

hannel@gcpxxxxxxd1:~$ gcsfuse --dir-mode 777 --file-mode 777 test /testing
Using mount point: /testing
Opening GCS connection...
Opening bucket...
Mounting file system...
File system has been successfully mounted.
hannel@gcpxxxxxxd1:~$ ls /testing/
Huh...
hannel@gcpxxxxxd1:~$ echo "test" | sudo tee -a /testing/test.log
tee: /testing/test.log: Permission denied

我已确认服务帐户具有写入存储服务的完全存储管理员权限。

我已确认实例元数据服务正在获取服务帐户

Image

我看到的唯一问题是实例元数据服务对 scopes 的调用似乎返回了 'weird' 信息 https://www.googleapis.com/auth/cloud-platform

curl http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/xxxxx-768@xxxx-246521.iam.gserviceaccount.com/scopes -H "Metadata-Flavor: Google"

Image

我真的不想使用密钥 JSON 解决方法

问题:

这是已知问题吗?

我是不是做错了什么?

非常感谢任何帮助

闭环。

现在没有任何变化,我相信问题一定出在 IAM 权限复制上。猜猜15分钟时间不够长,一个小时似乎就可以了。