You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created this issue sharing my debug logs, and I instantly got a notification from Google about my keys being disclosed in that exact URL. Which was my own doing, inadvertently.
I'm not certain the key is the one I redacted in the logs attached, but I think so.
Reproduction steps
Check debug logs with Gemini as provider. It has the API key attached to some messages.
Debug logs
2025-05-07 19:30:24.549 INFO (MainThread) [custom_components.llmvision.providers] Posting to https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=redacted
2025-05-07 19:30:26.094 INFO (MainThread) [custom_components.llmvision.providers] Posting to https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=redacted
The text was updated successfully, but these errors were encountered:
Yes you are right, this shouldn't happen. The keys should be censored. Unfortunately Google for some reason requires the key in the url (every other provider uses Bearer Authentication). Only Gemini is affected.
Yeah I can understand that. However something could be added to the log message with a regex replace, and redact the key automatically for the logs. I think that's what other services do with their logs.
Uh oh!
There was an error while loading. Please reload this page.
Checklist
Describe the issue
I created this issue sharing my debug logs, and I instantly got a notification from Google about my keys being disclosed in that exact URL. Which was my own doing, inadvertently.
I'm not certain the key is the one I redacted in the logs attached, but I think so.
Reproduction steps
Debug logs
The text was updated successfully, but these errors were encountered: