Akamai for wizard¶
You can connect the Wallarm Edge node to Akamai to inspect traffic in either synchronous or asynchronous mode - without blocking any requests.
Follow the steps below to set up the connection.
1. Create EdgeWorkers from Wallarm bundles
-
Download the provided code bundle for your platform.
-
Go to Akamai Control Center → EdgeWorkers → Create EdgeWorker ID, then import the code bundle
wallarm-main
. -
Create another EdgeWorker ID and import the
wallarm-sp
bundle.
2. Create the Wallarm Node property
-
In Akamai Property Manager, create a new property:
- Property name / hostname: the dedicated Node hostname (e.g.,
node.customer.com
). This hostname must belong to a DNS zone you control. - Property type:
Dynamic Site Accelerator
. - Origin type:
Web server
. - Origin Hostname: Wallarm node URL.
- Property name / hostname: the dedicated Node hostname (e.g.,
-
Configure TLS for the property:
- Either select an Akamai Managed Certificate (Akamai will issue and maintain a certificate for
node.customer.com
), or - Upload your own certificate if required.
- Either select an Akamai Managed Certificate (Akamai will issue and maintain a certificate for
-
Save the property. Akamai will generate an Edge Hostname, e.g.
node.customer.com.edgesuite.net
. -
In your DNS zone, create a CNAME record pointing your Node hostname to the Edge Hostname, e.g.
node.customer.com → node.customer.com.edgesuite.net
. -
Activate the property in staging, verify functionality, then activate in production.
3. Configure variables in the origin property
Open your existing origin property → Edit New Version and configure the following variables:
-
PMUSER_WALLARM_NODE
: the property name that you have created for thewallarm-main
EdgeWorker. -
PMUSER_WALLARM_HEADER_SECRET
: arbitrary secret string (e.g.,aj8shd82hjd72hs9
). The specified value is passed as the request headerx-wlrm-checked
when the EdgeWorker forwards a request back into the same property. This prevents loops and blocks requests with fake headers. -
PMUSER_WALLARM_ASYNC
: if using asynchronous (out-of-band) mode, set the variable totrue
.
If necessary, modify other variables.
4. Add Wallarm EdgeWorker rule
In the origin property, create a new blank rule:
-
Criteria:
-
Behavior: EdgeWorkers → the
wallarm-main
EdgeWorker
5. Add spoofing-prevention rule
In the origin property, create another new blank rule:
-
Criteria:
-
Behavior: EdgeWorkers → the
wallarm-sp
EdgeWorker
6. Save and activate the property
-
Save the new origin property version.
-
After verification, activate in production.