From 5e672df168ea583160225754667fa06fc76f2fc3 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 9 Jan 2023 08:25:07 -0800 Subject: [PATCH] Explicitly explain allow_sql: false --- docs/authentication.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/authentication.rst b/docs/authentication.rst index 2342a8c8..d64eb793 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -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` to execute SQL for all databases in your instance, use the following: .. code-block:: json