From 9f02fea6ffb0a5f300da6635c43c49f70b49cb16 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 --- .../src/main/java/org/apache/doris/mysql/privilege/Auth.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 0923c6c1f9f223..038082ebaa533b 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, "%");