apache / apache/casbin-policyguard
feat(templates): implement policy library for reusable casbin models
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
In existing implementation, users currently need to manually define raw casbin models in every policy. To simplify this process the following updates are proposed:
- creating a built-in library for common templates like pod security would be beneficial;
- the admission policy CRD should also be refactored to accept parameters for these templates;
- in addition the controller needs a loading mechanism to instantiate enforcers dynamically;
- providing robust validation logic ensures user parameters match the selected template schema;
- ultimately these changes lower the barrier to entry through out-of-the-box usability.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by locating the existing admission policy CRD, raw Casbin model handling, and controller enforcer setup; then map how templates, parameters, and validation would fit together. Done means reusable built-in templates, parameterized CRD support, dynamic enforcer loading, and validation are implemented, but the issue provides no concrete acceptance tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100