App Engine无法连接到MySQL Cloud SQL(无法刷新临时证书)

发布于 2025-02-08 11:52:19 字数 565 浏览 4 评论 0 原文

多年来一直使用App Engine标准,通过插座连接到MySQL。

今天,开始在日志中看到此错误:

failed to refresh the ephemeral certificate for xxxxx:us-east1:xxxxx: Post "https://sqladmin.googleapis.com/sql/v1beta4/projects/xxxxx/instances/us-east1~xxxxx-db:generateEphemeralCert? alt = JSON& prettyprint = false“:rpc错误:代码= desc = iam diam discriend demmission demmission [email  preconted]

权限没有任何变化,我已经验证了服务帐户具有“编辑器”和“云SQL客户端”角色。

Been using App Engine Standard for years, connecting to mysql via socket without issue.

Today, started seeing this error in the logs:

failed to refresh the ephemeral certificate for xxxxx:us-east1:xxxxx: Post "https://sqladmin.googleapis.com/sql/v1beta4/projects/xxxxx/instances/us-east1~xxxxx-db:generateEphemeralCert?alt=json&prettyPrint=false": rpc error: code = PermissionDenied desc = IAM permission denied for service account [email protected].

Nothing has changed with permissions and I have verified the service account has "Editor" and "Cloud SQL Client" roles.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲喜皆因你 2025-02-15 11:52:19

通过启用Cloud SQL Admin API解决了这个问题。

This issue was resolved for me by enabling Cloud SQL Admin API.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文