You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ki...@apache.org on 2013/02/01 09:49:24 UTC

git commit: refs/heads/master - CLOUDSTACK-822: system.vm.password is not encrypted

Updated Branches:
  refs/heads/master 6f89a843a -> 482ea4a71


CLOUDSTACK-822: system.vm.password is not encrypted

Signed-off-by: Kishan Kavala <ki...@cloud.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/482ea4a7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/482ea4a7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/482ea4a7

Branch: refs/heads/master
Commit: 482ea4a71e40f35ea3a222e56fa7b9760c21f8a2
Parents: 6f89a84
Author: Saksham Srivastava <sa...@citrix.com>
Authored: Fri Feb 1 14:17:25 2013 +0530
Committer: Kishan Kavala <ki...@cloud.com>
Committed: Fri Feb 1 14:18:59 2013 +0530

----------------------------------------------------------------------
 .../com/cloud/server/ConfigurationServerImpl.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/482ea4a7/server/src/com/cloud/server/ConfigurationServerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java b/server/src/com/cloud/server/ConfigurationServerImpl.java
index 7d12412..98a6737 100755
--- a/server/src/com/cloud/server/ConfigurationServerImpl.java
+++ b/server/src/com/cloud/server/ConfigurationServerImpl.java
@@ -539,7 +539,7 @@ public class ConfigurationServerImpl implements ConfigurationServer {
             try {
                 String rpassword = PasswordGenerator.generatePresharedKey(8);
                 String wSql = "INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description) "
-                        + "VALUES ('Hidden','DEFAULT', 'management-server','system.vm.password', '" + rpassword
+                        + "VALUES ('Secure','DEFAULT', 'management-server','system.vm.password', '" + DBEncryptionUtil.encrypt(rpassword)
                         + "','randmon password generated each management server starts for system vm')";
                 PreparedStatement stmt = txn.prepareAutoCloseStatement(wSql);
                 stmt.executeUpdate(wSql);