Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Cloudflare BYOIP BGP Withdrawals, Clerk’s Postgres Query-Plan Flip Outage, and AWS Kiro Permissions Lessons (Grafana Privesc + runc CVEs)
Transcript
- 0:00This week is basically a masterclass in the system
- 0:03did exactly what we built it to do. Cloudflare
- 0:06automated something that touches routing and
- 0:08a bug turned into real BGP withdrawals for customer
- 0:12prefixes. Clerk got taken out by a query plan
- 0:15flip. Nothing crashed. The database was up. It
- 0:19was just slow enough to light everything on fire.
- 0:21And AWS is in the middle of a new era where internal
- 0:25tools can take bigger actions faster. And the
- 0:28whole story comes back to permissions and guardrails.
- 0:31If you run production, this is your week. Hey.
- 0:50I'm Brian from Tellers Tech, and this is Ship
- 0:53It Weekly, where we cover outages, releases,
- 0:55and incident write -ups, then translate them
- 0:58into what it actually means for your systems.
- 1:01If you like the show, follow or subscribe wherever
- 1:04you are listening. And if you've got an on -call
- 1:06buddy, send them this episode. That share does
- 1:09more than you'd expect. Also, quick plug, full
- 1:12show notes live on shipitweekly .fm. And the
- 1:16curated weekly brief is on oncallbrief .com.
- 1:19All right, quick overview so you know where we're
- 1:22going today. First, Cloudflare's BYOIP outage
- 1:26where a cleanup job ended up withdrawing customer
- 1:29prefixes. It's a really clean example of how
- 1:32background automation can become production blast
- 1:35radius if it touches routing or reachability.
- 1:38Second, Clerk's outage from a Postgres auto -analyze
- 1:42triggering a query plan flip. The database was
- 1:45up, but performance tanked and the system started
- 1:48shedding load. It's a great case study in why
- 1:51degraded is sometimes harder than down. Third,
- 1:54the AWS Kiro story and the follow -up response
- 1:57from AWS. Regardless of the headline, the useful
- 2:00lesson is permissions. If a tool can take actions,
- 2:03it's part of your control plane and it needs
- 2:05real boundaries and approvals. After that, I'll
- 2:08do a quick platform note on the EKS node monitoring
- 2:12agent going open source. Then a tight lightning
- 2:14round. Then we'll close with a human section
- 2:17on why SRE is basically allergic to ticket queues.
- 2:21All right, story one. So Cloudflare had an outage
- 2:28tied to BYOIP, bring your own IP. If you are
- 2:32not familiar, the idea is simple. Customers want
- 2:34to use their own IP ranges at the edge. So traffic
- 2:37still comes from the IP space they own, even
- 2:40though Cloudflare is doing the heavy lifting.
- 2:43The scary part is what makes it powerful. It's
- 2:45real routing. BGP announcements. Prefixes. Internet
- 2:49reachability. Cloudflare's postmortem is one
- 2:52of those that's uncomfortable because it's relatable.
- 2:54A cleanup subtask was designed to remove BYOIP
- 2:58prefixes that should be removed. Basically, automate
- 3:01a manual workflow so support and ops don't have
- 3:04to do it by hand. But the cleanup job had a bug.
- 3:08The query it ran against their own internal API
- 3:10returned more prefixes than it should have. And
- 3:14the system started withdrawing prefixes that
- 3:16were still in use. At peak, they say around 1
- 3:19,100 prefixes were unintentionally withdrawn
- 3:23for a window of time. And then the incident as
- 3:27a whole took hours to fully unwind. Because even
- 3:30after you stop the bleeding, you are stuck restoring
- 3:33state across a big distributed system. This is
- 3:36the part I want to linger on because it's the
- 3:38part that teams tend to underestimate. When you
- 3:41withdraw routes, a rollback isn't just flipping
- 3:44a flag. You are waiting on propagation. You are
- 3:47dealing with caches. You are dealing with partial
- 3:49state. You are dealing with bindings and dependencies
- 3:52that get removed or drift. Cloudflare even published
- 3:56customer guidance during the incident that some
- 3:58customers could self -remediate by going into
- 4:01the dashboard and re -advertising their prefixes.
- 4:04That right there is the difference between this
- 4:07is bad and this is catastrophic. If your customers
- 4:09can do something to recover without waiting for
- 4:12you, you just bought yourself time. So here's
- 4:14the ops lesson. If you have automation that can
- 4:17withdraw routes, revoke advertisements, delete
- 4:20edge bindings, remove cert associations, change
- 4:23DNS at scale, or anything in that reachability
- 4:26control plane bucket, treat it like production
- 4:29deployment tooling, not like a cron job. This
- 4:32is the kind of automation that needs friction
- 4:34on purpose. It needs a safety check that says,
- 4:37if this job is about to touch more than N prefixes,
- 4:40stop. It needs canary behavior. It needs a dry
- 4:44run mode that produces a diff humans can look
- 4:47at. It needs a circuit breaker that triggers
- 4:49on anomaly, not on service down. Because the
- 4:53failure mode here is always the same. One helper
- 4:56job. One bug. One correlated blast radius. And
- 5:00nobody sleeps. Practical Monday take. Ask, what
- 5:03systems do we have where a background job can
- 5:06make reachability go away? That could be BGP,
- 5:09but it could also be DNS automation, certificate
- 5:12rotation automation, firewall rule cleanup, CDN
- 5:16rule cleanup, or even a Terraform pipeline with
- 5:20the ability to destroy and recreate shared infrastructure.
- 5:23Then ask one more question. If that job goes
- 5:26sideways, what's the fastest human safe rollback?
- 5:29And does it require tribal knowledge? If the
- 5:32answer is we'd figure it out, congrats. You just
- 5:34found your next incident. All right, story two
- 5:41is one of my favorite kind of postmortems, even
- 5:44though it's painful. Clerk had a system outage,
- 5:47and the root cause was an inefficient query plan
- 5:50caused by Postgres auto -analyze. So nothing
- 5:53exotic, no kernel panic, no region failure, no
- 5:56someone deleted prod. Just Postgres doing normal
- 6:00Postgres things. Here's the chain. Auto -analyze
- 6:03runs. Statistics get updated. That causes a query
- 6:06plan flip. Same query, different plan. That plan
- 6:10is dramatically worse, which drags database performance
- 6:13down, which backs up request handlers, which
- 6:16turns into queuing. And then almost all traffic
- 6:18starts getting 429'd without being handled. They
- 6:22call out that over 95 % of traffic was returning
- 6:25429 because the system was basically shedding
- 6:28load while it was drowning. The fix was pretty
- 6:30direct. Manually rerun analyze for the table
- 6:34involved, which changed the stats and brought
- 6:37the query plan back to the good version. What's
- 6:39interesting is the detail they share about why
- 6:42the planner got it wrong. It had to estimate
- 6:44how many rows would match a condition, and it
- 6:47used a statistic that depends on sampling. Their
- 6:50data had a column where almost everything was
- 6:53null. And because the sample was small, the sample
- 6:56ended up being basically all nulls. So the planner
- 6:59overconfidently assumed 100 % nulls. The query
- 7:03planner then expected a certain part of the query
- 7:05to return basically zero rows. But in reality,
- 7:09it returned something like 17 ,000 rows. So the
- 7:12plan it picked was good for zero rows and terrible
- 7:15for 17 ,000. That mismatch is the kind of thing
- 7:19that doesn't show up in unit tests. It shows
- 7:22up on a Thursday morning when auto -analyze decides
- 7:25its time. So why does this matter for platform
- 7:28and SRE folks? Because a lot of teams still think
- 7:31in binary failure states. Database up or down.
- 7:35Service up or down. But a huge chunk of production
- 7:38incidents live in the gray zone. Database is
- 7:41up, but slow. The service is up, but queuing.
- 7:44Your health checks pass, but users are screaming.
- 7:47They even point out that their automatic failover
- 7:50didn't trigger because Postgres was online, just
- 7:52degraded. So it didn't match the failover now
- 7:55conditions. And this is where the playbook needs
- 7:58to evolve. If your failover only triggers on
- 8:01dead, you're going to get smoked by limping.
- 8:04Clerk's remediation is worth stealing. They talk
- 8:07about adding alerting specifically for query
- 8:09plan flips because it's sudden and severe. They
- 8:12also talk about a mitigation that offloaded session
- 8:15token generation outside their core session API
- 8:18to reduce backend load and help people stay logged
- 8:22in even while other parts of the system were
- 8:25unhealthy. That's a classic reliability move.
- 8:28Protect the critical path even if the full feature
- 8:31set is degraded. And they're also honest about
- 8:34communication. They say their updates were too
- 8:37infrequent, their initial status severity didn't
- 8:39match impact, and their first update was too
- 8:41slow. Every team thinks they're good at comms
- 8:44until they're in a real outage. So Monday take.
- 8:47If you run Postgres, ask yourself, do we have
- 8:49any alerting that detects this query suddenly
- 8:52got 50 times slower? Or this query changed plan?
- 8:55Or do we just wait for CPU graphs to screen?
- 8:58And separately, do we have a degraded mode strategy
- 9:01for the handful of flows that absolutely cannot
- 9:04be down? Auth, token validation, session refresh,
- 9:08payment, whatever it is for your product. Because
- 9:11the best incident is the one where users can
- 9:14still do the one thing they really need, even
- 9:16if the rest is on fire. All right, story three.
- 9:23This one's floating around as AI took down AWS,
- 9:26which is obviously the headline everybody wants.
- 9:29But the more useful way to look at it is this
- 9:32is a permission story. Reuters reported that
- 9:34AWS had a disruption tied to a cost management
- 9:37feature, and the reporting connected it to AWS's
- 9:41internal AWS tooling called Kero. AWS responded
- 9:45by saying it was limited to a single service,
- 9:47not AWS broadly. It was limited to one region,
- 9:50and it was user error. Then AWS published their
- 9:53own statement, basically saying, the interruption
- 9:56was due to misconfigured access controls, not
- 9:59AI. They also say they added additional safeguards,
- 10:02including mandatory peer review for production
- 10:05access. You can believe whichever framing you
- 10:07want, but the operational takeaway is identical.
- 10:10If you have a tool that can take action, it is
- 10:13part of your control plane. Whether it's an agent,
- 10:16A bot, a pipeline, Terraform, a chatbot command,
- 10:20a script that runs at 2am, or an internal self
- 10:22-service portal. The moment it can touch production,
- 10:25you need to treat it like production access.
- 10:28And the fastest way to get hurt here is letting
- 10:30convenience win over boundaries. So what does
- 10:33good boundaries look like in real teams? It looks
- 10:36like separation between read -only and write.
- 10:38It looks like separation between propose a plan
- 10:41and execute the plan. It looks like destructive
- 10:43actions requiring explicit approvals. Not just
- 10:46it ran in automation, so it must be fine. It
- 10:49looks like a break glass path for emergencies
- 10:52that is auditable and annoying enough that nobody
- 10:55uses it casually. And it looks like logging actual
- 10:58tool actions, not just chat transcripts. Not
- 11:01the bot said it would delete things. I mean,
- 11:04who called what API, with what role, against
- 11:07what resources, and what changed? Because in
- 11:10this new era, the hardest incidents will be the
- 11:13ones where everything moved fast. And nobody
- 11:16can confidently answer what actually happened.
- 11:19Monday take. If your org is messing with agents,
- 11:22or even just adding more automation, do one simple
- 11:26exercise. Pick one destructive action that exists
- 11:29in your environment. Like deleting an environment,
- 11:32rotating a secret, revoking access, withdrawing
- 11:35a route, disabling a control. Now ask, can anything
- 11:38do this without a second human being involved?
- 11:42If yes, that's your risk. Not because AI is dangerous,
- 11:45but because any tool with power plus weak guardrails
- 11:48is dangerous. Quick platform note. AWS open sourced
- 11:56the EKS node monitoring agent. The big pitch
- 11:59is it monitors node -level system, storage, networking,
- 12:03and accelerator issues and publishes them as
- 12:06node conditions. And EKS can use those conditions
- 12:09to drive automatic node repair. If you've ever
- 12:12had a weird node that's half dead and you ended
- 12:16up SSHing in, tailing kubelet logs, checking
- 12:19disk pressure, and basically doing detective
- 12:22work while your workloads suffer, That's the
- 12:24exact pain that this is aimed at. I like this
- 12:27category of tooling because it's not another
- 12:30dashboard. It's turn node weirdness into a signal
- 12:33that the control plane can act on. If you are
- 12:36on EKS and you've had node flakiness incidents,
- 12:39it's worth a look. All right, time for the lightning
- 12:48round. I'm keeping this tight, four items and
- 12:51all high signal. First, Grafana. There's a high
- 12:54-severity advisory for cross -dashboard privilege
- 12:57escalation via permission management. The short
- 13:00version is, if someone has permission management
- 13:02rights on one dashboard, under certain conditions,
- 13:06they can read and modify permissions on other
- 13:09dashboards. If you run Grafana in a shared environment,
- 13:12this is one of those check your version and patch
- 13:15stories, not a someday story. Second, run C CVEs.
- 13:20AWS put out a bulletin for recently disclosed
- 13:23run C issues that affect container runtimes when
- 13:26launching new containers. I'm not going to pretend
- 13:29everyone patches this instantly because the reality
- 13:32is it depends on how you get your node OS and
- 13:35runtime updates. But this is still a reminder
- 13:38to keep node rollouts and runtime patching as
- 13:41a normal muscle, not a panic button. Third, GitLab
- 13:45patch train. GitLab shipped patch releases that
- 13:48include important bug and security fixes, and
- 13:51they strongly recommend self -managed installs
- 13:54upgrade. If you self -host GitLab, you already
- 13:57know the deal. Don't let we'll do it later become
- 13:59we got popped because we were busy. Fourth, Atlassian's
- 14:03February security bulletin. This is for the enterprise
- 14:06crowd still running data center products. They
- 14:09are calling out a pile of high severity and critical
- 14:12severity vulnerabilities fixed in recent product
- 14:15releases. Same story. If you run it, patch it.
- 14:19If you don't run it, thank your lucky stars and
- 14:21keep scrolling. All right, human closer. There's
- 14:31an ACMQ piece called SRE is anti -transactional,
- 14:35and it nails something that every platform team
- 14:37eventually runs into. Tickets don't scale. Manual
- 14:41work scales linearly. More requests means more
- 14:44humans. And that is how you turn a platform team
- 14:47into a help desk with pager fatigue. The SRE
- 14:50instinct is to build systems that do work for
- 14:53you. Not because you hate helping people, but
- 14:56because you want the systems to be reliable without
- 14:59requiring human glue for every small thing. And
- 15:02honestly, this week's stories are all versions
- 15:04of that same theme. Cloudflare tried to automate
- 15:07a workflow that used to be manual. The idea was
- 15:10right, but the guardrails weren't strong enough.
- 15:13Clerk got hit by a database behavior that didn't
- 15:16trip the usual failover assumptions. And they
- 15:19are evolving their system so the critical flows
- 15:21can survive partial failure. And AWS is in the
- 15:25middle of a bigger shift where tools are doing
- 15:27more, faster, and the only thing standing between
- 15:30helpful and incident is how you design boundaries
- 15:33and approvals. So if you are a platform engineer
- 15:36or an SRE listening to this and you feel like
- 15:38you are buried in tickets, here's the move. Pick
- 15:41one repeated transactional pain this week and
- 15:44don't solve it with another runbook. Solve it
- 15:46with an API. a self -service workflow, or automation
- 15:50with proper guardrails. Okay, time for a quick
- 15:52recap before we wrap. Cloudflare is a reminder
- 15:55that helper jobs are never just a cron. If automation
- 15:58can touch reachability, routing, DNS, certs,
- 16:02or anything shared, it needs production -grade
- 16:05guardrails and a rollback you can execute under
- 16:08stress. Clerk is the reminder that up but slow
- 16:11can be worse than down. If your alerting and
- 16:14failover only triggers on dead systems, you are
- 16:17going to miss the incidents that actually hurt.
- 16:20And the AWS Kiro story, no matter how you frame
- 16:23it, comes back to permissions. If a tool can
- 16:26execute changes, separate propose versus execute.
- 16:29Require approvals for destructive actions. And
- 16:33log the actual actions taken. Lightning round
- 16:36recap. Grafana's permission escalation risk.
- 16:39RunSee Runtime CVEs, GitLab patch releases, and
- 16:43Alassian's monthly security bulletin. Links for
- 16:46all of these are in the show notes and the human
- 16:48takeaway. SRE is anti -transactional for a reason.
- 16:51Tickets don't scale. Build self -service and
- 16:54guardrails so humans stop being the interface
- 16:57for every little thing. All right, that's it
- 17:00for this week. If you want the full receipts
- 17:02and links, the full show notes are on shipitweekly
- 17:05.fm. And the curated weekly brief is on OnCallBrief
- 17:09.com. If you got value out of this, follow or
- 17:12subscribe wherever you listen. And subscribe
- 17:14on YouTube if you are watching the video version.
- 17:17And if you've got an OnCall buddy, send them
- 17:19this episode. I'm Brian for Ship It Weekly, and
- 17:21I'll see you next week.