GKE应用默认凭证问题:请求两类日志信息及相关背景说明
GKE应用默认凭证相关日志说明
1. 默认凭证不正确的日志消息
- 核心错误日志:
Error: Could not load the default credentials. - 关联权限触发日志(因无Cloud Storage访问权限引发):
Permission denied: Missing required permissions for Cloud Storage operations.Failed to access Cloud Storage resource: No valid credentials provided.
2. 默认凭证已设置的日志消息
- 凭证加载成功日志:
Successfully loaded default credentials from GKE cluster metadata service.Default credentials initialized via workload identity for GKE workload. - 权限验证通过日志:
Authenticated with default credentials, authorized to access Cloud Storage resources.
补充说明:该错误发生在发布新增Pub/Sub主题的应用、同时用Terraform注册主题调度器期间,重新部署同一模块后问题解决。
内容的提问来源于stack exchange,提问作者酒井祐樹
相关产品推荐
相关产品推荐

