zenstack
zenstack copied to clipboard
Typescript toolkit on top of Prisma ORM, offering flexible and declarative Access Control Policy(Authorization/Permission) for RBAC/ABAC/PBAC/ReBAC with auto-generated type-safe APIs and frontend hook...
According to: https://www.prisma.io/docs/orm/prisma-client/client-extensions/result It is possible to make computed fields based on others. My suggestion is maybe to be able to add/mark to the schema its typing so later on...
**Description and expected behavior** A clear and concise description of what the bug is and what's the expected behavior. Twice, I've run into scenarios where I had an error in...
the commend `zenstack generate --schema zmodel/schema.zmodel` is good when i run it on my windows machine, but was failed when build Dockerfile this is the whole file of my Dockerfile...
**Is your feature request related to a problem? Please describe.** It would be really neat if we could use string interpolation in policies as we have some kind of problem...
**Is your feature request related to a problem? Please describe.** You can define `@unique() @default(autoincrement())` on a field, but you cannot autoincrement with a constraint like `tenantId` or `organizationId`. *...
Resolves #982 This PR is an initial attempt to add a `list` permission. Putting here for visibility. @ymc9 If you have some time, could you offer some guidance on the...
Creating a FR as per this comment, https://github.com/zenstackhq/zenstack/issues/785#issuecomment-2099482332 Some addon comments, there is support for supabase which has a client side api and can be used without any backend code,...
Currently, when defining permissions in ZModel, it is challenging to encapsulate and reuse permission conditions. For example, repeating complex permission conditions like `auth().memberships?[permissions?[resource == currentModel() && action == currentOperation()]]` across...
**Description and expected behavior** See discord thread here: https://discord.com/channels/1035538056146595961/1315031502593196162 When using typed JSON arrays and running zenstack generate errors are produced with the trpc plugin enabled. Disabling the plugin generates...
**Description and expected behavior** This fails ``` @@deny('update', ( !auth().isPlatformAdmin && future().isPlatformAdmin )) ``` It fails with a very unhelpful error message: ``` ✖ Generating PrismaClient enhancer Prisma Enhancer: Unsupported...