I encrypted my properties and wanted to use Secure Configuration Properties, but I don't understand where to store the key. I tried setting it in Run configuration Environment, Argumets, and also as my System environment variables, but my project would fail to run.
You need to define a configuration property to use it to configure the password. Use one of these options:
Command line:
mule -M-Dsecret=123456
wrapper.conf:
wrapper.java.additional.999=-Dsecret=123456
After you set the property with whichever method you can use it directly in the configuration:
<secure-properties:config key="${secret}" file="config.yaml" name="config">
<secure-properties:encrypt/>
</secure-properties:config>