Skip to content

Instantly share code, notes, and snippets.

@cvan
Last active June 22, 2024 07:04
Show Gist options
  • Select an option

  • Save cvan/86be43d51930ecabaaa6395450ee7617 to your computer and use it in GitHub Desktop.

Select an option

Save cvan/86be43d51930ecabaaa6395450ee7617 to your computer and use it in GitHub Desktop.
Firebase security rules for Test Mode and Production Mode (defaults) for https://console.firebase.google.com
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if
request.time < timestamp.date(2020, 4, 25);
}
}
}
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if
request.time < timestamp.date(2020, 4, 25);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment