Skip to content
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

Refactor Authorization #2456

Open
Tracked by #2494 ...
dborovcanin opened this issue Oct 8, 2024 · 0 comments · May be fixed by #2494
Open
Tracked by #2494 ...

Refactor Authorization #2456

dborovcanin opened this issue Oct 8, 2024 · 0 comments · May be fixed by #2494
Assignees

Comments

@dborovcanin
Copy link
Collaborator

dborovcanin commented Oct 8, 2024

Is your feature request related to a problem? Please describe.

  1. In Magistrala , uses Google's Zanzibar open source implementation SpiceDB for Authorization.
    In SpiceDB , requires to define Authorization scheme. For Magistrala SpiceDB Authorization schema is defined at docker/spicedb/schema.zed
    The core service will check for requested users Authorization with SpiceDB based on permission defined the Authorization.
    At present these permissions are hardcode, So if SpiceDB schema changes , then we need to change the permission in respective service

  2. Magistrala's SpiceDB schema has fixed roles, these roles have fixed operation.

  3. There is no provision to share entities to users of other domains

Describe the feature you are requesting, as well as the possible use case(s) for it.

Hardcode of permission should be removed from core services and Permissions should be dynamically initialized during service startup

Provision to create custom roles for each entity with allowed set of operations to roles. and provision to add members to these custom roles

Provision to share entity with other users in domain

  1. Organization Entity which should hold multiple Domains (Workspace).
  2. Organization Entity should have Teams, which contains set of users of the organization
  3. Organization's Teams should own the Domain (workspace)
  4. To Workspace , external organization team can be invited

Indicate the importance of this feature to you.

Must-have

Anything else?

No response

@dborovcanin dborovcanin converted this from a draft issue Oct 8, 2024
@arvindh123 arvindh123 changed the title Refactor auth Refactor Authorization Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚧 In Progress
Development

Successfully merging a pull request may close this issue.

2 participants