Skip to content

Commit ad87bbe

Browse files
committed
doc: update CDN to restrict Fastly Purge API
By default, Fastly exposes the Varnish Purge protocol publicly, allowing anyone to make HTTP PURGE requests to any URL, e.g.: ``` curl -X PURGE https://releases.jquery.com/robots.txt ``` This can be disabled by setting an internal header in the Fastly configuration, explained in the docs[1], which I've now done for "releases", "code", and "code2". [1] https://docs.fastly.com/en/guides/authenticating-api-purge-requests
1 parent 96af93f commit ad87bbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/cdn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The following are examples of mitigations and optimizations:
3232
* CDN: Gzip compression, 1-year unconditional browser caching, 7-day stale-while-revalidate.
3333
* CDN: Pull from origin using an encrypted connection (including for plain HTTP requests).
3434
* CDN: Enable strict SNI verification on the HTTPS/TLS connection to the origin.
35+
* CDN: Restrict Fastly Purge API to [require authentication](https://docs.fastly.com/en/guides/authenticating-api-purge-requests).
3536
* Origin: Debian Linux LTS with debian-security, unattended-upgrades, and basic firewalls.
3637
* Origin: Nginx, Certbox, and Node installed from upstream Debian (no custom apt repo, PPA, or unpackaged software).
3738
* Origin: Require webhook payloads from GitHub to carry an HMAC-verified signature, based on a secret token.

0 commit comments

Comments
 (0)