fix: Reject repository URLs with embedded credentials [VER-533] - #36
Conversation
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 7 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Comment |
PR Summary by QodoReject repository URLs with embedded credentials
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
2 rules 1.
|
Qodo FixerNo findings are within the configured fix scope. To change which findings are fixed, adjust the setting on your Qodo configuration page. |
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
|
Code review by qodo was updated up to the latest commit 77c16f1 |
Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
|
Code review by qodo was updated up to the latest commit a6c2fce |
Repository URL validation landed in #35 only enforces the http(s) scheme, so a credential-bearing URL such as
https://token@github.com/org/repois accepted, persisted, and then rendered verbatim as the project's external link, exposing the embedded secret to anyone who can view the project. This extends the shared client predicate and the authoritative server schema to reject userinfo:server/src/routes/projects.tsapplies the same check in itsHttpUrlrefinement, so create and update both return 400 instead of persisting. BecauseProjectDetailalready gates the link onisHttpUrl, any credential URL stored before this change stops rendering as a clickable link too.Existing URLs without userinfo, including ports, paths, query strings, and fragments, are unaffected. Server and form tests are extended to cover the credential case.
Follow-up to a Qodo security finding on #35, which merged before the fix could land on that branch.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is enabled.Closes VER-533