简体   繁体   English

Google Cloud Storage 权限被拒绝

[英]Google Cloud Storage permission denied

I set up a Cloud Run which uses a Bucket on Cloud Storage .我设置了一个使用Cloud Storage上的BucketCloud Run Locally I run it in a Docker Container , the credentials are passed using a json file, created and downloaded from IAM & Admin , and it works.在本地,我在Docker Container中运行它,使用json文件传递凭据,该文件是从IAM & Admin创建和下载的,它可以正常工作。 When deployed, writing to the bucket throws an error:部署后,写入存储桶会引发错误:

{
    500 unable to sign bytes: googleapi: Error 403: Permission 'iam.serviceAccounts.signBlob' denied on resource (or it may not exist).
    Details:
    [{
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "domain": "iam.googleapis.com",
        "metadata": {
            "permission": "iam.serviceAccounts.signBlob"
        },
        "reason": "IAM_PERMISSION_DENIED"
    
    }]
    []
}
    

Any idea?任何的想法?

I had to add the Service Account Token Creator to the service account.我必须将Service Account Token Creator添加到服务帐户。 I did it, but it did not work anyway because there is the need to deploy a new version of the service, so:我做到了,但无论如何都没有用,因为需要部署新版本的服务,所以:

  1. Add the role Service Account Token Creator添加角色Service Account Token Creator
  2. Deploy new version of the service部署新版本的服务

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 谷歌云翻译权限被拒绝 - 但有作用 - Google Cloud Translation Permission Denied - But has role IAM 权限被拒绝 - Google Cloud 创建指标 - IAM Permission Denied - Google Cloud Create metric 谷歌云源存储库:权限被拒绝(公钥) - Google Cloud Source Repositories: Permission denied (publickey) 谷歌云存储权限仅对某些 object - Google cloud storage permission only on some object 谷歌云中的权限被拒绝(公钥)错误是否有任何解决方法? - Is there any workaround for the permission denied (publickey) error in google cloud? 从谷歌云计算中提取 docker 的权限被拒绝 - Permission denied on docker pull from Google Cloud Compute Google Cloud Translate V3 Java - PERMISSION_DENIED:Cloud IAM 权限“cloudtranslate.generalModels.predict”被拒绝 - Google Cloud Translate V3 Java - PERMISSION_DENIED: Cloud IAM permission 'cloudtranslate.generalModels.predict' denied 谷歌云平台:SSH 到谷歌云实例将有“权限被拒绝(公钥)” - Google Cloud Platform: SSH to Google cloud instance will have "Permission denied (publickey)" Google Cloud Source Repository:远程:PERMISSION_DENIED:调用者没有远程权限 - Google Cloud Source Repository: remote: PERMISSION_DENIED: The caller does not have permission remote Firebase 云存储:权限被拒绝。 检索 downloadURL 时无法执行此操作 firebase - Firebase Cloud Storage: permission denied. could not perform this operation firebase when retrieving downloadURL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM