Skip to content

Commit

Permalink
DOCSP-35902 Security considerations for RBAC
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseymoore committed Jan 29, 2024
1 parent b2517b9 commit e2819dd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/rules/filters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,16 @@ from the App Services UI or by deploying configuration files with Realm CLI:
.. code-block:: bash

{+cli-bin+} push --remote="<Your App ID>"

.. note:: Security Consideration for App Services Filters

While :ref:`Role-based Permissions <roles>` and Filters can hide specific
documents and fields within a collection there is a potential that
data can be exposed if the system allows arbitrary
queries to access the collection. For example, queries or functions that
raise errors depending on the values stored in a collection (such
as division-by-zero errors) may reveal information about documents, even if
a role or filter prevents the querying user from viewing
documents directly. Users may also make inferences about the underlying data
in other ways (such as by measuring query execution time, which can be affected
by the data's distribution).
13 changes: 13 additions & 0 deletions source/rules/roles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -511,3 +511,16 @@ deploying configuration files with {+cli+}:
.. code-block:: bash

{+cli-bin+} push

.. note:: Security Consideration for App Services Role-based Permissions

While Role-based Permissions and :ref:`Filters <filters>` can hide specific
documents and fields within a collection there is a potential that
data can be exposed if the system allows arbitrary
queries to access the collection. For example, queries or functions that
raise errors depending on the values stored in a collection (such
as division-by-zero errors) may reveal information about documents, even if
a role or filter prevents the querying user from viewing
documents directly. Users may also make inferences about the underlying data
in other ways (such as by measuring query execution time, which can be affected
by the data's distribution).

0 comments on commit e2819dd

Please sign in to comment.