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 1jotNz-0003dI-10 for pgsql-general@arkaria.postgresql.org; Fri, 26 Jun 2020 18:47:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jotNw-0003qn-PC for pgsql-general@arkaria.postgresql.org; Fri, 26 Jun 2020 18:47:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jotNw-0003qg-HN for pgsql-general@lists.postgresql.org; Fri, 26 Jun 2020 18:47:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jotNp-0002Wa-4k for pgsql-general@lists.postgresql.org; Fri, 26 Jun 2020 18:47:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05QIlPBx024571; Fri, 26 Jun 2020 14:47:25 -0400 From: Tom Lane To: "Brad Nicholson" cc: pgsql-general@lists.postgresql.org Subject: Re: PG13 Trusted Extension usability issue In-reply-to: References: Comments: In-reply-to "Brad Nicholson" message dated "Fri, 26 Jun 2020 14:24:44 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24569.1593197245.1@sss.pgh.pa.us> Date: Fri, 26 Jun 2020 14:47:25 -0400 Message-ID: <24570.1593197245@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Brad Nicholson" writes: > First, as a long time user of the pgextwlist extension, I'm happy to see > this functionality appearing in core. However, as a long term user of that > extension, I can say that ability to create an extension as a non-super > user is pretty limited in itself in a lot of cases. Many extensions both > in contrib and external ones (like PostGIS for example) don't give > appropriate permissions to actually use the extension. > Taking postgresql_fdw as an example. I'm confused about your point here. postgresql_fdw has intentionally *not* been marked trusted. That's partly because it doesn't seem like outside-the-database access is something we want to allow by default, but it's also the case that there are inside-the-database permissions issues. So no, we have not solved those, but that is not a shortcoming of the trusted-extensions feature AFAICS. It is not the intent of that feature that you can randomly mark unsafe extensions as trusted and have every one of their permissions safety-checks vanish. regards, tom lane