-
Notifications
You must be signed in to change notification settings - Fork 129
chore(rivetkit): remove unneeded headers & protocols in requests #3356
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 GitHub.
3 Skipped Deployments
|
PR Review: Remove Unneeded Headers & Protocols in RequestsSummaryThis PR removes redundant routing information from client requests. The HEADER_RIVET_ACTOR header (HTTP) and WS_PROTOCOL_ACTOR protocol (WebSocket) are no longer sent by the client since the actor ID is already embedded in the URL path. Code Quality - ApprovedPositive aspects:
Architecture notes:
Potential Issues1. Missing cleanup in test infrastructure 2. Consider updating actor-router-consts.ts Security Considerations - Approved
Performance Considerations - Approved
Test Coverage - Needs VerificationConcern: The PR doesn't show any test updates or verification that this change doesn't break existing functionality. Recommendations:
Recommendations
Verdict: Approve with Minor SuggestionsThis is a solid cleanup PR that removes redundant code. The implementation is correct, and the change is safe since the gateway continues to support both routing mechanisms. My only concern is ensuring adequate test coverage for this change. Great work on keeping the codebase clean! |
ce1b9a9 to
cd3979e
Compare
3350cdc to
b064b66
Compare
PR Review: Remove Unneeded Headers & Protocols in RequestsSummaryThis PR removes redundant routing information from client requests. The Code Quality ✅ ApprovedPositive aspects:
Architecture notes:
Potential Issues1. Missing cleanup in Cloudflare Workers driver The // Line 97 in openWebSocket
protocols.push(`${WS_PROTOCOL_ACTOR}${actorId}`);
// Line 218 in proxyWebSocket
protocols.push(`${WS_PROTOCOL_ACTOR}${actorId}`);This appears to be the same redundant pattern that was removed from remote-manager-driver. Consider removing it there as well for consistency. 2. Test inline client driver is intentionally different The 3. Consider adding clarifying comments The constants Security Considerations ✅ Approved
Performance Considerations ✅ Approved
Test Coverage
|
PR Review: Remove Unneeded Headers & ProtocolsSummaryThis PR removes redundant actor ID headers and WebSocket protocols from client requests. The actor ID is already passed in the URL path via Code Quality ✅Positive aspects:
Changes reviewed:
Architecture Analysis ✅The server-side routing logic confirms this change is safe: Path-based routing (primary, used by this client):
Header-based routing (fallback, still supported):
Since the client uses path-based routing through Potential Concerns
|
b064b66 to
68aeeee
Compare
cd3979e to
0eb4caf
Compare
Code ReviewSummaryThis PR removes unnecessary headers and protocols from RivetKit client requests. The changes are safe and correct - the client uses path-based routing ( Positive Findings✅ Correct Path-Based Routing: The client correctly uses path-based routing:
✅ Server Compatibility: The server gateway properly handles path-based routing:
✅ Header-Based Routing Preserved: The removed header/protocol were only used for header-based routing (manager/gateway.ts:241-265), which is a fallback mechanism not used by the remote manager driver. ✅ Clean Code: Removal reduces code complexity and eliminates redundant data transmission. Important Note
This is fine since the server supports both routing methods, but for consistency, consider:
Test CoverageThe PR doesn't include test changes. Consider:
VerdictLGTM - The changes are correct and safe. The code is cleaner without the redundant headers/protocols. The only consideration is Rust client consistency as noted above. 🤖 Generated with Claude Code |
Pull Request ReviewSummaryThis PR removes the AnalysisFiles Changed:
Critical Issue: Breaking Change
|
0eb4caf to
d1c6bfd
Compare
68aeeee to
4a3505a
Compare
Pull Request ReviewSummaryThis PR removes redundant HEADER_RIVET_ACTOR header and WS_PROTOCOL_ACTOR WebSocket protocol from client requests. The actorId is already encoded in the URL path (/gateway/{actorId}/...), making these additional parameters unnecessary. Code Quality - APPROVEDPositive aspects:
The changes are correct because:
Architecture Alignment - APPROVEDThe changes align well with the codebase's routing strategy:
Since the client always constructs URLs with actorId in the path, the header/protocol are indeed redundant. Potential Concerns1. Server-side code still reads these values The gateway code still attempts to parse WS_PROTOCOL_ACTOR and HEADER_RIVET_ACTOR in fallback paths:
Impact: Low - These are fallback mechanisms. Since path-based routing succeeds first, the fallback code is never reached. 2. Other drivers may still send these values Looking at cloudflare-workers/src/manager-driver.ts:97,218, the Cloudflare Workers driver still sends WS_PROTOCOL_ACTOR. This inconsistency should be addressed in a follow-up:
3. Constants still defined and exported actor-router-consts.ts:25,32 still exports these constants, and they're still in ALLOWED_PUBLIC_HEADERS (line 58). Consider:
Security Considerations - APPROVEDNo security concerns. The change actually slightly improves security posture by:
Performance - APPROVEDMinor positive impact:
Test Coverage - NEEDS VERIFICATIONNo test modifications included. Consider:
RecommendationsBefore merging:
Follow-up work:
Verdict: APPROVE with minor suggestionsThe core changes are correct and safe. The redundant parameters are indeed unnecessary given the URL-based routing. The suggestions above are for consistency and completeness, but don't block merging. Excellent cleanup work! |
4a3505a to
6a2bd5c
Compare
d1c6bfd to
1cee2e1
Compare
Code ReviewSummaryThis PR removes the HEADER_RIVET_ACTOR header from HTTP requests and the WS_PROTOCOL_ACTOR protocol from WebSocket connections in the remote-manager-driver. The changes make sense because this driver uses path-based routing (/gateway/{actorId}/...) instead of header-based routing, so these headers/protocols are redundant. ✅ Positive Aspects
|
6a2bd5c to
87467c8
Compare
1cee2e1 to
8499e1e
Compare
Code Review for PR #3356SummaryThis PR removes the Critical Issues1. Breaking Change - WebSocket Protocol Parsing
|
Pull Request ReviewI've reviewed the changes in this PR that remove the OverviewThe PR removes actor ID information from client requests to the remote manager driver by:
Code Quality ✅The code changes are clean and well-structured:
Potential Issues
|
Merge activity
|

No description provided.