25: Role-derived access and permission patterns - #43
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe core package adds exported exact, global, and namespace permission matching, integrates it into authorization evaluation, and expands tests for pattern grants, denials, role-derived access, and additive behavior. ChangesPermission pattern authorization
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 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. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
What changed
Extends the decision path so that:
matchesPermission()supporting exact keys, global*, and namespacefiles.*patterns. Theevaluate()function now uses pattern matching for fact resolution.Changes by file
packages/core/src/index.tsmatchesPermission(), updatedevaluate()to use pattern matchingpackages/core/__tests__/decision.test.tspackages/core/__tests__/smoke.test.tsmatchesPermissionexport testBug fix (TDD)
Code-review found a namespace dot-boundary bug —
"filesX.read"incorrectly matched"files.*". Fixed test-first.Acceptance criteria
*, and namespace patterns such asfiles.*are supportedVerification
Refs #25
Summary by CodeRabbit
New Features
*) and namespace patterns such asfiles.*.Tests