yceffort
05 POSTS

Networking 1

  • ◆ OG Scraping Server Design Notes Part 2
    #security#nodejs#backend

    Building an OG Scraping Server in Node.js (2): How SSRF Gets Through

    A feature where the server opens a URL the user handed it is, by itself, the textbook setup for SSRF. I ran six whitelist bypasses and the five defensive principles that block them on Node. Strip IPv4-mapped by hand and hex notation gets through, and undici lookup hook is never called when the host is an IP literal.

    25 min read
  • ◆ OG Scraping Server Design Notes Part 1
    #web-scraping#backend#nodejs

    Building an OG Scraping Server in Node.js (1): From Runtime Choice to Error Rate and Latency

    The "10% error rate" of a link preview server mixes five kinds of failure with different causes. This post works out the four points where runtime choice actually matters, lowers the error rate by fixing User-Agent and encoding handling, and verifies the "P95 under one second" target by working backwards from the cache hit rate with a two-million-run simulation. Along the way it shows that Node built-in TextDecoder turns CP949 extension characters into different characters without raising an error.

    33 min read
  • ◆ Kubernetes for Frontend Developers Part 4
    #kubernetes#devops#debugging

    How Do Pods Terminate? Measuring the Causes and Fixes of Deploy-Time Errors

    Even a deploy that changes not a single line of code still fails requests. I tagged every failed request during rolling deploys by type and timestamp, found four causes, and added fixes one at a time until failures reached zero. The post also checks the actual Next.js shutdown code and the real CrashLoopBackOff restart intervals.

    Updated 20 min read
  • ◆ Kubernetes for Frontend Developers Part 3
    #kubernetes#networking#devops

    How Does Traffic Reach My Pod? From ClusterIP to port-forward

    A Service's ClusterIP is an IP attached to no machine, so how does a curl request reach a pod? In a kind cluster, this post inspects iptables rules and conntrack, EndpointSlice, cluster DNS and ndots, Gateway, and port-forward in turn to follow the path a request takes.

    27 min read
  • ◆ Directive Deep Dive Part 2
    #react#nextjs#networking

    React Server Functions Deep Dive: To the End of "use server"

    What happens behind a single line of "use server"?

    26 min read