Skip to content

MuleSoft Flex for wizard

The Wallarm Edge node can be connected to your MuleSoft Flex Gateway in either synchronous and asynchronous mode - without blocking any requests.

Follow the steps below to set up the connection.

Upload the Wallarm policy to MuleSoft Exchange

  1. Download the provided code bundle for your platform.

  2. Extract the policy archive.

  3. Ensure the machine you will use to publish the policy meets all necessary requirements.

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

  5. In the extracted policy directory → Cargo.toml[package.metadata.anypoint]group_id, specify the copied group ID:

    ...
    [package.metadata.anypoint]
    group_id = "<BUSINESS_GROUP_ID>"
    definition_asset_id = "wallarm-custom-policy"
    implementation_asset_id = "wallarm-custom-policy-flex"
    ...
    
  6. Authenticate with Anypoint CLI in the same terminal session where you are working with the policy:

    anypoint-cli-v4 conf username <USERNAME>
    anypoint-cli-v4 conf password '<PASSWORD>'
    
  7. Build and publish the policy:

    make setup      # Installs dependencies and PDK CLI
    make build      # Builds the policy
    make release    # Publishes a new production version of the policy to Anypoint
    

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

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 http:// or https:// in the wallarm_node parameter.

  5. If necessary, modify other parameters.

  6. Apply the policy.

More details