Cloudflare outage caused by bad software deploy
61–70 of 137 posts
Re: Cloudflare outage caused by bad software deploy
#62Re: Cloudflare outage caused by bad software deploy
#63What sort of regular expression pitfalls can cause this sort of CPU utilization? I know they're possible but I am curious about specific examples of something similar to what caused Cloudflare's issue here.
Re: Cloudflare outage caused by bad software deploy
#64What sort of regular expression pitfalls can cause this sort of CPU utilization? I know they're possible but I am curious about specific examples of something similar to what caused Cloudflare's issue here.
DoS with regex is a thing: https://www.owasp.org/index.php/Regular_expression_Denial_of... StackOverflow had a similar case a while back: https://stackstatus.net/post/147710624694/outage-postmortem-...
Re: Cloudflare outage caused by bad software deploy
#65What sort of regular expression pitfalls can cause this sort of CPU utilization? I know they're possible but I am curious about specific examples of something similar to what caused Cloudflare's issue here.
Some regex languages allow backtracking, and backtracking is usually the thing that causes regexes to blow up in resource cost: https://www.regular-expressions.info/catastrophic.html
* Google's RE2 https://github.com/google/re2/wiki/WhyRE2
* https://github.com/laurikari/tre/
There is a good series of articles about the problem: https://swtch.com/~rsc/regexp/regexp3.html
I would strongly recommend deploying such a regular expression matcher to avoid problems like this. There are examples in the above article that you can use to test anything in your production deployment that accepts regular expressions to see how well it copes.
Re: Cloudflare outage caused by bad software deploy
#66For the size and importance of Cloudflare some insights to a couple questions would be nice: 1. Why are WAF rules not progressively deployed since there's already a system to do so? 2. Maybe there should also be a testing environment that receives a mirror of production traffic before deployments reach real users? (I understand the WAF change was not set to take action, but a separate environment would be less likely…
This release wasn't meant to go out, and the fact it did means it would have bypassed the test environments either way.
Re: Cloudflare outage caused by bad software deploy
#67When it was Verizon that took down the internet he felt it was appropriate to do that to the Verizon teams, after all.
edit: right after posting this comment, he did tweet the following: https://twitter.com/eastdakota/status/1146196836035620864
> I'd say both we and Verizon deserve to be ashamed.
As well as this: https://twitter.com/eastdakota/status/1146170209780113408
> Our team should be and is ashamed. And we deserve criticism. ...
I still don't think that publicly shaming anyone is a good leadership style nor is it a good way to motivate people to perform better in the future, but kudos for the self-awareness, at least.
Re: Cloudflare outage caused by bad software deploy
#68Earlier quoted context omitted.
Some regex languages allow backtracking, and backtracking is usually the thing that causes regexes to blow up in resource cost: https://www.regular-expressions.info/catastrophic.html
You probably want a regex engine that runs in linear time: * Google's RE2 https://github.com/google/re2/wiki/WhyRE2 * https://github.com/laurikari/tre/ There is a good series of articles about the problem: https://swtch.com/~rsc/regexp/regexp3.html I would strongly recommend deploying such a regular expression matcher to avoid problems like this. There are examples in the above article that you can use to test anythi…
Re: Cloudflare outage caused by bad software deploy
#69If a single regex can take down the Internet for a half hour, that's definitely not good -- for a class of errors that can be easily prevented, tested, etc. The timing is unfortunate too, after calling out Verizon for lack of due process and negligence. I'm sure they have an undo or rollback for deployments but probably worth investing into further. They also need to resolve the catch-22 where people could not login…
Nonetheless, Verizon could take a leaf out of their responsiveness and transparency book.