incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [22/51] [abbrv] git commit: refs/heads/ui-plugins - Before any database calls are made we need to make sure that encryption is properly initialized if we have an encrypted db.properties.
Date Thu, 07 Feb 2013 20:04:12 GMT
Before any database calls are made we need to make sure that encryption
is properly initialized if we have an encrypted db.properties.

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

Branch: refs/heads/ui-plugins
Commit: b1d70f7fe340302f180843c01ee6674166d03ee1
Parents: c5185c0
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Wed Feb 6 15:53:50 2013 +0100
Committer: Hugo Trippaers <htrippaers@schubergphilis.com>
Committed: Wed Feb 6 15:55:13 2013 +0100

----------------------------------------------------------------------
 utils/src/com/cloud/utils/db/Transaction.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b1d70f7f/utils/src/com/cloud/utils/db/Transaction.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/db/Transaction.java b/utils/src/com/cloud/utils/db/Transaction.java
index d596de2..c1f157e 100755
--- a/utils/src/com/cloud/utils/db/Transaction.java
+++ b/utils/src/com/cloud/utils/db/Transaction.java
@@ -93,6 +93,12 @@ public class Transaction {
         } catch (Exception e) {
             s_logger.error("Unable to register mbean for transaction", e);
         }
+        
+        /* FIXME: We need a better solution for this
+         * Initialize encryption if we need it for db.properties
+         */ 
+        EncryptionSecretKeyChecker enc = new EncryptionSecretKeyChecker();
+        enc.check();        
     }
 
     private final LinkedList<StackElement> _stack;


Mime
View raw message