rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } match /firestore-bundle-tests/{document=**} { allow read, write: if true; } match /firestore/{document=**} { allow read, write: if true; } match /{path=**}/collectionGroup/{documentId} { allow read, write: if true; } match /second-database/{document=**} { // separate rules are not supported so we need to use the same rules for both databases to prove it is querying different databases allow read, write: if database == "second-rnfb"; } } }