You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/08/30 04:47:30 UTC

[pulsar] branch branch-2.10 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.

mmarshall pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git


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

commit fc8d32de94cd8925b7958bc7de8446f2e26f1a0b
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)
    
    (cherry picked from commit d87cab2ac4b4b5db7b82db1a54534d5fa49560e9)
---
 .../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 a19049ac2d4..fa8fb2f0430 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
@@ -438,7 +438,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", "");
         }