Skip to content

Commit

Permalink
Disabling all access to Firebase storage; all data now routes through…
Browse files Browse the repository at this point in the history
… the admin SDK via API endpoints
  • Loading branch information
andymatuschak committed Apr 18, 2024
1 parent 7d368c8 commit 889fc74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/storage.rules
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /attachments/{id} {
allow get;
allow create: if request.auth != null && request.resource.contentType != null && request.resource.size < 10 * 1024 * 1024 && resource == null;
match /{allPaths=**} {
// All access through admin SDK via APIs
allow read, write: if false;
}
}
}

0 comments on commit 889fc74

Please sign in to comment.