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 4f35ff7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 34 deletions.
46 changes: 14 additions & 32 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 4f35ff7

Please sign in to comment.