Fastly CDN
Overview
The Fastly CDN integration connects the Praetorian Guard Platform (PGP) with Fastly's content delivery network to discover domain names and service configurations that are part of your external attack surface. By importing CDN service data, PGP ensures that all domains routed through Fastly are accounted for in your asset inventory.
Content delivery networks often serve as the front door for web applications, and domains configured in a CDN may not appear in other asset discovery sources. This integration closes that visibility gap by pulling domain and backend configuration data directly from the Fastly API, giving your security team a complete picture of externally accessible services.
The integration operates in a read-only capacity using a global:read scoped API token. PGP does not modify any Fastly services, domains, or configurations.
What the Integration Does
The Fastly CDN integration authenticates with the Fastly API using a read-only scoped token and enumerates your CDN services to discover associated domain names and backend configurations. Each discovered domain is imported as an asset into PGP for ongoing attack surface monitoring.
The integration validates that the provided API token has the correct global:read scope before proceeding with data collection. This ensures the token has sufficient permissions to read service configurations while confirming it does not have write access.
All operations are strictly read-only. PGP does not create, modify, or delete any Fastly services, domains, or configurations.
Prerequisites
Before setting up the Fastly CDN integration, ensure you have:
A Fastly account with at least one configured CDN service
A Fastly API token with
global:readscope
Creating a Fastly API Token
Sign in to the [Fastly Management Console](https://manage.fastly.com).
Navigate to Account > Personal API tokens (or Automation tokens for service accounts).
Click Create Token.
Set the Scope to
global:read(read-only access to all resources). Do not useglobalscope for the CDN-only integration.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 CDN from the list of available integrations.
Enter your Fastly API token.
Ensure the scope is set to
global:readfor read-only CDN discovery.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 and imports them as assets.
Seeds
Discovered domain names are added as seeds in PGP, enabling further automated discovery and scanning of related infrastructure.
API Endpoints Used
Authentication is performed via the Fastly-Key header included with every API request.
Troubleshooting
Security and Data Handling
The Fastly CDN integration operates in a strictly read-only mode. It uses a global:read scoped API token that only permits reading configuration data from the Fastly API. PGP does not modify any CDN services, domain configurations, caching rules, or backend settings.
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 for data retrieval during sync operations.
PGP imports only service metadata, domain names, and backend hostnames. No customer traffic data, access logs, or cached content is accessed or stored.