|
|
|
Ask HN: What do you recommend for implementing access control?
|
|
2 points
by hmdai
708 days ago
|
|
I'm looking for recommendation for separating access control from the core logic of the application. I've looked at a few different open-source solutions, a number of them have their own languages for specifying the policies but I prefer not use a custom language. So far cerbos.dev (using yaml to write policies) seems like a good option. have you used cerbos.dev or any other access control projects (open-source only)? how's your experience with them? |
|
Personally, for what I'm building it's a pro. I like the simplicity. Other authz sass products want to own your user store to implement their fancy features you see in their marketing. Cerbos doesn't have those fancy features (such as UI components). Once again, that may be a pro or con.
At the time of writing (Cerbos v0.37), I find Cerbos' scope functionality is not very well thought out and possibly dangerous if it's not well understood. And the marketing/documentation on multi-tenancy is a bit deceiving in that out of the box it may only be a good fit for a certain type of multi-tenancy. Definitely do a POC to see if it will fit your needs. But the company seems responsive to feedback and I think they will address this in future updates.