holymacaroni
holymacaroni
CDCloudflare Developers
Created by holymacaroni on 11/5/2023 in #workers-help
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.
3 replies