Dev's Codex deployed his .env to Cloudflare Pages, landing a $90,000 Google API bill

ssh4net · x · 2026-10-22

A viral drama thread: the PHP Foundation pre-announced an emergency security release for Oct 21 fixing two critical CVSSv4 9.2 vulnerabilities. When a commenter mocked "real devs don't use PHP," others dug up that he had just self-reported a key leak: after asking Claude Opus 5.5 to investigate, he found Codex had published his .env file to Cloudflare Pages, leaking his Google API keys and landing him a $90,000 bill.

Takeaway for developers: when letting coding agents handle deployments, exclude secret files and audit deploy artifacts — one push can expose all your credentials.

Related event: Developer's AI Coding Assistant Leaks .env, Costing $90K in Google Bills(3 posts)→

Original post →

More from Fun

Fun channel →