https://github.com/perimeterx/azure-enforcer-template
A template for the standard Azure Front Door + Azure Function Enforcer.
https://github.com/perimeterx/azure-enforcer-template
Last synced: about 1 year ago
JSON representation
A template for the standard Azure Front Door + Azure Function Enforcer.
- Host: GitHub
- URL: https://github.com/perimeterx/azure-enforcer-template
- Owner: PerimeterX
- Created: 2023-06-08T18:39:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-16T12:33:54.000Z (about 2 years ago)
- Last Synced: 2025-01-29T07:30:21.681Z (over 1 year ago)
- Language: TypeScript
- Size: 47.9 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure Function Enforcer Example
See the full official documentation for the Human Security Azure Enforcer [here](https://docs.perimeterx.com/docs/installation-azure).
1. Install dependencies with `npm install`.
2. Configure the enforcer by modifying the `EnforcerFunction/config.ts` file.
3. Compile the enforcer by running `npm run build`.
4. Publish the enforcer to your Function App by running `func azure functionapp publish --typescript`. (You must have [Azure Functions Core Tools](https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local) installed to run this command.)
5. Add the following variables to your deployed Function App [Configuration Settings](https://learn.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal#configure-app-settings):
* `PX_APP_ID` - The application ID (available in the [portal](https://console.perimeterx.com/))
* `PX_AUTH_TOKEN` - The server token (available in the [portal](https://console.perimeterx.com/))
* `PX_COOKIE_SECRET` - The cookie secret associated with the Bot Defender security policy (available in the [portal](https://console.perimeterx.com/))
* `FRONT_DOOR_SECRET_KEY` - A secret key that will be added as a request header and used in Front Door to verify incoming requests