Upgrading to the Akamai EdgeWorker Enforcer v4
The HUMAN Akamai EdgeWorker Enforcer requires Property Manager Rules and Variables, the EdgeWorker, and NetStorage to work together. Migrating to version 4 of the Akamai EdgeWorker Enforcer will require changes to all these components. See below for more detailed information about how to upgrade all the different components of the Enforcer.
Sometimes, you may encounter a 500 error when the EdgeWorker initialization exceeds the CPU limit for your resource tier. For example, you may see response headers such as:
This error comes from Akamai EdgeWorker’s runtime limits and not HUMAN’s service. To resolve this, we recommend moving to a higher Akamai EdgeWorker resource tier.
Updating the NetStorage Files
Follow these instructions to upgrade your NetStorage configuration to work with the Akamai EdgeWorker Enforcer v4.
- Obtain the new static files from the HUMAN Security Akamai EdgeWorker Enforcer NPM package. NetStorage files are located in the
lib/netstorage/pxdirectory of the NPM package. - Navigate to the NetStorage service in the Akamai portal.
- Navigate to the File Manager in NetStorage.
- Click into the
pxfolder. - Upload the provided files into the folder. If necessary, remove the old files.
Updating the Property Manager Rules and Variables
- Navigate to the Akamai Property on which the HUMAN enforcer is installed.
- Since published properties are not editable, create a new version of the property.
- Make the required revisions to the Akamai Property rules and variables. See provided screenshots of the rules required for the Akamai EdgeWorker installation. Save the property.
- When ready, navigate to the activate tab and activate the property on either staging or production.
Updating the EdgeWorker
- Use the HUMAN Security Akamai EdgeWorker Enforcer Template to create a new EdgeWorker bundle.
- Navigate to the EdgeWorkers service in the Akamai portal.
- Select the relevant EdgeWorker.
- Create a new version of the EdgeWorker. Upload the zipped bundle provided.
- When ready, activate the new version on either staging or production.
Note the following changes in the custom functions: