Skip to content

Commit

Permalink
[hotfix-1856] [chunjun-core] Fix the problem that oss's secret should…
Browse files Browse the repository at this point in the history
… be hidden
  • Loading branch information
AliceXiaoLu authored and zoudaokoulife committed Dec 21, 2023
1 parent 9bbdb45 commit eabf986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static String toPrintJson(Object obj) {
Map<String, Object> result =
objectMapper.readValue(objectMapper.writeValueAsString(obj), HashMap.class);
MapUtil.replaceAllElement(
result, Lists.newArrayList("pwd", "password", "druid.password"), "******");
result, Lists.newArrayList("pwd", "password", "druid.password", "secretKey"), "******");
return objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(result);
} catch (Exception e) {
throw new RuntimeException("error parse [" + obj + "] to json", e);
Expand Down

0 comments on commit eabf986

Please sign in to comment.