From the course: React: Cloud-Powered Apps with Firebase

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Deploying security rules for Cloud Firestore

Deploying security rules for Cloud Firestore

From the course: React: Cloud-Powered Apps with Firebase

Start my 1-month free trial

Deploying security rules for Cloud Firestore

- [Instructor] In the Firebase console for Cloud Firestore, you can go ahead and click on the rules tab to view the currently associated security rules. This tells us that the following rules in this block will be for the Cloud Firestore service. And match/databases/database/documents is actually the root of your database. The second match here tells it to match any document. So in totality, this is saying for any document in my database, allow read and write a false, which obviously means never. You can always change the security rules in the Firebase console. But we will actually be using the Firebase CLI to deploy security rules. It has the advantage, since any changes in rules can be tracked via Git. We have already installed the Firebase CLI, if you haven't, go ahead and install it now. And you can do that with npm install dash g Firebase tools. Make sure to sign in and test your Firebase CLI using Firebase login.…

Contents