We're creating a multi-tenant application in azure that must segregate data between users/tenants.
Each tenant will upload/save various documents (mostly excel and csv files) and then have the ability to use/retrieve these in the application as input files for a range of calculations..
I imagine a structure like this:
+ users/
|-+ {uid}/
| | — profile_picture.jpg
| |-+ input_data/
| | | — {input_data_id}.xlsx
In Cloud Storage using Firebase security rules we can protect who can perform what operations on objects stored in different paths with a rule like the following.
rules_version = "2";
service firebase.storage {
match /b/{bucket}/o {
match /users/{userId}/input_data/{input_data_id} {
allow get: if request.auth.uid == userId ||
allow list, write: if request.auth.uid == userId;
}
}
}
Is there an equivalent resource in azure that can do something like firestore;
- Match on rules
- Write objects based on UID.
- List objects based on UID.
- Allow objects to be downloaded based on UID.
I found a question/answer back in 2015 with a similar problem and was wondering weather the answer is still relevant or if there is now a better option
Most effective way to manage multiple tenant storage in Azure?