# Firebase Security Rules

Use our flexible, extensible Firebase Security Rules to secure your data in Cloud Firestore, Firebase Realtime Database, and Cloud Storage.

## Docs

- [Firebase Security Rules](https://firebase.google.com/docs/rules.md.txt): Use our flexible, extensible Firebase Security Rules to secure your data in Cloud Firestore, Firebase Realtime Database, and Cloud Storage.
- [Basic Security Rules](https://firebase.google.com/docs/rules/basics.md.txt): A guide to basic Firebase Security Rules, covering default configurations, development rules, and production-ready rules for content-owner, public, and private access.
- [Manage and deploy Firebase Security Rules](https://firebase.google.com/docs/rules/manage-deploy.md.txt): A guide to managing and deploying Firebase Security Rules, covering the use of the Firebase CLI, Firebase console, Admin SDK, and REST API.
- [Data validation](https://firebase.google.com/docs/rules/data-validation.md.txt): A guide to data validation with Firebase Security Rules, covering how to restrict new data and use existing data to enforce data integrity in your database or storage.
- [Generate test reports](https://firebase.google.com/docs/rules/emulator-reports.md.txt): A guide to generating test reports for Firebase Security Rules with the emulators, including how to access reports and use them for debugging.
- [Set up the Local Emulator Suite](https://firebase.google.com/docs/rules/emulator-setup.md.txt): A guide to setting up the Firebase Local Emulator Suite for testing Security Rules, including installation and test configuration.
- [Get started with Firebase Security Rules](https://firebase.google.com/docs/rules/get-started.md.txt): A guide to getting started with Firebase Security Rules, covering the essential steps from understanding the language to deploying your first set of rules.
- [Avoid insecure rules](https://firebase.google.com/docs/rules/insecure-rules.md.txt): A guide to avoiding common vulnerabilities in Firebase Security Rules, with examples of insecure configurations and how to fix them.
- [Security Rules and Firebase Authentication](https://firebase.google.com/docs/rules/rules-and-auth.md.txt): A guide to using Firebase Authentication with Firebase Security Rules, covering how to identify users, leverage user information, and define custom claims for access control.
- [How Security Rules work](https://firebase.google.com/docs/rules/rules-behavior.md.txt): A guide to understanding the behavior of Firebase Security Rules, explaining how rules are evaluated and applied to incoming requests for Cloud Firestore, Realtime Database, and Cloud Storage.
- [Security Rules language](https://firebase.google.com/docs/rules/rules-language.md.txt): A guide to the Firebase Security Rules language, covering the syntax, structure, and constructs for writing rules for Cloud Firestore, Realtime Database, and Cloud Storage.
- [Quickly validate Firebase Security Rules](https://firebase.google.com/docs/rules/simulator.md.txt): A guide to using the Rules Playground in the Firebase console to quickly validate your Firebase Security Rules with simulated requests.
- [Build unit tests](https://firebase.google.com/docs/rules/unit-tests.md.txt): A guide to building unit tests for Firebase Security Rules with the Firebase Emulator Suite, covering setup, local testing, and SDK methods for both v9 and v8 JavaScript SDKs.
- [Cloud Audit Logs for Security Rules](https://firebase.google.com/docs/rules/cloud-audit-logs.md.txt): A guide to Cloud Audit Logs for Firebase Security Rules, detailing audited API methods, required IAM permissions, and step-by-step instructions to view logs.
