Fastly WAF
Fastly WAF
Overview
The Fastly WAF integration connects the Praetorian Guard Platform (PGP) with Fastly's Next-Gen WAF (powered by Signal Sciences) to import WAF configurations and manage scanner allowlisting. In addition to performing the same CDN domain and service discovery as the Fastly CDN integration, the WAF integration enables PGP to allowlist Chariot scanner traffic so that security scans are not blocked by your WAF rules.
Web application firewalls are a critical layer of defense, but they can interfere with legitimate security scanning. Without proper allowlisting, a WAF may block or rate-limit PGP's Chariot scanner, leading to incomplete vulnerability assessments. This integration solves that problem by automatically configuring the appropriate allowlist rules in your Fastly Next-Gen WAF, ensuring comprehensive scan coverage while keeping your WAF protections intact for all other traffic.
This integration requires a global (read-write) scoped API token because it needs to create allowlist entries in your WAF configuration. Domain and service discovery operations remain read-only.
What the Integration Does
The Fastly WAF integration performs two primary functions:
CDN Asset Discovery: Enumerates your Fastly CDN services to discover domain names and backend configurations, identical to the Fastly CDN integration. All discovered domains are imported as assets into PGP.
WAF Scanner Allowlisting: Configures allowlist rules in your Fastly Next-Gen WAF to permit Chariot scanner traffic. This ensures that PGP's automated security scanning can reach your applications without being blocked by WAF rules.
The integration validates that the provided API token has the global scope (full read-write access) before proceeding. This is necessary because creating WAF allowlist rules requires write permissions.
Prerequisites
Before setting up the Fastly WAF integration, ensure you have:
A Fastly account with the Next-Gen WAF (Signal Sciences) enabled
A Fastly API token with
globalscope (read-write access)At least one WAF-protected service configured in your Fastly account
Creating a Fastly API Token
Sign in to the Fastly Management Console.
Navigate to Account > Personal API tokens (or Automation tokens for service accounts).
Click Create Token.
Set the Scope to
global(full read-write access). Theglobal:readscope is not sufficient for WAF management.Optionally set an expiration date for the token.
Click Create Token and copy the generated token immediately. It will not be shown again.
Setup
In PGP, navigate to the Integrations page.
Select Fastly WAF from the list of available integrations.
Enter your Fastly API token with
globalscope.Ensure the scope is set to
globalfor WAF allowlisting capabilities.Save the integration. PGP will validate that the token scope matches the selected configuration.
Field Reference
What Data Is Synced
CDN Services and Domains (Assets)
The integration discovers domains associated with your Fastly CDN services, identical to the Fastly CDN integration.
WAF Allowlist Rules (Write Operation)
The integration creates allowlist entries in your Next-Gen WAF to permit Chariot scanner IPs.
API Endpoints Used
Authentication is performed via the Fastly-Key header included with every API request.
Troubleshooting
Security and Data Handling
The Fastly WAF integration uses a global scoped API token, which provides read-write access to the Fastly API. Write operations are limited exclusively to creating allowlist rules for PGP Chariot scanner IP addresses in your Next-Gen WAF. PGP does not modify CDN configurations, caching rules, domain settings, or any other WAF rules.
Credentials are handled securely within PGP. The Fastly API token is encrypted at rest and transmitted only over HTTPS to the Fastly API. The token is used exclusively during sync operations.
PGP imports service metadata, domain names, and backend hostnames for asset discovery. For WAF management, PGP only writes scanner IP allowlist entries. No customer traffic data, WAF event logs, or cached content is accessed or stored.