casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.4k stars 464 forks source link

DynamoDB adapter or any other serverless DB adapter wanted for jCasbin #62

Closed alikhan866 closed 4 years ago

alikhan866 commented 4 years ago

I'm using Casbin on the backend which uses java.. so i need to store my policies in a Serverless DB so that i dont have to worry about scalability/maintainence using Casbin DB adapter

hsluoyz commented 4 years ago

@alikhan866 can you develop one?

alikhan866 commented 4 years ago

@hsluoyz I don't think i can .. else i would have implemented it and created a PR ... would really appreciate any alternative suggestions on how to use a serverless DB in my java backend to store and retrieve policies using Casbin if there are any :)

hsluoyz commented 4 years ago

Can anyone do this? @nodece

nodece commented 4 years ago

Sorry, I don't have serverless DB experience.

alikhan866 commented 4 years ago

@hsluoyz Is anyone working on this ? If yes can you please give me an ETA so i can proceed with my project accordingly :)

hsluoyz commented 4 years ago

I think this work is simple. We already have Golang's DynamoDB adapter: https://github.com/HOOQTV/dynacasbin and Java's other adapters like:

https://github.com/jcasbin/jdbc-adapter https://github.com/fanlide/jcasbin-extra

Mixing them together will ease the development of the Java's DynamoDB adapter.

kingiw commented 4 years ago

Maybe I can have a try on that.

nodece commented 4 years ago

@hsluoyz Could your create a DynamoDB adapter repository for @kingiw ?

hsluoyz commented 4 years ago

@nodece created: https://github.com/jcasbin/dynamodb-adapter

hsluoyz commented 4 years ago

@kingiw the adapter is already available in Maven: https://mvnrepository.com/artifact/org.casbin/dynamodb-adapter

Can you update the README's badges and install command (https://github.com/jcasbin/dynamodb-adapter)? See jCasbin as an example: https://github.com/casbin/jcasbin

image

image

kingiw commented 4 years ago

@hsluoyz See the latest https://github.com/jcasbin/dynamodb-adapter/pull/4.

hsluoyz commented 4 years ago

@alikhan866 it's finished: https://github.com/jcasbin/dynamodb-adapter