Skip to content

Commit b1d70f7

Browse files
committed
Before any database calls are made we need to make sure that encryption
is properly initialized if we have an encrypted db.properties.
1 parent c5185c0 commit b1d70f7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

utils/src/com/cloud/utils/db/Transaction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ public class Transaction {
9393
} catch (Exception e) {
9494
s_logger.error("Unable to register mbean for transaction", e);
9595
}
96+
97+
/* FIXME: We need a better solution for this
98+
* Initialize encryption if we need it for db.properties
99+
*/
100+
EncryptionSecretKeyChecker enc = new EncryptionSecretKeyChecker();
101+
enc.check();
96102
}
97103

98104
private final LinkedList<StackElement> _stack;

0 commit comments

Comments
 (0)