Restrict rescind_invitation RPC to authenticated callers#1714
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, 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 the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
✨ 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 |
3f8bfc4 to
b34d753
Compare
b34d753 to
5b87302
Compare
|



Summary (AI generated)
public.rescind_invitation(email, org_id)so it is no longer callable byanon.NO_RIGHTSfor non-admin callers before org existence checks, removing org-enumeration leakage.Motivation (AI generated)
NO_ORGvsNO_RIGHTS), enabling tenant discovery.Business Impact (AI generated)
Test Plan (AI generated)
bun lintbun lint:backendgit diff origin/main...HEAD.supabase/tests/28_test_new_migration_functions.sqlforrescind_invitationanonymous permission denial andNO_RIGHTSconsistency across invalid org IDs.Screenshots
None (backend-only change).
Checklist
bun run lint:backend && bun run lint.