Clarification
> “You have this Google Maps key, which you know, everyone uses, and the guidance from Google is you're supposed to load it in your front end. So we did that, and all of a sudden they changed the keys so that the Google Maps key, which is exposed publicly, could be used for Gemini, and then they didn't disclose that to customers,” he said. “So then, all of a sudden, I just get multiple emails in a row. It's like $3,000, $5,000, $10,000 charged on your Google account.”
> But Fonseka said even if someone were to brute-force his API key, his Google Cloud budget cap was set at Tier 1, which was locked at $250, meaning he should never have been able to spend AUD$17,000 on AI services. “But when I logged in after the attack, it was set to like Tier 2 or Tier 3, which was like $100,000. I would have never set this,” he said.
My initial reaction: Wait, WHAT THE ACTUAL fffffff <rushes to Google Cloud console to check API keys>
But after a bit of looking at docs, I think this article needs a bit more clarification. The article doesn't say, but I'm assuming Danan was using an unrestricted key? So, when he says "all of a sudden they changed the keys" - does this actually mean that he was using an unrestricted key (which can be used for ANY API), so when the Gemini API was added, then it could be used for the Gemini API? In which case, I'm not sure the fault isn't with Danan on using an unrestricted key in public. Am I missing something?
Also, "his Google Cloud budget cap was set at Tier 1, which was locked at $250" - I assume this is talking about Gemini rate limit tiers, not budgets? It clearly states on the rate limit doc page that you will be automatically upgraded as usage increases. The real problem is that Google do not provide ANY way to cap spend. There is something called a Budget, but this is merely a way to set up an email notification (minimum timescale 1 month) if spend breaches a threshold. This is shitty, and there absolutely should be a way to cap spend, but there isn't. But the way the article is written suggests that Google are not abiding to some kind of budget cap you intentionally set, which isn't true because there is literally no way to set a budget cap. Am I missing something? Honestly a bit confused here.