-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirestore.rules
More file actions
34 lines (29 loc) · 789 Bytes
/
firestore.rules
File metadata and controls
34 lines (29 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// Default-deny safety net
match /{document=**} {
allow read, write: if false;
}
// Allow participants to manage user profiles
match /users/{userId} {
allow read, write: if true;
}
// Allow participants to manage channels
match /channels/{channelId} {
allow read, write: if true;
}
// Allow participants to post and view messages
match /messages/{messageId} {
allow read, write: if true;
}
// Allow dynamic typing telemetry
match /typing/{statusId} {
allow read, write: if true;
}
// Diagnostics connectivity checks
match /test-connection-meta/{id} {
allow read, write: if true;
}
}
}