Skip to content

MuleSoft Mule for wizard

The Wallarm Edge node can be connected to your Mule Gateway in synchronous mode to inspect traffic before it reaches Mule APIs - without blocking any requests.

Follow the steps below to set up the connection.

1. Upload the Wallarm policy to MuleSoft Exchange

  1. Download the provided code bundle for your platform.

  2. Extract the policy archive.

  3. Navigate to MuleSoft Anypoint Platform → Access ManagementBusiness Groups → choose your organization → copy its ID.

  4. Specify the copied group ID in the groupId parameter of the downloaded pom.xml file:

    <?xml version="1.0" encoding="UTF-8"?>
        <groupId>BUSINESS_GROUP_ID</groupId>
        <artifactId>wallarm</artifactId>
    
  5. In the extracted archive, create the conf directory and a settings.xml file inside it with the following content:

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <servers>
        <server>
            <id>anypoint-exchange-v3</id>
            <username>myusername</username>
            <password>mypassword</password>
        </server>
        <server>
            <id>mulesoft-releases-ee</id>
            <username>myusername</username>
            <password>mypassword</password>
        </server>
    </servers>
    </settings>
    

    Replace username and password with your credentials.

  6. Deploy the policy to MuleSoft:

    mvn clean deploy -s conf/settings.xml
    

Your custom policy is now available in your MuleSoft Anypoint Platform Exchange.

2. Attach the Wallarm policy to your API

You can attach the Wallarm policy to either an individual API or all APIs.

  1. To apply the policy to an individual API, navigate to Anypoint Platform → API Manager → select the desired API → PoliciesAdd policy.

  2. To apply the policy to all APIs, go to Anypoint Platform → API ManagerAutomated PoliciesAdd automated policy.

  3. Choose the Wallarm policy from Exchange.

  4. Specify the Wallarm node URL including https://.

  5. If necessary, modify other parameters.

  6. Apply the policy.

More details