New to cerbos, How to check for permissions when l...
# help
n
New to cerbos, How to check for permissions when listing resources?
d
Hey, 1. Use the query planner API to produce your policies’ abstract syntax tree (AST) for the particular principal and the desired action. 2. Use an existing adapter or create a new one to convert an AST to SQL. 3. Check the tutorial for Prisma/SQLAlchemy ORMs examples.
n
what if I am using dynamodb?
d
Unfortunately, we don’t have an adapter for dynamodb. I believe the closest one is an adapter for Mongoose (mongodb ORM): https://github.com/cerbos/query-plan-adapters/tree/main/mongoose.
n
is it possible to build aws like IAM where we can allow users to create policies.
d
The Admin API has an endpoint for adding/updating policies so your application can achieve that for your users. This endpoint requires a mutable storage driver (a database).
n
so we can have each customer IAM like aws with this? will be able to create tenant accounts?
d
Yes, to both questions. The scoped policies are typically used in the multi-tenant scenario. You can book a free workshop to get help with modelling your application requirements.
n
awesome, registered for free workship
🙌 1