Skip to content

mulesoft-catalyst/rtf-secure-file-provider

Repository files navigation

RTF-Secure-File-Provider

Introduction

This repository involves custom developed components that is not part of MuleSoft product suite and therefore not supported by MuleSoft support. Technical assistance for these components are limited to this documentation.This is an UNLICENSED utility, please review the considerations. If you need assistance on extending this application, contact your MuleSoft Customer Success representative or MuleSoft Professional Services

RTFScureFileProvider

Installation

Users can install the mule plugin into local maven repository, Exchange or your enterprise artifact repository like artificatory

Local

To install the mule plugin locally download or clone the github repo to your computer. Go to the folder which contains pom.xml and execute below command -

mvn clean install

Exchange

To install the mule plugin into exchange use steps mentioned here

Add Dependency

Add this dependency to your application pom.xml locally

        <dependency>
        	<groupId>com.mule.rtf.custom.provider</groupId>
		<artifactId>mule-rtf-secure-file-provider-module</artifactId>
		<version>1.0.0-SNAPSHOT</version>
		<classifier>mule-plugin</classifier>
        </dependency>

If you are adding dependency from exchange the groupId should match your Organization Id.

        <dependency>
        	<groupId><<yourOrgIdHere>></groupId>
		<artifactId>mule-rtf-secure-file-provider-module</artifactId>
		<version>1.0.0</version>
		<classifier>mule-plugin</classifier>
        </dependency>

Note - Maven steps are detailed here

Using the module

Base 64 encode TLS certificates

Base64 encode the TLS certificate The tls certificates can be base64 encoded Using openssl(or a Base64 encoding utility) as below:

openssl base64 -A -in <<FILE_NAME>>

Add the base64 encoded string as a secret (secure properties)

./rtfctl apply secure-property --key <<Key Name>> --value <<BASE64 Encoded String from above step>> -n <<Environment ID>>

Note - In the above step you may want to keep the key same as the file name you would use in your Mule application. example - truststore.jks

Configure Mule application to use the TLS certificate

In this step add the certificate file name to Mule configuration file the same you would have configured before.

Configure RTF secure file provider custom component

This is a custom component that needs to be configured in the Mule application. This component loads the base64 encoded file that was added to secure properties before to application classpath during startup.

Running application on Studio

In order to run the application in the studio without adding tls certificates to /src folder all you need to do is add the secret key (file name) and base64 encoded value to program arguments under run configurations.

Example:

-Dkeystore.jks=/u3+7QAAAAIAAAABAAAAAQALc2VsZi1zaW5nZWQAAAGEtyChwg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fRsmoD05uWXO7/JwD/NadkjHJBrpTj/GzCTMLJJRNrEtlGaRg1QFy9169X+G0Bh45PsnwWhREArOq3MOH5+bSHgWptwWQ4mC7vK/98QtaYKp0gBUs1qsAmRJzePuJrItwXq2QZqPSV/BbmTeAldFXeHTQ70GEr2JTVA/lcaO5xMHdxq76cJNpqhNPHT+Qmjel8zlBuqdHeGITMVWUSnJmGA9N5RQXOlnTnRzICKHQ45FwlhInqtMxVfm/8rTXojHhyycTn67vLPdBdfrgEATC+GBTOamBLumUGQNWjuBVz/LAgMBAAGjITAfMB0GA1UdDgQWBBQKRmqtDoHZODq8OagW9M+wnri+3DANBgkqhkiG9w0BAQsFAAOCAQEAAFgWcJtExqTI6+Yc7neBjadrWuEu8pdTeTEorcmFriWbfcVYj+PLcvYmDyhfx7Its7mzjiXuuYbfgk2naRjy7ThU1Kjg4v77y+UC8HT0ZWdanVlVglf2LaRXnuinhMOUx8YLhD6qckJJKNYtqSKaHBJ0yA8QSmEAEEwgRKsPTFaL0Rtfv1iL1ndh/V9uDPwgxBHG2CQHEiNT6gtPQvoERMu7SA7BdN4VrxWltQ8drJGLDjwxDSqUBxoyqpnmRN3n3iAarzcMpYZO6csRSyc/0/TvOxAWCViu369BGB9elG7JEF4M9z2ZoiRsPqPNSqZgmat3nqASU+88C7G5AvdRWmcO+I2WC9yPKu3yN8gN5oHeB+vw

Releases

No releases published

Packages

No packages published

Languages