Skip to content

Commit 482ea4a

Browse files
SakshamsKishan Kavala
authored andcommitted
CLOUDSTACK-822: system.vm.password is not encrypted
Signed-off-by: Kishan Kavala <kishan@cloud.com>
1 parent 6f89a84 commit 482ea4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/server/ConfigurationServerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ protected void updateSystemvmPassword() {
539539
try {
540540
String rpassword = PasswordGenerator.generatePresharedKey(8);
541541
String wSql = "INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description) "
542-
+ "VALUES ('Hidden','DEFAULT', 'management-server','system.vm.password', '" + rpassword
542+
+ "VALUES ('Secure','DEFAULT', 'management-server','system.vm.password', '" + DBEncryptionUtil.encrypt(rpassword)
543543
+ "','randmon password generated each management server starts for system vm')";
544544
PreparedStatement stmt = txn.prepareAutoCloseStatement(wSql);
545545
stmt.executeUpdate(wSql);

0 commit comments

Comments
 (0)