-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an authorization mechanism based on Casbin #368
Comments
That can be a really good addition to the project. Not having roles limits using semaphone in some environments like mine. I would like to help in its implementation, while I don't know much about casbin right now. |
Hi @fernandezvara , Thanks for willing to help:) You can get a rough image of Casbin at the README.md here: https://github.com/casbin/casbin The model syntax is here: https://github.com/casbin/casbin/blob/master/Model.md Please contact me at the Gitter if you have any questions or want to discuss with me:) I really doesn't have much knowledge of semaphore. |
+1 |
Looks interesting for me. I plan to play with Casbin during this week. @hsluoyz, I contact you in the case of problems. |
@strangeman - was there any outcome to this? If not I will close it in favour of a more generic ticket for abstracting authentication mechanisms, as we also have a need to support keycloak etc.... |
@twhiston nope, I didn't reach any progress in this. We need to think about more rich authentification and authorization mechanisms. |
Hi, I'm the author of Casbin. It is a Go authorization library that supports access control models like ACL, RBAC, ABAC. It's already used in some large systems, mostly web frameworks. See details here: https://github.com/casbin/casbin
I noticed that semaphore still lacks an authorization mechanism, and there's demand for it (see: #344). (Thanks to @matejkramny for pointing it out for me:)) I think a RBAC-based authorization will fit in our scenario. About our scenario, Casbin can provide:
admin
role, and the project owner will have a localadmin
role, which only works inside his project.admin
role can be a member oftemplate admin
andtask admin
roles. Soadmin
role will have all the permissions that are assigned totemplate admin
andtask admin
.So what do you think? I can make PR if it's OK. Thanks!
@matejkramny @strangeman
The text was updated successfully, but these errors were encountered: