rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /training/{allPaths=**} { allow write: if request.auth != null; allow read: if false; } match /models/{allPaths=**} { allow read: if true; } } }