fix(kb): enforce server-owned folder connector limits#14039
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughFolder ingestion now applies operator-owned allowed roots and per-file size limits across direct and connector routes. A validated ChangesFolder ingestion security
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant ingest_via_connector
participant SecuritySettings
participant FolderSource
Client->>ingest_via_connector: Submit folder source configuration
ingest_via_connector->>SecuritySettings: Read allowed roots and max file size
SecuritySettings-->>ingest_via_connector: Return operator policy
ingest_via_connector->>FolderSource: Create source with secured configuration
FolderSource-->>ingest_via_connector: Validate folder configuration
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 9✅ Passed checks (9 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
✅ Test Coverage AdvisorNo source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.10.3 #14039 +/- ##
==================================================
+ Coverage 58.71% 58.74% +0.03%
==================================================
Files 2307 2312 +5
Lines 220314 221675 +1361
Branches 31177 34411 +3234
==================================================
+ Hits 129354 130222 +868
- Misses 89475 89890 +415
- Partials 1485 1563 +78
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Adam-Aghili
left a comment
There was a problem hiding this comment.
FIxes the reported issue but would like someone with more KB knowledge to validate it doesn't break expected behaviour
Summary
Testing
Summary by CodeRabbit
New Features
Bug Fixes