Firebase Security Rules provide access control and data validation
in a simple yet expressive language. They are used to secure products
such as Cloud Storage and Cloud Firestore.
This documentation is divided into two sections:
Interfaces - data types common to all
products that use Security Rules.
Namespaces - data types and functions
that are product or context specific.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-06-04 UTC."],[],[],null,["rules \nnamespace\n\nFirebase Security Rules provide access control and data validation\nin a simple yet expressive language. They are used to secure products\nsuch as Cloud Storage and Cloud Firestore.\n\nThis documentation is divided into two sections:\n\n- [**Interfaces**](#interfaces) - data types common to all products that use Security Rules.\n- [**Namespaces**](#namespaces) - data types and functions that are product or context specific.\n\nInterfaces\n\n[Boolean](/docs/reference/rules/rules.Boolean)\n\nPrimitive type representing a boolean value, `true` or\n`false`.\n\n[Bytes](/docs/reference/rules/rules.Bytes)\n\nType representing a sequence of bytes.\n\n[Duration](/docs/reference/rules/rules.Duration)\n\nTime duration with nanosecond accuracy.\n\n[Float](/docs/reference/rules/rules.Float)\n\nPrimitive type representing a 64-bit IEEE floating point number.\n\n[Integer](/docs/reference/rules/rules.Integer)\n\nPrimitive data type representing a signed 64-bit integer value.\n\n[LatLng](/docs/reference/rules/rules.LatLng)\n\nLatitude and longitude geopoint.\n\n[List](/docs/reference/rules/rules.List)\n\nHeterogeneous list of items.\n\n[Map](/docs/reference/rules/rules.Map)\n\nKey-value mapping.\n\n[MapDiff](/docs/reference/rules/rules.MapDiff)\n\nObject representing the difference between [rules.Map](/docs/reference/rules/rules.Map)\nobjects.\n\n[Number](/docs/reference/rules/rules.Number)\n\nA value of type `Integer` or type `Float`.\n\n[Path](/docs/reference/rules/rules.Path)\n\nDirectory-like pattern for the location of a resource.\n\n[Set](/docs/reference/rules/rules.Set)\n\nUnordered, heterogeneous list of unique items.\n\n[String](/docs/reference/rules/rules.String)\n\nPrimitive type representing a string value.\n\n[Timestamp](/docs/reference/rules/rules.Timestamp)\n\nTimestamp in UTC with nanosecond accuracy.\n\nNamespaces\n\n[debug](/docs/reference/rules/rules.debug)\n\nSecurity Rules language debug statement\n\n[duration](/docs/reference/rules/rules.duration_)\n\nGlobally available duration functions.\n\n[firestore](/docs/reference/rules/rules.firestore)\n\nVariables and functions available in Cloud Firestore rules.\n\n[hashing](/docs/reference/rules/rules.hashing)\n\nGlobally available hashing functions.\n\n[latlng](/docs/reference/rules/rules.latlng_)\n\nGlobally available latitude-longitude functions.\n\n[math](/docs/reference/rules/rules.math)\n\nGlobally available mathematical functions.\n\n[timestamp](/docs/reference/rules/rules.timestamp_)\n\nGlobally available timestamp functions."]]