Anybody know if there’s a way to protect the Prisma client by specifying which operations to generate? For instance you don’t want to ever allow users to be deleted from a client that’s accessing Prisma?
m
marcus
01/18/2019, 8:55 AM
That’s currently not possible. What’s the reason you want to hide it?
p
philch
01/18/2019, 2:13 PM
The idea would be that from a security perspective you don’t want to expose all of your database operations to every client.
v
Viable
01/18/2019, 3:11 PM
I dont think you're supposed to expose prisma to any clients 🐼 only your backend
p
philch
01/18/2019, 4:37 PM
when I say client I mean AppServer or a lambda, not frontend
l
lancej
01/19/2019, 1:28 AM
The app server is under your control and should not be accessible to users other than through a well defined API. If they can hack your server and make those kind of changes then you got bigger issues on your hands