-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathstorage.rules
More file actions
26 lines (22 loc) · 850 Bytes
/
storage.rules
File metadata and controls
26 lines (22 loc) · 850 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
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
// Public videos - read-only access for website content
match /videos/public/{allPaths=**} {
allow read: if true; // Allow public read access for videos
allow write: if false; // Completely prevent public uploads
}
// Private/internal videos - no public access
match /videos/internal/{allPaths=**} {
allow read, write: if false; // Completely restricted - admin only
}
// Admin uploads path - restricted to authenticated admin users only
match /admin/{allPaths=**} {
allow read, write: if false; // Completely restricted for security
}
// Deny all other paths by default - security first approach
match /{allPaths=**} {
allow read, write: if false; // Default deny all access
}
}
}