Hey guys, a few weeks ago I attempted to get a thread going on reaching a decision on how to do multi-tenant with Appwrite.
As I reflect on this my self, I lean more and more toward Hasura, because it has a concept of "default values applied during insert, update". This means, a user can not specify persmissions, which I am strongly in favour of.
Here's why.
Let's say I am the boss of the company, and I create a team, and we have document level security. Collection permissions don't work anyway, because we have multiple teams storing world-famous TODO items, and a team should only see their own.
So, when a user creates a document, I don't want my team setting permissions that might lead to items being shared with others outside of the team. My current understanding of "the creator/owner of the document" can set permissions, just goes against all the security principles I need. Have I misunderstood this?
An alternative which I don't think would be unreasonable, but again, with Hasura needs no additional effort, is to have functions that can set the document permissions based on the creator's team membership, and this would only need to be done for CREATE and UPDATE. In such a function(s) we would just assign the document permission as the person's team. This seems acceptable to me.
Very keen to get insights from Appwriters that have jumped through these hoops.
Thanks all for taking time to read!
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...