Most of our extensions support password encryption. In order to use this service, please follow these steps exactly as specified. Once done, you will have to uncomment the encryptionKey and encryptedPassword and update them with the ones that you generate in the config.yml file.
For this case we will take Cassandra Monitoring Extension as a sample.
Navigate to your Machine Agent installation folder, and then head to the “monitors” folder.
Now enter your Extension folder, or in our case, “CassandraMonitor” and copy the name of the jar file. In our case : “cassandra-monitoring-extension.jar”
Open your terminal and navigate to the CassandraMonitor Folder.
Once you are in the folder. Make sure the jar file is present. In our case cassandra-monitoring-extension.jar.
Once you have verified all the details, run the following command. This command will give you your encrypted password.
The “myKey” in the command can be any random key that you would like to use to encrypt the password.
The “myPassword” is going to be your actual password that you would use to log in to your product so as to get access. This is going to be that password that you are trying to encrypt.
Save the values for your “encryptionKey” and "encryptedPassword" in a text editor so that you don’t lose them. The “Encrypted String” value will be your encrypted password.
Add the values for "encryptionKey", "encryptedPassword" in the config.yml. The value for "encryptionKey" is the value substituted for "myKey" in the above command. The value for "encryptedPassword" is the result of the above command.
Once you complete all the steps listed above, your extension will be ready to use the newly generated encrypted password.