Property encryption
Get encrypted property
To encrypt properties, use status-agent.jar as command line tool.
Use following command to encrypt:
$INSTALL_DIR/lib/java/bin/java
-jar -Dencrypt $INSTALL_DIR/apps/wfagent/status-agent-X.X.X.jar -input admin
Required variable: $INSTALL_DIR
Make sure to use this variable inside your user environment variable.
If you don't have it set this variable.
This variable should contain path of WorkFusion platform by default which is /opt/workfusion.
Required VM options: -Dencrypt
Add this option before jar file. Otherwise it will run status-agent as a web server.
Required Program arguments: -input X
Where X is a string line for encryption.
note
Version of status agent jar depends on version of the WorkFusion platform.
You can see what version of status agent you use in $INSTALL_DIR/apps/wfagent/.
Put encrypted property to Platform Monitor configuration file (YML)
Output of command is a string line (for example, Hyq6LGEIHt2C6HJiDqAQ0w==) in which you need to add prefix and suffix ENC( ).
As a result: ENC(Hyq6LGEIHt2C6HJiDqAQ0w==)
Then add the result to YAML configuration file of status-agent.
The result example is as follows:
Application.yml
security:
user:
name: admin
password: ENC(Hyq6LGEIHt2C6HJiDqAQ0w==)
For details about configuration see Platform Monitor OOTB configurations.