Case studies

Real production investigations, with client details removed. Most come from a long engagement inside one client’s platform team, so “we” and “our” mean that team.

  1. Automation

    A cleanup job failed to delete things 220 times a day. Another job deleted an environment marked do-not-delete.

    Found: orphaned load balancer rules the script didn’t know about, a plaintext key in a root cron job, and protection based only on a hard-coded list of names.

    Rewritten to dry-run by default, use an instance role instead of keys, respect do-not-delete tags and keep an audit log.

  2. Security forensics

    A cloud access key was baked into container images. The standard tools said it had barely been used.

    Found: the audit log lived in another region, and the query tools were silently skipping data. A rebuilt trace found 1,434 calls in two days where the standard tool showed one. On a second key, it caught calls from phones on mobile networks.

    Key report in 33 s, down from 5 min. Every caller identified before rotation.

  3. CI/CD

    Every CI job sat in the queue, with zero runner pods and no errors in the logs.

    Found: GitHub’s minimum runner version had passed our image’s, and the runner controller deleted the whole fleet without a single error line. Later, a legacy VM with a matching label started failing builds at random.

    Immutable image tags and a weekly upgrade pipeline replaced a recurring outage.

  4. Hybrid networking

    The GCP↔AWS VPN tunnel showed as up on both sides, but connections just hung.

    Found: six separate gaps in routing. Return routes were missing, Cloud SQL wasn’t sharing VPN routes with its peered network, and traffic from GKE pods left with an address range AWS didn’t route.

    Links to two AWS regions are in production, and new ones follow a runbook.

  5. Access and networking

    Most servers disappeared from our access gateway, 28 hours after a firewall change.

    Found: removing a security group rule doesn’t cut connections it already allowed, so existing tunnels kept working. When the gateway restarted, most agents couldn’t reconnect. A second incident: a rolling deploy briefly ran two gateway tasks with the same identity.

    Access restored. Both causes explained, with a safer deploy setting proposed.

  6. Containers

    On the first deploy to a new region, a service failed 4,222 tasks, with memory at 8%.

    Found: a 403 during startup. Two services resolved a different tenant for the same region, so one sent a stale internal API key.

    Fixed with one environment variable, and the second service with the same problem was fixed in minutes.

  7. Security and AI

    We wanted AI agents to review pull requests for vulnerabilities. Could they be trusted with the repo?

    Found: the agents’ file-write rules weren’t enforced, and one git flag let them get around the shell rules.

    The agents run in a pinned container sandbox, and the gate was tested end to end with a planted bug.

  8. On-call

    Three alarms fired so often that people had stopped reading them.

    Found: a Kubernetes controller stuck retrying a deletion the org policy blocked, a feature that had never worked, and a backup job that had already been replaced.

    Each alarm explained, then handed to its owner or decommissioned.

  9. Performance

    Pages in the BI tool took 6 seconds to load, while the database sat at 15% CPU.

    Found: the app and its database were on opposite sides of the world. Each page made 16 round trips of 280 ms, and background sync jobs kept the connection pool full.

    Cause measured, with a phased plan to bring the database into the app’s region.

Featured project, built at work (private code)

SchemaPilot

A database change-management platform I built from scratch. It replaced a legacy tool that relied on a script with hard-coded plaintext credentials. Now every schema change is requested, checked, approved and applied with an audit trail.

  • SQL is parsed into an AST and checked against an allowlist before it can run
  • Dry run and apply happen in a transaction, with automatic rollback, and online operations like CREATE INDEX CONCURRENTLY are handled safely
  • Google SSO, two-tier roles, and a request → approve → apply workflow
  • Schema diffing and drift detection across 26 databases in 5 regions
  • A pre-launch adversarial review found and fixed an approval bypass and an auth middleware short-circuit
  • TypeScript
  • Fastify
  • React
  • PostgreSQL
  • ECS Fargate
  • 95-test CI suite
SchemaPilot workflow: request, validate, approve, dry run, apply, with automatic rollback automatic rollback Requestvia SSO ValidateAST allowlist Approveapprover role Dry runin a transaction Applyaudit logged
Every change takes the same path. If a check fails at apply time, it rolls back on its own.

Want to talk through one of these, or a problem like it? I reply within 24 hours.

Get in touch