Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksCpJ-0003su-1X for pgsql-docs@arkaria.postgresql.org; Wed, 23 Dec 2020 22:41:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ksCpH-0001dt-Rc for pgsql-docs@arkaria.postgresql.org; Wed, 23 Dec 2020 22:41:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksCpH-0001dm-M1 for pgsql-docs@lists.postgresql.org; Wed, 23 Dec 2020 22:41:47 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksCpB-0007gW-6Z for pgsql-docs@lists.postgresql.org; Wed, 23 Dec 2020 22:41:46 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1ksCpA-0003Ur-2g; Wed, 23 Dec 2020 17:41:40 -0500 Date: Wed, 23 Dec 2020 17:41:40 -0500 From: Bruce Momjian To: steve.pousty@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Trusted versus untrusted Pl language Message-ID: <20201223224140.GA13055@momjian.us> References: <160875505390.674.9084620641912624635@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <160875505390.674.9084620641912624635@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Dec 23, 2020 at 08:24:13PM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/13/plpython.html > Description: > > Hey all: > This page & the PL/PERL page are the closest I have seen in the docs about > trusted versus untrusted languages. > > It would be great if we could add a subtopic and 1 or 2 paragraphs on this > page https://www.postgresql.org/docs/current/xplang.html Uh, what about this? https://www.postgresql.org/docs/13/xplang-install.html > Possibly outline: > A) Explain to users what trusted versus untrusted in terms of language > extensions. > 1) Differentiate that from non-risky versus risky > 2) Explain why, by default, functions written in untrusted languages > need to be added by superuser. > B) It would be great to give an example workflow of working with untrusted > languages > 1) Developer uses superuser on their own machine or makes the language > trusted > 2) Send function to the DBA > 3) Function goes through security review and testing > 4) If it passes then the DBA installs in a production DB > C) An example on how to make a language trusted in a db. Does that URL need more detail? -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee