Refactor API key header conventions for client-facing standards - #3257
Refactor API key header conventions for client-facing standards#3257Thenujan-Nagaratnam wants to merge 2 commits into
Conversation
…curity configuration handling
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe gateway examples now use provider-specific authentication headers and bearer prefixes. The AI workspace preserves these security settings when it creates providers. ChangesProvider authentication alignment
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The PR standardizes provider-specific API key headers and frontend defaults without any supplied evidence of an actionable merge-blocking risk; it is merge-ready after normal checks and review. Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… based on auth configuration
da51466 to
f1aa9b7
Compare
This pull request standardizes the API key authentication headers and conventions across all gateway provider and proxy example YAML files, aligning each with the conventions used by their respective upstream vendors. It also updates the frontend code to default to vendor-specific header conventions and improves how security configurations are handled. These changes ensure better compatibility and clarity when integrating with different LLM providers.
API Key Header Standardization and Convention Alignment:
AuthorizationwithBearerfor OpenAI, Mistral, Bedrock;x-api-keyfor Anthropic;x-goog-api-keyfor Gemini;api-keyfor Azure OpenAI). Also updated documentation comments to clarify these conventions.Frontend and Utility Code Improvements:
ServiceProviderNew.tsx) to default the client-facing API key header to the convention used by the selected upstream vendor, improving user experience and reducing misconfiguration.tmpSPRequest.ts) to honor a pre-resolved security configuration from the caller, only falling back to a generic default if none is supplied.