Manage an IP list from worker

Hey, I have a challenge to automate management of dynamic IP list which is being used by WAF Rule. The idea is to manage ip list based on timeline - IPs should be removed after a time period after being added to the list. IP itself with timestamp is being provided from 3rd party security solution. I was thinking of using Worker and Cf as a hosting platform for that code, but there is no access to account configuration (IP list) and WAF as well. Using Worker as a blacklist tool using KV does not seem like a good idea since there are tools inside platform for blacklists that already exist. Any advice on Worker approach for that task? Due to limitations of Workers access to account configuration (Runtime APIs) I believe the optimal solution would be to create a 3rd party tool that will handle time periods using some Cache/DB (Redis) and manage security part of CF using standard API calls and run somewhere in cloud.
1 Reply
holymacaroni
holymacaroni7mo ago
I forgot to mention that traffic does not have to go through worker itself. The cron trigger could be used to check every minute for example the the status of the IP, if it needs to be removed or not based on initial timestamp Thanks for getting back with that. Could you elaborate please. How having header will allow me manage the ip list?