dev-resources.site
for different kinds of informations.
Quick guide to secure/encrypt your properties in MuleSoft
Published at
2/12/2024
Categories
security
encryption
mulesoft
mule4
Author
Alex Martinez
NOTE
This post is to generate your encrypted values by manually using the JAR file. You can also use the (unofficial) UI or refer to this article.
Download the Secure Properties Tool Jar file from the Mule docs
You can see in the docs how to encrypt your properties with different scenarios, but the following scripts are the ones I use the most.
Encrypt one value at a time
I normally use the Blowfish algorithm and the CBC mode:
java -cp secure-properties-tool.jar com.mulesoft.tools.SecurePropertiesTool \
string \
encrypt \
Blowfish \
CBC \
your_secure_key \
"value_to_encrypt"
Then, just make sure to add ![]
in your properties file.
Encrypt the whole file (per value)
If you don't want to do the previous script for all of the values, you can also run this instead:
java -cp secure-properties-tool.jar com.mulesoft.tools.SecurePropertiesTool \
file \
encrypt \
Blowfish \
CBC \
your_secure_key \
input_file.yaml \
output_file.yaml
This will automatically add the ![]
syntax to each value.
Articles
12 articles in total
List of AsyncAPI servers in MuleSoft
read article
Quick fix: 'Error: Process completed with exit code 1' in GitHub Actions with regex
read article
Quick fix: com.github.everit-org.json-schema:org.everit.json.schema:jar:1.12.2 was not found
read article
4 ways to retrieve your OrgID/groupID from Anypoint Platform
read article
An interesting Mule app to create complex MUnits
read article
Quick guide to applying MuleSoft's API Autodiscovery
read article
Quick guide to secure/encrypt your properties in MuleSoft
currently reading
Quick reference: CI/CD for a Mule app using a Connected App
read article
Using time() and duration() in DataWeave for performance check
read article
Main difference between 'do' and 'using' operators in DataWeave
read article
Develop your Battlesnake using a MuleSoft API & DataWeave with this starter project
read article
How to generate shareable link examples from GitHub to open in the DataWeave Playground
read article
Featured ones: