Property Encryption Guide
The document describes properties encryption process.
Get encrypted property
To encrypt properties, use status-agent.jar as a command line tool.
Use the following command to encrypt:
$INSTALL_DIR/lib/java/bin/java
-jar -Dencrypt $INSTALL_DIR/apps/wfagent/status-agent-8.x.jar -input admin
Required variables: 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 the 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
The version of the status agent JAR depends on the version of the WorkFusion platform.
You can see what version of status agent you use in the path: $INSTALL_DIR/apps/wfagent/
Put encrypted property to platform monitor configuration file (YML)
Output of command is a string line (e.g. Hyq6LGEIHt2C6HJiDqAQ0w==) in
which need to add prefix and suffix ENC( ).
As a result it will look like example: ENC(Hyq6LGEIHt2C6HJiDqAQ0w==)
Then add the result to YAML configuration file of status-agent.
Application.yml:
security:
user:
name: admin
password: ENC(Hyq6LGEIHt2C6HJiDqAQ0w==)
For details about the configuration, see Platform Monitor OOTB configurations page.