Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
🚥 Pre-merge checks | ✅ 3 | ❌ 2
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. |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ff71fcfe-7053-45f6-acea-b6c7ecce6eb5
📒 Files selected for processing (10)
src/main/gitea/auth-error-message.test.tssrc/main/gitea/auth-error-message.tssrc/main/gitea/client.test.tssrc/main/gitea/client.tssrc/main/ipc/preflight.test.tssrc/preload/api-types.tssrc/renderer/src/components/settings/cli-source-control-integration-cards.test.tsxsrc/renderer/src/components/settings/integrations-pane-status.test.tssrc/renderer/src/components/settings/integrations-pane-status.tssrc/renderer/src/components/settings/token-source-control-integration-cards.tsx
|
Community PR: please Approve and run workflows on head |
f3a7508 to
c0a8b57
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Community PR: please Approve and run workflows on head |
c0a8b57 to
f79beff
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
Community PR: please Approve and run workflows on head |
aef28cc to
f185ed7
Compare
There was a problem hiding this comment.
♻️ Duplicate comments (1)
src/main/gitea/auth-error-message.ts (1)
16-17: 🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟠 Major | ⚡ Quick winSensitive Data Exposure
Reachability: External
Exploitability: Moderate
CWE: CWE-200 — Exposure of Sensitive Information to an Unauthorized ActorRestore comprehensive query-secret redaction.
The matcher does not redact
private_token,client_secret,api_key,password, orpassphrase. A failed server response can include one of these URL query values inmessage, and the value then reachesauthErrorfor display. Extend the query-name matcher and add regression cases for each supported credential name.Proposed fix
- .replace(/([?&](?:access_token|token|key)=)[^&\s]+/gi, '$1[REDACTED]') - .replace(/(authorization\s*[:=]\s*(?:token|bearer)\s+)[^\s]+/gi, '$1[REDACTED]') + .replace( + /([?&](?:access_token|token|key|private_token|api[_-]?key|client_secret|password|passphrase)=)[^&\s]+/gi, + '$1[REDACTED]' + ) + .replace(/(authorization\s*[:=]\s*(?:token|bearer|basic)\s+)[^\s]+/gi, '$1[REDACTED]')Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 06d8884d-d490-4218-992c-02cf19c8671a
📥 Commits
Reviewing files that changed from the base of the PR and between aef28cc93321bad59716199dbd79a28d0558539b and f185ed7.
📒 Files selected for processing (2)
src/main/gitea/auth-error-message.tssrc/main/ipc/preflight-test-harness.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
|
Rebased onto current
|
f185ed7 to
333fda2
Compare
|
Fork CI for The PR-description check failed once because the body had no Performance section, then succeeded after that section was added. Latest checks on that head have no remaining failure. Closing verification PR bbingz#90. |
|
Fork verification for
Closing the fork verification PR. No queued runs were left on this branch. |
Summary
read:userscope).requestJsonAtBasecancels/discards non-2xx bodies and returnsnull;getGiteaAuthStatusonly exposes a boolean./userseparately, keep a redactedauthError, plumb it through preflight (optional field), and show it on the Gitea integration card.Closes #13786
Test plan
vitestsrc/main/gitea/client.test.ts+auth-error-message.test.ts+ integrations-pane-status testsoxlinton touched filesORCA_GITEA_API_BASE_URL+ a token missingread:user; Settings → Integrations → Gitea shows the server message