Deploy Tool
The Deploy Tool is HUMAN’s setup assistant for installing, updating, and customizing an Enforcer. It guides you through the required steps, validates your inputs, and deploys the integration without you having to build the configuration manually. If you use a supported Enforcer framework, we highly recommend using the Deploy Tool to manage changes to your Enforcer whenever possible.
The Deploy Tool only works with the latest version of each Enforcer. It does not support downgrades or deployments on older versions.
Supported Enforcer frameworks
Install an Enforcer
The Deploy Tool works together with the Enforcer’s enforcerConfig.json file, which has important information like your Application ID and remote authorization token already filled in, to quickly compile and set up your Enforcer configuration. You can download this file from the HUMAN Console > Platform Settings > Enforcers, clicking on the appropriate Enforcer, and clicking Download configuration file .
Each Enforcer framework has additional unique prerequisites that may be required while using the Deploy Tool. Refer to your Enforcer’s specific documentation for the full list of requirements.
Generally, after you prepare the unique prerequisites for your Enforcer, the installation follows this process:
Run the Deploy Tool
First, download and run the Deploy Tool. You can do this by either pulling a Docker image or running a script.
Docker method
Script method
Additional setup for Windows users
If you’re using Windows, you also need to complete additional steps to set up Docker:
- In your Windows search bar, search for and open Turn Windows features on or off.
- Find the Windows Hypervisor Platform feature and click its checkbox to enable it.
- Click OK to save your changes.
- Open Windows PowerShell as an Administrator.
- Copy and paste in
C:\Windows\System32\wsl.exe --update --web-download, then hit Enter.
- Pull the Docker image by running:
- Navigate to the directory where you saved
enforcerConfig.json. - Run the Deploy Tool with the following:
Deploy the Enforcer
After you run the Deploy Tool, you’ll be prompted with steps to deploy the Enforcer.
- When prompted, select the appropriate Enforcer framework and hit Enter.
- Follow the prompts that appear to complete the setup process.
- After you complete the setup, confirm that the displayed details are correct, then enter
yto deploy the Enforcer.
Update an Enforcer version
The Deploy Tool automatically detects if you’re using an older version of an Enforcer and prompts you to update to the latest version whenever you attempt to deploy an Enforcer again. To update, simply rerun the Deploy Tool similarly to when you installed it:
-
Run the Deploy Tool using your preferred method:
Docker method
Script method
In the same directory as
enforcerConfig.json, run the following: -
When prompted, select the appropriate Enforcer framework and hit Enter.
-
Follow the prompts that appear. If you just want to update to the latest version, you can provide the same information as you did when you first installed the Enforcer.
-
After you complete the setup, if an update is available, the Deploy Tool will display the new version and ask you to confirm that you want to deploy. Below is an example of what you might see for the Cloudflare Enforcer. To confirm and update, enter
y.
Customize an Enforcer
Each Enforcer framework has its own configuration options that you can use to customize the Enforcer’s behavior. These configuration options are typically parameters that you can add directly to the enforcerConfig.json file or custom functions that need to be uploaded as separate files. You can use the Deploy Tool in both cases to deploy these changes to the Enforcer.
Refer to your Enforcer’s specific configuration documentation for a full list of supported customizations.
Add customizations with enforcerConfig.json
Add customizations with custom files
-
Add your customizations to the
enforcerConfig.jsonfile. -
Run the Deploy Tool using your preferred method:
Docker method
Script method
In the same directory as
enforcerConfig.json, run the following: -
When prompted, select the appropriate Enforcer framework and hit Enter.
-
Follow the prompts that appear. When you’re asked whether to use HUMAN’s default configuration or provide your own custom one, select Default and hit Enter. Below is an example of what you might see for the Cloudflare Enforcer.
- Follow the prompts that appear to complete the setup process.
- After you complete the setup, confirm that the displayed details are correct, then enter
yto deploy the Enforcer.