-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstorage.rules
More file actions
34 lines (29 loc) · 939 Bytes
/
Copy pathstorage.rules
File metadata and controls
34 lines (29 loc) · 939 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 firebase.storage {
match /b/{bucket}/o {
// Authenticated users can write to their own intake prefix only.
// Reads are denied — all serving goes through the admin SDK or the
// seriph-fonts public CDN bucket (a separate bucket not governed here).
match /intake/{uid}/{batchId}/{rest=**} {
allow write: if request.auth != null && request.auth.uid == uid;
allow read: if false;
}
// Server-side processing paths: admin-only via SDK; no client access.
match /unprocessed_fonts/{rest=**} {
allow read, write: if false;
}
match /processed_fonts/{rest=**} {
allow read, write: if false;
}
match /failed_processing/{rest=**} {
allow read, write: if false;
}
match /_batch/{rest=**} {
allow read, write: if false;
}
// Default: deny all.
match /{allPaths=**} {
allow read, write: if false;
}
}
}