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

Adding hierarchy and authorization #132

Closed
11 tasks done
joepio opened this issue May 3, 2021 · 2 comments
Closed
11 tasks done

Adding hierarchy and authorization #132

joepio opened this issue May 3, 2021 · 2 comments
Labels
security server atomic-server

Comments

@joepio
Copy link
Member

joepio commented May 3, 2021

Atomic Data needs a bit of Hierarchy.

@joepio joepio changed the title Adding hierarchy Adding hierarchy and authorization May 3, 2021
joepio added a commit that referenced this issue May 4, 2021
@joepio
Copy link
Member Author

joepio commented May 5, 2021

How to implement the rights check feature? For any given resource, I'd like a fast and clean implementation of checking whether a specific Agent has write or read access to the resource. How to do this? Where to add this?

  • Since it will recursively check for parent properties, how do we prevent loops?

check_rights(agent, store) -> read: bool, write: bool function on Resource

  • Might save a single DB request, because we already have one resource

check_rights(subject, agent) -> read: bool, write: bool function on store

joepio added a commit that referenced this issue May 6, 2021
joepio added a commit that referenced this issue May 6, 2021
@joepio
Copy link
Member Author

joepio commented May 20, 2021

Checking the children of a resource requires performing a TPF query, which means it could get real expensive with the current implementation. Will soon have to work on indexes / caching #14

joepio added a commit that referenced this issue Jun 9, 2021
joepio added a commit that referenced this issue Jun 9, 2021
joepio added a commit that referenced this issue Jun 9, 2021
joepio added a commit that referenced this issue Jun 9, 2021
joepio added a commit that referenced this issue Jun 9, 2021
joepio added a commit that referenced this issue Jun 9, 2021
@joepio joepio added security server atomic-server labels Sep 16, 2021
@joepio joepio added this to the v0.28 milestone Oct 25, 2021
@joepio joepio closed this as completed Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security server atomic-server
Projects
None yet
Development

No branches or pull requests

1 participant