You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by co...@apache.org on 2020/03/17 03:15:22 UTC

[dubbo] branch master updated: fix the key name to hide the accessKeyId and secretAccessKey (#5878)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d55f062  fix the key name to hide the accessKeyId and secretAccessKey (#5878)
d55f062 is described below

commit d55f062fe77ea0f6a4c913d2418113297ff8403d
Author: zechao zheng <15...@163.com>
AuthorDate: Tue Mar 17 11:15:10 2020 +0800

    fix the key name to hide the accessKeyId and secretAccessKey (#5878)
    
    Co-authored-by: 郑泽超 <zh...@qiyi.com>
---
 .../dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java b/dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java
index a74f7ec..307cd18 100644
--- a/dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java
+++ b/dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/Constants.java
@@ -28,10 +28,10 @@ public interface Constants {
     String DEFAULT_ACCESS_KEY_STORAGE = "urlstorage";
 
     String ACCESS_KEY_STORAGE_KEY = "accessKey.storage";
-
-    String ACCESS_KEY_ID_KEY = "accessKeyId";
-
-    String SECRET_ACCESS_KEY_KEY = "secretAccessKey";
+    // the key starting  with "." shouldn't be output
+    String ACCESS_KEY_ID_KEY = ".accessKeyId";
+    // the key starting  with "." shouldn't be output
+    String SECRET_ACCESS_KEY_KEY = ".secretAccessKey";
 
     String REQUEST_TIMESTAMP_KEY = "timestamp";