Adding ACL rules or Claims to Dexie.cloud #2299
Replies: 5 comments
|
or by having the ability to add Access Control Rules in Dashboard Access Control for example:
|
|
Thanks for suggestion! I'll look into it. I confirm that we've got similar FRs from other customers. Please ping me again to remind if I leave this with no further response for some days, but hopefully a response on Monday |
|
@dfahlander have you had any update on the idea :) |
|
Thanks! I've discussed this internally, taking other demands into account. A pure claims-based ACL system would work best if also having a very flexible rule-set for how to bind claims to legal actions. Currently, the most aching thing we see is the lack of a normal user to create members without requiring an invite flow. You also point out a demand to prohibit normal users from even creating a realm (or to create members with invite: true). I tend to start off light and see if we can do something that solves the known requirements you and other had, by introducing new concept System Roles (in contrast to Roles that are applied local on each realm). RolesRoles are defined globally using System Roles (new)New section in dexie cloud manager. Everyone is a built-in System Role with default settings but possible to uncheck/check them. Supervisor is something that someone can add (dynamically possible to add system roles in case the rule set get extended) Everyone
Supervisor
User ManagerWhen managing users (via REST or in the manager app), system roles can be applied as an attribute on each user. The systemRoles attribute would also be a claim in the JWT. If going for something like a configured System Roles like this, would it solve your use case or is it a too simplistic approach? |
|
@dfahlander that looks really interesting indeed 🤔. I like it :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@dfahlander hear me out on this one:
I am building an application where it would be handy to be able to have claims added to the system.
Say you are the SuperVisor of all the things going on in the app, and want multiple Companies coupled to it.
Where they can have roles based on the realms, but should not be able to have a private or create their own realm.
if claims would be added to the system, and maybe even manageble from within manager.dexie.cloud.
You can give the email adres with the one that is SuperVisor say if used from cli:
npx dexie-cloud access-level your@email.com --claims '{"superVisor":true}'
Which gives the backend always the base of truth and gives on the frontend possibilities to have 1 application, with a check isSuperVisor for UX purposes, and that person(s) based on emails are the only ones who can do everything based on how rules are set.
Create realms, add companies to it, customers maybe even. And a company itself can login and see the realm that has been maded available by the SuperVisor.
Would be really nice if this would be possible. Or maybe you have a even better way or access to handle this :)
Or able to add custom claims to the user in manager.dexie.cloud like this:
{
"superVisor": true
}
All reactions