rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read; allow write: if request.auth != null && request.resource.size < 10 * 1024 * 1024; } } }