trafficcontrol
trafficcontrol copied to clipboard
Invalidate bulk list of URLs
Today you can submit an invalidation through the old CDN portal or Traffic Portal by regex. I propose that we also allow you to supply a bulk list of URLs to be invalidated as well. When an origin conflates large quantities of assets into single directories with nonsense filenames, it's not practical to craft regexes for these kinds of scenarios without clobbering an origin. It is possible to find signatures of problematic urls via ats logs, and this would allow an operator to supply a simple list to iterate over.
this would require enhancement of the /jobs api to support bulk creates of jobs or the UI could support "bulk" creates and then just call the api multiple times for each job.
I wouldn't assume anyone would spend human time doing manual input here. It's far more normal to see things like a newline delimited text file, excel spreadsheet, or json array. This should be a single post to the TO API so servers don't get caught constantly dealing with the regex_reval flag (or worse the race condition that already exists between the start of the ORT/t3c run, and when it updates the flag).