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 1mvixi-0005gE-Rg for pgsql-admin@arkaria.postgresql.org; Fri, 10 Dec 2021 16:41:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mvixh-00061G-NZ for pgsql-admin@arkaria.postgresql.org; Fri, 10 Dec 2021 16:41:33 +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 1mvixh-000617-De for pgsql-admin@lists.postgresql.org; Fri, 10 Dec 2021 16:41:33 +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 1mvixf-0005u1-3A for pgsql-admin@lists.postgresql.org; Fri, 10 Dec 2021 16:41:33 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BAGfR9w3942964; Fri, 10 Dec 2021 11:41:27 -0500 From: Tom Lane To: Laurenz Albe cc: Frank Eckes , pgsql-admin@lists.postgresql.org Subject: Re: security issues In-reply-to: References: <5235c46a-508e-f084-c8bc-738a6e99fd44@online.de> Comments: In-reply-to Laurenz Albe message dated "Fri, 10 Dec 2021 17:20:19 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <70796.1639154487.1@sss.pgh.pa.us> Date: Fri, 10 Dec 2021 11:41:27 -0500 Message-ID: <70797.1639154487@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Fri, 2021-12-10 at 15:33 +0100, Frank Eckes wrote: >> And even worse, if i define a foreign server (e.g ORACLE) everybody can >> see the credentials in a user mapping > Then you use Oracle external authentication, for example with a > secure key store on the PostgreSQL server. Then you don't need a > password. That's one way, but AFAIK the above claim is nonsense. You can only see the connection options for user mappings that belong to you (unless you're a superuser). regards, tom lane