Skip to content

Commit 3e14aa0

Browse files
committed
Added passwd to blacklist group.
1 parent 36788ef commit 3e14aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/deem/zkui/utils/ZooKeeperUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private ArrayList<ACL> defaultAcl() {
8383

8484
public void setDefaultAcl(String jsonAcl) {
8585
if (jsonAcl == null || jsonAcl.trim().length() == 0) {
86-
logger.warn("Using UNSAFE ACL. Anyone on your LAN can change your Zookeeper data");
86+
logger.trace("Using UNSAFE ACL. Anyone on your LAN can change your Zookeeper data");
8787
defaultAcl = ZooDefs.Ids.OPEN_ACL_UNSAFE;
8888
return;
8989
}
@@ -360,7 +360,7 @@ public LeafBean getNodeValue(ZooKeeper zk, String path, String childPath, String
360360
}
361361

362362
public Boolean checkIfPwdField(String property) {
363-
if (property.contains("PWD") || property.contains("pwd") || property.contains("PASSWORD") || property.contains("password")) {
363+
if (property.contains("PWD") || property.contains("pwd") || property.contains("PASSWORD") || property.contains("password") || property.contains("PASSWD") || property.contains("passwd")) {
364364
return true;
365365
} else {
366366
return false;

0 commit comments

Comments
 (0)