小编sub*_*ngh的帖子

403 尝试对提供的字节进行签名:调用者没有权限

POM文件详细信息:

      <dependency>
    <groupId>com.google.auth</groupId>
    <artifactId>google-auth-library-appengine</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)

1.2.4.发布

jar 中包含的库:第 643 行:步骤 #0:[INFO] 从中心下载: https: //repo.maven.apache.org/maven2/com/google/auth/google-auth-library-oauth2-http/0.21 .1/google-auth-library-oauth2-http-0.21.1.pom 第 643 行:步骤 #0:[INFO] 从中心下载: https: //repo.maven.apache.org/maven2/com/google/ auth/google-auth-library-oauth2-http/0.21.1/google-auth-library-oauth2-http-0.21.1.pom

环境详情

  • 操作系统: Debian
  • Java版本:11
  • google-auth-library-java 版本:0.21.1

重现步骤

  • 上传GCS存储桶中的文件。
  • 尝试使用下面给出的代码下载它。堆栈跟踪
com.google.auth.ServiceAccountSigner$SigningException: Failed to sign the provided bytes
at com.google.auth.oauth2.IamUtils.sign(IamUtils.java:87)
at com.google.auth.oauth2.ComputeEngineCredentials.sign(ComputeEngineCredentials.java:361)
at com.google.cloud.storage.StorageImpl.signUrl(StorageImpl.java:772)
at com.google.cloud.storage.Blob.signUrl(Blob.java:822)

Caused by: java.io.IOException: Error code 403 trying to sign provided bytes: The caller does not have permission
at com.google.auth.oauth2.IamUtils.getSignature(IamUtils.java:125)
at com.google.auth.oauth2.IamUtils.sign(IamUtils.java:84)
... 69 more
Run Code Online (Sandbox Code Playgroud)

代码片段

// [START auth_cloud_explicit_compute_engine]
public Storage authCompute() throws IOException …
Run Code Online (Sandbox Code Playgroud)

google-kubernetes-engine

2
推荐指数
1
解决办法
3489
查看次数

标签 统计

google-kubernetes-engine ×1