🔥 Security

Security considerations with data modeling

file_type_firebase rules.json
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if false;
    }
    
    match /accounts/{id} {
      allow read, write: if false;
    }

    match /users/{id} {
      allow read, write: if id == request.auth.uid;
    }

    match /profiles/{id} {
      allow read;
      allow write: if id == request.auth.uid;
    }

  }
}
    

Questions? Let's chat

Open Discord