Even if you have a key that you use for maps (not secret) someone could add the generative AI scope to it and make it now necessarily secret (even though it’s probably already publicly available)?
Google API keys weren't secrets, but then Gemini changed the rules
101–110 of 326 posts
Re: Google API keys weren't secrets, but then Gemini changed the rules
#102Seems like the kind of bug caused by using Gemini to vibe code the GCP.
Re: Google API keys weren't secrets, but then Gemini changed the rules
#103Re: Google API keys weren't secrets, but then Gemini changed the rules
#104Explain It Like I'm Five. From TFA: > Last month, a developer on your team enabled the Gemini API for an internal prototype. > The result: thousands of API keys that were deployed as benign billing tokens are now live Gemini credentials sitting on the public internet. Benign, deployed openly without any access restrictions whatsoever, billing tokens can be used to bill for a service under the account it is enabled fo…
Re: Google API keys weren't secrets, but then Gemini changed the rules
#105Earlier quoted context omitted.
Imagine enabling Maps, deploying it on your website, and then enabling Google Drive API and that key immediately providing the ability to store or read files. It didn't work like that for any other service, why should it work that way for Gemini. Also, for APIs with quotas you have to be careful not to use multiple GCP projects for a single logical application, since those quotas are tracked per application, not per…
Really? I make multiple GCP projects per app. One project for the (eg) Maps API, one for Drive, one for Mail, one for $THING. Internal corp-services might have one project with a few APIs enabled - but for the client-app that we sell, there are many projects with one or two APIs enabled only.
You can do what you're describing but it's not the model Google is expecting you to use, and you shouldn't have to do that.
It seems what happened here is that some extremely overzealous PM, probably fueled by Google's insane push to maximize Gemini's usage, decided that the Gemini API on GCP should be default enabled to make it easier for people to deploy, either being unaware or intentionally overlooking the obvious security implications of doing so. It's a huge mistake.
Re: Google API keys weren't secrets, but then Gemini changed the rules
#106Earlier quoted context omitted.
Seems like they ought to be dedicated security teams monitoring for exactly this: does a key to X give users access to not-X. Even more bizarre is their VDP team not immediately understanding the severity of the issue.
That's how you slow down development to a crawl
Re: Google API keys weren't secrets, but then Gemini changed the rules
#107Earlier quoted context omitted.
First of all, Google is a shell of the company it used to be. That said, I’d actually argue there’s an evolutionary explanation behind this where at a certain size, and more importantly complexity, an oversight like this becomes even more likely, not less.
Seems like they ought to be dedicated security teams monitoring for exactly this: does a key to X give users access to not-X. Even more bizarre is their VDP team not immediately understanding the severity of the issue.
Re: Google API keys weren't secrets, but then Gemini changed the rules
#108Explain It Like I'm Five. From TFA: > Last month, a developer on your team enabled the Gemini API for an internal prototype. > The result: thousands of API keys that were deployed as benign billing tokens are now live Gemini credentials sitting on the public internet. Benign, deployed openly without any access restrictions whatsoever, billing tokens can be used to bill for a service under the account it is enabled fo…
Google guidelines say "API keys" (a huge misnomer for something that is more accurately described as a project ID) are not secrets. The idea of creating an internal project goes against what the guidelines suggest. The "API keys" are customer facing identifiers.
Re: Google API keys weren't secrets, but then Gemini changed the rules
#109Can't you just run up a huge bill for a developer by spamming requests with their key? I don't see how this wasn't always an issue?
Re: Google API keys weren't secrets, but then Gemini changed the rules
#110This totally reminds me of SSN use, when initially they were just a number (not secret) to identify a person, and then suddenly people started to use them as a key for authorisation, because someone had a bright idea how to implement things fast/simple/cheap (cheap part comes at expense of others)