fix(sg): enforce TenantMember and RBAC permissions on /security-group…#693
fix(sg): enforce TenantMember and RBAC permissions on /security-group…#693jackthepunished wants to merge 1 commit into
Conversation
poyrazK#681 poyrazK#675) Adds httputil.TenantMember to the security-groups route group and wraps every endpoint with the appropriate sg:* RBAC permission, mirroring the VPC pattern. Closes the IDOR vector that allowed cross-tenant SG access (poyrazK#681) and the missing-RBAC gap that let any authenticated user mutate SGs (poyrazK#675).
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 59 minutes and 44 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the /security-groups API routes to enforce tenant membership and RBAC permissions per endpoint.
Changes:
- Added
TenantMembermiddleware to the/security-groupsroute group. - Added per-route RBAC permission middleware for create/read/update/delete security-group operations.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…s (#681 #675)
Adds httputil.TenantMember to the security-groups route group and wraps every endpoint with the appropriate sg:* RBAC permission, mirroring the VPC pattern. Closes the IDOR vector that allowed cross-tenant SG access (#681) and the missing-RBAC gap that let any authenticated user mutate SGs (#675).