Moogsoft AIOps includes an encryptor utility so you can encrypt passwords stored in the AIOps configuration file. Encrypted passwords in configuration files are more secure because someone with access to the configuration cannot necessarily gain access to integrated systems.
Encrypt a Password
To encrypt a password, execute the
moog_encryptor command as follows:
For example, to encrypt a password "Abacus":
moog_encryptor displays the encrypted password:
Each time you run
moog_encryptor, it generates a different encrypted password.
Configure AIOps to use Encrypted Passwords
You can use passwords encrypted with
oog_encryptor in the
system.conf file as follows:
Identify the password you want to replace and uncomment the
encrypted_passwordproperty. Comment out the
passwordproperty. For example:
Set the value of the
encrypted_passwordproperty to the value returned from the
moog_encryptor. For instance:
Change the value of the
passwordproperty so that it does not match the unencrypted value of the password.
Change the Location of the Encryption Key
By default, the encryptor utility uses a key at the following location:
The encryptor utility creates a new key if one does not already exist.
If you want to use a different location for the key, uncomment the encrpytion section in
system.conf. Set the value of the
encryption_key_file property to a new path for the key. For example:
You must configure AIOPs to use the same .key file you used to encrypt passwords. If you encrypt a password using one key and then change the configuration to use another key, decryption fails.