-
Notifications
You must be signed in to change notification settings - Fork 142
fix: fix gateway token reading, rivetkit path token, vergen git sha #3721
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
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
Pull Request Review - PR #3721This PR fixes three related issues: gateway token reading, rivetkit path token handling, and vergen git SHA handling. Overall, the changes are well-structured and address real bugs. Here's my detailed review: ✅ Positive Aspects
🔍 Code Quality & Best Practicesengine/packages/guard/src/routing/pegboard_gateway.rsGood:
Issues:
rivetkit-typescript/packages/rivetkit/src/remote-manager-driver/actor-websocket-client.tsCritical Issue: The The path-based token (in the URL) works, but WebSocket protocol fallback won't work. The function should add the token to protocols when available. engine/packages/util/build.rsGood:
Minor suggestion: Consider logging when the override is used for better debugging visibility. Cargo.tomlConcern: Enabling debug symbols in dev builds ( scripts/run/docker/engine-rocksdb.shThe addition of 🔒 Security Considerations
⚡ Performance ConsiderationsNo significant performance concerns. The URL encoding adds negligible overhead. 🧪 Test CoverageMajor Gap: No tests found for the token extraction logic. Recommended tests:
📋 Summary of Required ChangesCritical (Must Fix):
High Priority:
Medium Priority:
Low Priority:
📝 Additional NotesThe Grafana dashboard changes (adding router filtering) are mechanical and look correct—they're just generated config files. Overall, this PR addresses real issues but has one critical bug in the TypeScript client that needs to be fixed before merging. Review generated by Claude Code |
7c1841f to
a64352e
Compare
| const guardUrl = combineUrlPath(endpoint, `/gateway/${actorId}${path}`); | ||
| let gatewayPath; | ||
| if (runConfig.token !== undefined) { | ||
| gatewayPath = `/gateway/${actorId}@${runConfig.token}${path}`; |
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.
needs to be uri component encoded
| if (runConfig.token !== undefined) { | ||
| gatewayPath = `/gateway/${actorId}@${runConfig.token}${path}`; | ||
| } else { | ||
| gatewayPath = `/gateway/${actorId}${path}`; |
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.
my mistake but acto rid should also be uri component encoded
a64352e to
6ccf784
Compare
2bc37dc to
5cdf86a
Compare
Merge activity
|

No description provided.