Skip to content

Commit 7e7ba5c

Browse files
committed
fix Sensitive Data Exposure Through Exception Logging in OVM Hypervisor Configuration
1 parent e90e436 commit 7e7ba5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/ovm/src/main/java/com/cloud/ovm/hypervisor/OvmResourceBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ protected void setupServer() throws IOException {
362362

363363
sshConnection = SSHCmdHelper.acquireAuthorizedConnection(_ip, _username, _password);
364364
if (sshConnection == null) {
365-
throw new CloudRuntimeException(String.format("Cannot connect to ovm host(IP=%1$s, username=%2$s, password=%3$s", _ip, _username, _password));
365+
throw new CloudRuntimeException(String.format("Cannot connect to ovm host(IP=%1$s, username=%2$s, password=*****", _ip, _username));
366366
}
367367

368368
if (!SSHCmdHelper.sshExecuteCmd(sshConnection, "sh /usr/bin/configureOvm.sh postSetup")) {

0 commit comments

Comments
 (0)