> For the complete documentation index, see [llms.txt](https://edentech.gitbook.io/glover/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edentech.gitbook.io/glover/firebase/firebase-security.md).

# Firebase Security

Starting from version 1.2.3, security rule of your **firestore database** must be moved to a product ready rules. Follow the guide below how want you need to do:

* Go to firebase console, select the project from your list of projects.
* Click on **Firestore database**
* On the **firestore database** page, select **rules** at the top section/part of the page.
* Now on the rules tab, copy and paste the code below

```javascript
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      //this allow anyone to read/write to your database
      //this make sure only authenticated user can load data from your database
      allow read, write: if request.auth != null;
    }
  }
}
```

* After pasting the rules above, click on **Publish.** Then you are good to go


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edentech.gitbook.io/glover/firebase/firebase-security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
