Skip to content

Commit

Permalink
[security] don't print initial_root_password
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
ZhangJian He committed Apr 7, 2024
1 parent 15527ec commit 6137602
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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, "%");
Expand Down

0 comments on commit 6137602

Please sign in to comment.