Firebase 无法生成私钥。请在几分钟后重试错误。

huangapple go评论70阅读模式
英文:

Firebase Failed to generate a private key. Please try again in a few minutes error

问题

I'm trying to generate a new key on firebase, but I got the error

Failed to generate a private key. Please try again in a few minutes.

by looking at the HTTP responses it gets a 400

Firebase 无法生成私钥。请在几分钟后重试错误。

so, I tried to give the right roles to the firebase service account it tells on the image above. Here is the final setting on IAM (further useless roles have been added for testing purposes, like the owner one):

Firebase 无法生成私钥。请在几分钟后重试错误。

after that, I got the same error. Any hint?

英文:

I'm trying to generate a new key on firebase, but I got the error

Failed to generate a private key. Please try again in a few minutes.

by looking at the HTTP responses it gets a 400

Firebase 无法生成私钥。请在几分钟后重试错误。

so, I tried to give the right roles to the firebase service account it tells on the image above. Here is the final setting on IAM (further useless roles have been added for testing purposes, like the owner one):

Firebase 无法生成私钥。请在几分钟后重试错误。

after that, I got the same error. Any hint?

答案1

得分: 0

错误提示说“不允许在此服务帐户上创建密钥”。

有一个组织策略来阻止密钥创建:

限制服务帐户的使用

您可以通过Web界面或CLI禁用约束:

gcloud resource-manager org-policies disable-enforce \
  iam.disableServiceAccountKeyCreation \
  --organization=<ORG_ID>
英文:

The error says Key creation is not allowed on this service account.

There is an org policy to prevent key creation:

Restricting service account usage

You can disable the constraint via the web GUI or the CLI:

gcloud resource-manager org-policies disable-enforce \
  iam.disableServiceAccountKeyCreation \
  --organization=&lt;ORG_ID&gt;

huangapple
  • 本文由 发表于 2023年5月22日 07:17:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76302301.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定