-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix(security): restrict API key access on internal-only routes #2964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
109e193 to
f78659e
Compare
Greptile SummaryImplements three-tier authentication strategy to restrict API key access on internal routes:
This security enhancement prevents external API key access to sensitive internal endpoints while maintaining proper access for the executor and UI. Confidence Score: 4/5
Important Files Changed
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
85 files reviewed, 1 comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Summary
checkInternalAuthandcheckSessionOrInternalAuthfunctions to enforce route-specific authcheckInternalAuth(executor-only, blocks API key access)/api/function/executeand/api/providersto internal-only authcheckSessionOrInternalAuth(UI + executor, no API keys)Type of Change
Testing
Tested manually - TypeScript compiles without errors
Checklist