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

[Epic] Roles, Permissions and Grants #31

Closed
1 task done
nelsonic opened this issue Feb 28, 2019 · 7 comments
Closed
1 task done

[Epic] Roles, Permissions and Grants #31

nelsonic opened this issue Feb 28, 2019 · 7 comments
Assignees
Labels
enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. priority-1 Highest priority issue. This is costing us money every minute that passes. technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented Feb 28, 2019

On Monday we drew out the basic auth schema (including Roles, Permissions and User_Roles) on the witeboard in the Office together:

auth-schema-whiteboard-diagram

This issue/epic is our attempt to capture as much detail as we can so we can implement it.

If you are interested in this challenge, please read: wikipedia.org/wiki/Role-based_access_control

More detail on the roles schema in #27 (comment)
I will be adding it to here shortly

# Todo

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Feb 28, 2019
@nelsonic nelsonic mentioned this issue Feb 28, 2019
15 tasks
@nelsonic nelsonic self-assigned this Mar 2, 2019
@nelsonic nelsonic added the priority-2 Second highest priority, should be worked on as soon as the Priority-1 issues are finished label Jul 13, 2020
@nelsonic nelsonic added priority-1 Highest priority issue. This is costing us money every minute that passes. and removed priority-2 Second highest priority, should be worked on as soon as the Priority-1 issues are finished labels Jul 14, 2020
@nelsonic
Copy link
Member Author

We don't need Roles, Permissions and Grants to manage access to content in the dwyl App for "single player mode", but it becomes immediately relevant once someone wants to share an item with anyone else. Do they want the other person to have read-only access, edit or co-own the item? This are all questions that can be answered/solved by an RBAC system.

My plan for today is to do a "deep dive" into RBAC from first principals and make notes on everything so that anyone else can understand what is going on with the system. I will then build a reusable RBAC system that can be use for both the dwyl App and the @home security (access control) system: dwyl/smart-home-auth-server#1

I don't expect my research/writeup phase to last more than a few hours, but I don't want to treat this superficially because it's a foundational concept that everyone needs crystal clarity on. My intention is to write up an authoritative but still accessible (beginner-friendly) writeup similar to https://github.com/dwyl/learn-json-web-tokens

@th0mas
Copy link
Collaborator

th0mas commented Jul 15, 2020

@nelsonic Do you have an ETA on this?

@nelsonic
Copy link
Member Author

Hi @th0mas, I got sidetracked researching how we can control the 20 doors without needing 20 RPi0s and 20 POE converters. 🔍 dwyl/smart-home-security-system#14 (comment)
Need to fix the failing Auth tests: #83 (comment)
Then will be able to create the roles endpoint and add them to JWT quite quickly. 👍

@nelsonic
Copy link
Member Author

ERD before RBAC:

image

@nelsonic
Copy link
Member Author

nelsonic commented Jul 24, 2020

Auth ERD with Roles and Permissions:
auth-erd-with-roles-permissions

@nelsonic
Copy link
Member Author

nelsonic commented Aug 18, 2020

Just the RBAC ERD:
dwyl-auth-rbac-erd

@nelsonic
Copy link
Member Author

Roles deployed to https://dwylauth.herokuapp.com/roles
RBAC for controlling access in apps: https://github.com/dwyl/rbac

Background/docs captured: https://github.com/dwyl/auth/blob/master/role-based-access-control.md

Closing. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. priority-1 Highest priority issue. This is costing us money every minute that passes. technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

2 participants