Tags: howto
Date: 20260109
Updated: 20260112
The title might sound a little bit ambiguous, so let me clarify what this is about - while trying to set up a very secure CloudStack environment, operators might be looking at the encryption options of the "cloudstack-setup-databases" command which is used when installing CloudStack.
The relevant options are:
-m MGMTSECRETKEY, --managementserver-secretkey=MGMTSECRETKEY
Secret key used to encrypt confidential parameters in
db.properties. A string, default is password
-k DBSECRETKEY, --database-secretkey=DBSECRETKEY
Secret key used to encrypt sensitive database values.
A string, default is password
|
1 - MGMTSECRETKEY (management key)
- used to encrypt passwords in the /etc/cloudstack/management/db.properties file
- the default value is "password"
- saved as clear text in /etc/cloudstack/management/key
2 - DBSECRETKEY (database key)
- used to encrypt certain things in the database
- the default value is "password"
- the encrypted value is saved as "db.cloud.encrypt.secret" in the db.properties
# grep db.cloud.encrypt.secret /etc/cloudstack/management/db.properties
db.cloud.encrypt.secret=ENC(bSCgrXVvUrKGVi2qDKPfDOvqUriq5t+LA0FagFHyqM6LuwM2)
# java -classpath /usr/share/cloudstack-common/lib/cloudstack-utils.jar com.cloud.utils.crypt.EncryptionCLI -p password -i bSCgrXVvUrKGVi2qDKPfDOvqUriq5t+LA0FagFHyqM6LuwM2 -d
password
|