Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Problem you have encountered:
The Gemini API requires API keys to be included as a query parameter (
?key=API_KEY
). This is a security risk because URLs are logged in:This increases the chance of accidental key exposure. Other major APIs (Google Cloud, OpenAI, AWS) use
Authorization: Bearer <token>
headers to prevent this.This design may violate OWASP API Security Top 10, particularly:
What you expected to happen:
The API should support authentication via
Authorization: Bearer <token>
to prevent keys from being exposed in logs.Steps to reproduce:
curl
command:history
command)Other information (workarounds, docs consulted, etc.):
Authorization: Bearer <token>
—Gemini API should follow the same best practice.This should be addressed urgently to prevent unintentional API key leaks.