by calpaterson · 2y ago · 0 comments
I really don't want to implement, eg RBAC, by myself but equally the state-of-the-art seems to be integration against pretty complicated external stuff (/cloud services) which is also undesirable when it's your side-project.
Advice appreciated. I suspect LDAP is not a fit but I will investigate it...
Ldap would be a great fit. And go go read here: https://www.zytrax.com/books/ldap/ if you want a dive that you can wrap your head around.
Candidly I would NOT go for ldap or RBAC now. The two things I would try to bite off are shared ownership, and then revokable tokens at the table level. It's up to the token creator what permissions to give them (read/write), how long they should last, and if they want to just publish them or create one per "user".
That way you don’t lock the main functionality up with the rights management aspect and 1,000+ custom permissions and role sets.
Authorization is the front door to a hallway with keyed doors behind. Have a peep hole to authenticate where necessary, but don’t complicate the core product with it.
Heck, roll your own version if you have time. With this system you can change it in and out and not have to rewrite your base to accommodate. An oversimplification, as are most things.
My .02c