From 4f35ff7031d1c68b02b655b1e7e3363d7cfe48b6 Mon Sep 17 00:00:00 2001 From: ZhangJian He Date: Sun, 7 Apr 2024 19:53:32 +0800 Subject: [PATCH] [security] don't print initial_root_password Signed-off-by: ZhangJian He --- .idea/vcs.xml | 46 ++++++------------- .../apache/doris/mysql/privilege/Auth.java | 3 +- 2 files changed, 15 insertions(+), 34 deletions(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 0a185d9bdc7c461..11a42457d994f78 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,34 +1,16 @@ - - - - - - - - - - + + + + + + + \ No newline at end of file diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java index 0923c6c1f9f2230..038082ebaa533b4 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Auth.java @@ -1490,8 +1490,7 @@ public void setInitialRootPassword(String initialRootPassword) { scramble = MysqlPassword.checkPassword(initialRootPassword); } catch (AnalysisException e) { // Skip set root password if `initial_root_password` is not valid 2-staged SHA-1 encrypted - LOG.warn("initial_root_password [{}] is not valid 2-staged SHA-1 encrypted, ignore it", - initialRootPassword); + LOG.warn("initial_root_password is not valid 2-staged SHA-1 encrypted, ignore it"); return; } UserIdentity rootUser = new UserIdentity(ROOT_USER, "%");