You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/10/13 08:33:59 UTC

[GitHub] [rocketmq-eventbridge] zhaohai666 commented on a diff in pull request #35: update connection

zhaohai666 commented on code in PR #35:
URL: https://github.com/apache/rocketmq-eventbridge/pull/35#discussion_r994329825


##########
domain/src/main/java/org/apache/rocketmq/eventbridge/domain/model/connection/ConnectionService.java:
##########
@@ -154,18 +163,12 @@ private AuthParameters setSecretData(AuthParameters authParameters, String accou
         final ApiKeyAuthParameters apiKeyAuthParameters = authParameters.getApiKeyAuthParameters();
         final OAuthParameters oauthParameters = authParameters.getOauthParameters();
         if (basicAuthParameters != null) {
-            Map<String, String> basicAuthParametersMap = Maps.newHashMap();
-            basicAuthParametersMap.put("username", basicAuthParameters.getUsername());
-            basicAuthParametersMap.put("password", basicAuthParameters.getPassword());
-            final String secretName = secretManagerAPI.createSecretName(accountId, connectionName, new Gson().toJson(basicAuthParametersMap));
+            final String secretName = secretManagerAPI.createSecretName(accountId, connectionName, new Gson().toJson(basicAuthParameters));
             basicAuthParameters.setPassword(secretName);

Review Comment:
   userName itself has value, password just saves the rule name after kms is created.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org