<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mounisha Tummala on Medium]]></title>
        <description><![CDATA[Stories by Mounisha Tummala on Medium]]></description>
        <link>https://medium.com/@tummalamounisha99?source=rss-e69ed70e4770------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ehzfrH1Lye5Cvjwo</url>
            <title>Stories by Mounisha Tummala on Medium</title>
            <link>https://medium.com/@tummalamounisha99?source=rss-e69ed70e4770------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:44:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tummalamounisha99/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to configure and encrypt Secure Properties in Mule 4]]></title>
            <link>https://medium.com/@tummalamounisha99/how-to-configure-and-encrypt-secure-properties-in-mule-4-9d21df6c63bc?source=rss-e69ed70e4770------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d21df6c63bc</guid>
            <dc:creator><![CDATA[Mounisha Tummala]]></dc:creator>
            <pubDate>Wed, 31 May 2023 09:04:40 GMT</pubDate>
            <atom:updated>2023-05-31T09:04:40.703Z</atom:updated>
            <content:encoded><![CDATA[<p>Sensitive data like passwords, tokens, client ID and Client Secret need to be encrypted to secure the data of our applications and to restrict unauthorized access to the applications. MuleSoft provides Secure Property Module where we can encrypt the entire property file or individual property in the file.</p><p>Mule Secure Property Module enables us to configure .yaml or .properties file.</p><p>Lets check how we can encrypt and secure the properties by using Secure Property Module for .yaml files or .properties files.</p><ol><li>Create a Mule project in Anypoint Studio</li><li>Install Mule Secure Configuration Property Extension Module from Exchange to Mule Palette.</li></ol><p>From Mule Palette: click search in exchange -&gt; search for Mule Secure Configuration Property Extension Module -&gt; add the module to selected modules -&gt; click on finish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zx3Bx0KVryB1VKhFJFHpxA.png" /></figure><p>3. Create a new property .yaml file or .properties file as required and add the secure properties which we need to be encrypted in that file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2trmWWKYNToogPwgNBG-w.png" /></figure><p>4. For encrypting the secure value , we need to install the <a href="https://docs.mulesoft.com/mule-runtime/4.4/_attachments/secure-properties-tool.jar">secure-properties-tool.jar</a> from the browser</p><p>5. Create a secure property config</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1a5mZXg9sjBjYIpxesVOQ.png" /></figure><p>To encrypt the value, need a key which has to send in the runtime configuration as an argument and to be added in the secure properties config which was added in coming steps.</p><p>Select the file where the encrypted properties are added , Algorithm and Mode as required and click OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yICwMEbD14T00bsoI_QuQ.png" /></figure><p>6. To encrypt the value, use the below format of the syntax.</p><pre>java -cp secure-properties-tool.jar com.mulesoft.tools.SecurePropertiesTool &lt;method&gt; &lt;operation&gt; &lt;algorithm&gt; &lt;mode&gt; &lt;key&gt; &lt;input&gt;</pre><p>In the above command ,set method to string ( if we are encrypting a string value) or set to file (if encrypting a file) , set algorithm and mode as per desired requirement and replace key and input with their values.</p><p><strong>Please Note:</strong> Algorithm, Mode and key should be similar to what we used while configuring the secure properties config</p><p>Open Command Prompt from the location where you downloaded the secure-properties jar file and run the command.</p><pre>java -cp secure-properties-tool.jar com.mulesoft.tools.SecurePropertiesTool string encrypt Blowfish CBC mulesoft superSecretPassword</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iBWijfFktXnWTzwIH_6DkQ.png" /></figure><p>7. Copy the encrypted value and paste it in the secure-properties.yaml file as below.</p><p>The format of the value should be ![value].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*leaWN07lV3_C9qFizNoH_A.png" /></figure><p>8. Add the secure property in the global configuration as ${secure::(property)}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5vtu--m5zWWlFUY2VC_ww.png" /></figure><p>if you want to declare that inside dwl script, you can use</p><p>p(‘secure::(property)}</p><p><strong>Example</strong>: p(‘secure::tls.key-store.keyPassword’)</p><p>9. While deploying the application, add the secure-key property in the runtime arguments as below and click apply and run the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nmyGuaButn5gznf17v4iZA.png" /></figure><p>Thank you for reading this article.</p><p>Please provide feedback. It will help to improve the content.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d21df6c63bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>