Repository navigation
fix(catalog): authorize list pages without holding a read connection - #2058
Conversation
- Each page of a namespace, table, view or soft-deleted tabular list is read in its own read transaction, committed before the page is authorized, so a list never holds a read connection while an authorizer that reads the catalog waits for another. - The table and view lists check `ListEverything` on the namespace once per request. - `HidingAuthorizer::with_check_hook` runs a future inside every catalog object check, for tests of authorizers that read the catalog.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughListing pagination now commits each fetched page before authorization. Namespace, table, view, and soft-deleted-tabular listing paths use separated fetch and authorization steps. New integration tests exercise these paths concurrently with a two-connection read pool. ChangesListing pagination and authorization
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The listing changes are ready to merge after normal checks; no outstanding issue was identified. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Releasing the read connection before authorization addresses the reported pool contention. Table and view listings now check a broad listing permission before fetching the page, however, so a revocation during that fetch may not affect the response. The possible exposure is limited to listing metadata in that request. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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. A rabbit checks each page in flight Comment |
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
ListEverythingon the namespace once per request.HidingAuthorizer::with_check_hookruns a future inside every catalog object check, for tests of authorizers that read the catalog.Summary by CodeRabbit