NewsWorld
PredictionsDigestsScorecardTimelinesArticles
NewsWorld
HomePredictionsDigestsScorecardTimelinesArticlesWorldTechnologyPoliticsBusiness
AI-powered predictive news aggregation© 2026 NewsWorld. All rights reserved.
Trending
FebruaryChinaSignificantMilitaryTimelineDigestFaceDiplomaticFederalTurkeyFridayTrumpDrugGovernanceTensionsCompanyStateIranParticularlyEscalatingCaliforniaTargetingNuclearDespite
FebruaryChinaSignificantMilitaryTimelineDigestFaceDiplomaticFederalTurkeyFridayTrumpDrugGovernanceTensionsCompanyStateIranParticularlyEscalatingCaliforniaTargetingNuclearDespite
All Articles
Google API Keys Weren't Secrets. But Then Gemini Changed the Rules
Hacker News
Clustered Story
Published 1 day ago

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

Hacker News · Feb 26, 2026 · Collected from RSS

Summary

Article URL: https://simonwillison.net/2026/Feb/26/google-api-keys/ Comments URL: https://news.ycombinator.com/item?id=47164398 Points: 3 # Comments: 1

Full Article

26th February 2026 - Link Blog Google API Keys Weren't Secrets. But then Gemini Changed the Rules. (via) Yikes! It turns out Gemini and Google Maps (and other services) share the same API keys... but Google Maps API keys are designed to be public, since they are embedded directly in web pages. Gemini API keys can be used to access private files and make billable API requests, so they absolutely should not be shared. If you don't understand this it's very easy to accidentally enable Gemini billing on a previously public API key that exists in the wild already. What makes this a privilege escalation rather than a misconfiguration is the sequence of events. A developer creates an API key and embeds it in a website for Maps. (At that point, the key is harmless.) The Gemini API gets enabled on the same project. (Now that same key can access sensitive Gemini endpoints.) The developer is never warned that the keys' privileges changed underneath it. (The key went from public identifier to secret credential). Truffle Security found 2,863 API keys in the November 2025 Common Crawl that could access Gemini, verified by hitting the /models listing endpoint. This included several keys belonging to Google themselves, one of which had been deployed since February 2023 (according to the Internet Archive) hence predating the Gemini API that it could now access. Google are working to revoke affected keys but it's still a good idea to check that none of yours are affected by this.


Share this story

Read Original at Hacker News

Related Articles

Hacker News2 days ago
Google API keys weren't secrets, but then Gemini changed the rules

Article URL: https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules Comments URL: https://news.ycombinator.com/item?id=47156925 Points: 17 # Comments: 1

Hacker Newsabout 1 hour ago
Statement on the comments from Secretary of War Pete Hegseth

Article URL: https://www.anthropic.com/news/statement-comments-secretary-war Comments URL: https://news.ycombinator.com/item?id=47188697 Points: 88 # Comments: 11

Hacker Newsabout 1 hour ago
We Will Not Be Divided

Article URL: https://notdivided.org Comments URL: https://news.ycombinator.com/item?id=47188473 Points: 284 # Comments: 68

Hacker Newsabout 3 hours ago
Qt45: A small polymerase ribozyme that can synthesize itself

Article URL: https://www.science.org/doi/10.1126/science.adt2760 Comments URL: https://news.ycombinator.com/item?id=47187649 Points: 37 # Comments: 4

Hacker Newsabout 3 hours ago
Show HN: I built a site where you hire yourself instead of applying for jobs

Article URL: https://hired.wtf Comments URL: https://news.ycombinator.com/item?id=47187450 Points: 3 # Comments: 1

Hacker Newsabout 3 hours ago
Emuko: Fast RISC-V emulator written in Rust, boots Linux

Article URL: https://github.com/wkoszek/emuko Comments URL: https://news.ycombinator.com/item?id=47187121 Points: 9 # Comments: 0