> Are there recommended safeguards beyond ... moving calls server-side? This implies the API calls originated in the client, suggesting the client may have had they API key.
€54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
31–40 of 325 posts
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#32[flagged]
> — billing alerts fire in hours, damage happens in minutes. And why do you need to use AI to tell us that. How much shorter could the prompt have been?
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#33[flagged]
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#34That's fucking bonkers that nothing in the system could see this as unusual and worthy of throttling. The embarrassment of this -- that a company LITERALLY SELLING machine learning services and expertise -- cannot spot such a thing... This should have led them to deal with this internally and refund it. Just... Wow Google.
there is no way to cap your billing on gcp. you can get notifications but that's it. i don't want to get throttled below my quota but some type of spend limit would be good.
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#35[flagged]
Nothing new here - what is new is the
A thing before anyone noticed - another thing, billing in hours, damage in minutes.
has the signal, doesn't expose the control
Every one of those "exposes the signal" to me.
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#36Earlier quoted context omitted.
> — billing alerts fire in hours, damage happens in minutes. And why do you need to use AI to tell us that. How much shorter could the prompt have been?
You are getting down voted but the first thing I thought when I read the above comment you replied to was that it was written by an LLM as well. It has all the stylings of it. Word choice, sentence structure, phrasing, metaphors, etc.
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#37[flagged]
[1] https://github.com/qudent/qudent.github.io/blob/master/_post...
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#38Considering the amount of repositories on public GitHub with hard-coded Gemini API tokens inside the shared source code ( https://github.com/search?q=gemini+%22AIza%22&type=code ), this hardly comes as a surprise. Google also has historically treated API keys as non-secrets, except with the introduction of the keys for LLM inference, then users are supposed to treat those secretly, but I'm not sure everyone got that…
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#39Considering the amount of repositories on public GitHub with hard-coded Gemini API tokens inside the shared source code ( https://github.com/search?q=gemini+%22AIza%22&type=code ), this hardly comes as a surprise. Google also has historically treated API keys as non-secrets, except with the introduction of the keys for LLM inference, then users are supposed to treat those secretly, but I'm not sure everyone got that…
Re: €54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs
#401 API-key restrictions by HTTP referrer AND by API (`generativelanguage.googleapis.com` only),
2 a billing budget with a Pub/Sub "cap" action, not just an email alert. Neither is on by default, and almost nobody sets them before shipping. 13 hours is actually fast for detection. most teams find out at end-of-month reconciliation.