ArmoredCavalry
ArmoredCavalry
CDCloudflare Developers
Created by ArmoredCavalry on 8/7/2024 in #workers-help
'Global' Worker for Logging (alternative for logflare App)
Cloudflare is discontinuing "Apps" at the end of August. The only "App" I am using is logflare (global http request / response logging) - https://cloudflareapps.com/apps/logflare I've been looking into the best way to migrate to using Workers directly instead of "Apps". The issue I'm running into is, I have many existing Workers for my domain, on many different routes. The one nice thing about "Apps" was, they essentially were a "global" Worker that ran before any other worker in your zone. Because of this, logflare was able to "wrap" every request, including timing information, regardless of it went directly to Origin or through a Worker. I'm wondering if anyone has suggestions for the best way to reproduce this behavior with my own Worker? As I said, for routes without existing workers, it is fairly straightforward. I can just create a custom logflare worker, which runs on those unused routes. My only guess on how to "wrap" existing workers (so that the logging includes their response timing), is turn off routes for all existing workers, and instead have on single "global" worker that inspects the incoming request and then calls the associated existing worker if a route exists for them. This seems... very messy, and would like to avoid that at all costs if I can! Definitely feels like working against the system, instead of with it. Thank you for any tips or advice you can give.
41 replies
CDCloudflare Developers
Created by ArmoredCavalry on 5/31/2023 in #general-help
Let's Encrypt - No Longer Recognized as "Known Bot"
Noticed that automatic certificate renewal failed for the first time in quite a while. Digging into it, I found that my firewall rule allowing through "Known Bots" was now blocking Let's Encrypt. I can create an exception in this rule specifically for LE, but then it is also blocked by "Bot Fight Mode" (free version). There's no way I see to disable (non-super) Bot Fight Mode using a custom rule or such, it is either on or off. What needs to occur for Let's Encrypt to get back on the "Known Bots" list. Is this something LE themselves have to report to Cloudflare, or does Cloudflare maintain a list themselves?
14 replies