Explicitly explain allow_sql: false

This commit is contained in:
Simon Willison 2023-01-09 08:25:07 -08:00
commit 5e672df168

View file

@ -321,6 +321,14 @@ The easiest way to disable arbitrary SQL queries is using the :ref:`default_allo
You can alternatively use an ``"allow_sql"`` block to control who is allowed to execute arbitrary SQL queries.
To prevent any user from executing arbitrary SQL queries, use this:
.. code-block:: json
{
"allow_sql": false
}
To enable just the :ref:`root user<authentication_root>` to execute SQL for all databases in your instance, use the following:
.. code-block:: json