Repository navigation
fix(openfga): return 403 for denied permission-API actions - #2087
Conversation
A denied OpenFGA check in the /management/v1/permissions API (assignments, authorizer-actions, access, managed-access) now returns 403 Forbidden instead of 401 Unauthorized. Requests without authentication still return 401. The audit log already recorded these denials as ActionForbidden.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. WalkthroughThe ChangesOpenFGA error status mapping
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to Denied permission checks return Forbidden, while paths that explicitly require authentication remain Unauthorized. No actionable merge-blocking risk was established. 🚥 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 the status sign, Comment |
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
(cherry picked from commit 6a0edd4)
A denied OpenFGA check in the /management/v1/permissions API (assignments, authorizer-actions, access, managed-access) now returns 403 Forbidden instead of 401 Unauthorized. Requests without authentication still return 401. The audit log already recorded these denials as ActionForbidden.
Summary by CodeRabbit