Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtsVD-00EO2a-NL for pgsql-general@arkaria.postgresql.org; Fri, 20 Oct 2023 16:37:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qtsVB-004Kli-I0 for pgsql-general@arkaria.postgresql.org; Fri, 20 Oct 2023 16:37:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtsVB-004KlC-7A for pgsql-general@lists.postgresql.org; Fri, 20 Oct 2023 16:37:33 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtsV8-001kxH-2x for pgsql-general@lists.postgresql.org; Fri, 20 Oct 2023 16:37:33 +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 39KGbTrf3891975; Fri, 20 Oct 2023 12:37:29 -0400 From: Tom Lane To: Marcin Borkowski cc: pgsql-general@lists.postgresql.org Subject: Re: Is postgres_fdw "safe"? In-reply-to: <87zg0d1yu2.fsf@mbork.pl> References: <87zg0d1yu2.fsf@mbork.pl> Comments: In-reply-to Marcin Borkowski message dated "Fri, 20 Oct 2023 10:29:25 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3891973.1697819849.1@sss.pgh.pa.us> Date: Fri, 20 Oct 2023 12:37:29 -0400 Message-ID: <3891974.1697819849@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marcin Borkowski writes: > I noticed that the docs for postgres_fdw lack the clause about it being > "trusted". Does that mean that `create extension postgres_fdw` poses > any known security risks? If so, what should I do to minimize them? It's a definitional question I guess. We don't mark anything trusted if it can be used to cause outside-the-database effects; and in this case the ability to connect to other databases qualifies as that. regards, tom lane