field-manual icon indicating copy to clipboard operation
field-manual copied to clipboard

Authorization Middleware Possibilities for OrbitDB

Open 509dave16 opened this issue 6 years ago • 4 comments

My idea is still a work in progress so bear with me. At this point from what I have seen, key signing per each peer is how granting access to store data works in OrbitDB. I am hoping to introduce a finer grained level of access. And to do that I was thinking that creating a middleware would be a good option. The idea is that metadata stores could exist to map doc, key/val, etc.. access to different users. With that middleware in place, attempts could be denied/granted based on the metadata store. This is a very rough idea and may not be feasible though with the middleware alone. I may need to also use a 3rd party service(like uPort or Auth0) to handle the storage of this kind of information.

Appreciate any thoughts or direction people in community might have on this topic. I know that work is being done on the Dynamic Access Controllers. But from my understanding that is access at a store level. I am hoping to make it possible to do it at a lower level.

509dave16 avatar Jul 06 '18 18:07 509dave16

The only syncing database that I know of that currently implements ACL is Realm: https://docs.realm.io/platform/using-synced-realms/access-control

Hoping to find a way to mirror how they achieve ACL.

509dave16 avatar Jul 07 '18 04:07 509dave16

@509dave16 some work about this is happening here https://github.com/orbitdb/ipfs-log/pull/128

fazo96 avatar Aug 07 '18 10:08 fazo96

@fazo96 Thanks for the tip! Appreciate it.

509dave16 avatar Aug 07 '18 15:08 509dave16

Moving to Field Manual for deeper discussion

aphelionz avatar Sep 27 '19 16:09 aphelionz