今日已更新 267 条资讯 | 累计 41487 条内容
关于我们

How an API Key Leak Suspended My Live AI Project Overnight 🚨 Every solo dev dreads opening their inbox to this:

wanjiang 2026年09月09日 14:33 1 次阅读 来源:Dev.to

Every solo dev dreads opening their inbox to this: "Your project was suspended because it engaged in abusive activity consistent with hijacking resources." Within hours, an unauthorized bot scraped one of my Gemini API keys ( Generative Language API Key3 ) and burned hundreds of dollars in automated, high-frequency requests. Google's automated security tripwires immediately froze my entire project. The Post-Mortem 📉 The Cause : The key was accidentally exposed during a rapid deployment cycle. Scraping bots snatched it within minutes. The Damage : An instant surge to nearly HK$300 in a single day, followed by a total project lockout that took down live user sessions. The Fix : Deleted the compromised key immediately, moved all AI interactions behind server-side Next.js route handlers with rate limiting, and configured aggressive billing budget alerts. What I Was Building: RadioShadow 📻 The compromised key powered RadioShadow — a web app designed to break the dreaded "Intermediate Plateau" in language learning. Textbook apps make you feel confident, but real-world radio—packed with slang, fast speech, and overlapping voices—is an entirely different beast. RadioShadow solves this through the Shadowing technique : Global Radio Streams : Tap into unedited live broadcasts worldwide. Real-Time Subtitles & AI Feedback : Low-latency transcription, live translations, and pronunciation scoring directly through the mic. "✨ Help Me Choose" Wizard : A conversational selector that matches you to the right station based on language and vibe, avoiding the paradox of choice. Tech Stack & Lessons 🛠️ Stack : Next.js (App Router), Tailwind CSS, Framer Motion, Web Audio API, Gemini API, Firebase. Key Lesson : Never let API keys touch client-facing bundles, even for "quick local tests." Always proxy calls through authenticated, rate-limited backend routes. The app is back up at radioshadow.ai.studio (free live streams available to test). How does the audio stream latency feel on your end,

本文内容来源于互联网,版权归原作者所有
查看原文