-
Notifications
You must be signed in to change notification settings - Fork 620
chore: optional serviceApiKey #7305
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 8655147 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThe changes make the service API key optional in the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ServiceUtils
Client->>ServiceUtils: getAuthHeaders(authData, serviceApiKey?)
alt With authData
ServiceUtils-->>Client: Return headers with auth info
else With serviceApiKey
ServiceUtils-->>Client: Return headers with API key
else Neither present
ServiceUtils-->>Client: Return empty headers {}
end
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7305 +/- ##
=======================================
Coverage 55.57% 55.57%
=======================================
Files 909 909
Lines 58673 58673
Branches 4158 4158
=======================================
Hits 32607 32607
Misses 25959 25959
Partials 107 107
🚀 New features to boost your workflow:
|
size-limit report 📦
|
[SDK] Fix: Make service API key optional to allow services to pass through auth
Notes for the reviewer
This PR makes the
serviceApiKeyparameter optional in the service-utils package to support services that pass through user-provided authentication (like analytics) and should not have any authed access on their own.How to test
Added unit tests to verify that empty headers are returned when no auth method and no serviceApiKey is provided.
Summary by CodeRabbit