You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/05/27 14:15:52 UTC

[pulsar] branch master updated: [fix][tiered-storage] Fix the wrong secret key name get from env (#15814)

This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new d87cab2ac4b [fix][tiered-storage] Fix the wrong secret key name get from env (#15814)
d87cab2ac4b is described below

commit d87cab2ac4b4b5db7b82db1a54534d5fa49560e9
Author: Yong Zhang <zh...@gmail.com>
AuthorDate: Fri May 27 22:15:43 2022 +0800

    [fix][tiered-storage] Fix the wrong secret key name get from env (#15814)
---
 .../mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java b/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
index 5969d2d2c3f..421551acb72 100644
--- a/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
+++ b/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/provider/JCloudBlobStoreProvider.java
@@ -437,7 +437,7 @@ public enum JCloudBlobStoreProvider implements Serializable, ConfigValidation, B
         if (StringUtils.isEmpty(accountName.trim())) {
             throw new IllegalArgumentException("Couldn't get the access key id.");
         }
-        String accountKey = System.getenv().getOrDefault("ACCESS_KEY_ID", "");
+        String accountKey = System.getenv().getOrDefault("ACCESS_KEY_SECRET", "");
         if (StringUtils.isEmpty(accountKey.trim())) {
             accountKey = System.getenv().getOrDefault("ALIYUN_OSS_ACCESS_KEY_SECRET", "");
         }