Active
Project:
Fastly
Version:
4.0.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2026 at 09:11 UTC
Updated:
10 Jun 2026 at 09:11 UTC
Jump to comment: Most recent
TL;DR version: When a Fastly token lacks the purge_all scope, there's no way to purge.
Full version: Multiple sites are using the same Fastly api_key, with their site_id being different. As the sites should NOT be able to purge objects belonging to other sites, the purge_all and global scopes are NOT present; only purge_select and global:read are present. Because of the code in \Drupal\fastly\Api::validatePurgeToken(), the token is NEVER considered valid, therefore no purging is possible at all.
api_key/token with only purge_select and global:read scopes.api_key./admin/config/services/fastly.Actual behavior:
Expected behavior:
\Drupal\fastly\Api::validatePurgeToken().\Drupal\fastly\Form\FastlySettingsForm::validateForm() (eg. so purge_all is not repeated twice), with regards to the above fix.Discuss, fix, commit, release.
Preferably none, but some changes might be needed to make it clearer what is needed for what.
None.
None.
Comments