Skip to content
MediumNewsLLM-specific

Google API Keys Weren't Secrets. But then Gemini Changed the Rules.

Published
Record updated
View JSON

Summary

Google Maps API keys are designed to be public because they are embedded in web pages, but enabling the Gemini API on the same project gives those keys access to private files and billable requests. Truffle Security found 2,863 such keys in the November 2025 Common Crawl that could access Gemini, verified by calling the /models listing endpoint, including several belonging to Google itself. Google is working to revoke affected keys.