Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guU47-00070O-B4 for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 03:21:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1guU44-0006BB-Ds for pgsql-general@arkaria.postgresql.org; Fri, 15 Feb 2019 03:21:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guU44-0006B4-5Y for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 03:21:24 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guU3x-0002jf-3Z for pgsql-general@lists.postgresql.org; Fri, 15 Feb 2019 03:21:23 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1guU3v-0005B3-AK; Thu, 14 Feb 2019 22:21:15 -0500 Date: Thu, 14 Feb 2019 22:21:15 -0500 From: Bruce Momjian To: Paul Jungwirth Cc: pgsql-general@lists.postgresql.org Subject: Re: Shared hosting with FDW on AWS RDS Message-ID: <20190215032115.GA14824@momjian.us> References: <4776368.YtMxgcCULL@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Feb 10, 2019 at 03:19:48PM -0800, Paul Jungwirth wrote: > On 2/10/19 2:57 PM, auxsvr wrote: > >We'd like to configure an RDS server for shared hosting. The idea is that every customer will be using a different database and FDW will be configured, so that the remote tables have access to the full data > > I've set up something like this before (but on EC2), and the only problem I > couldn't solve was that any user can see your full customer list by typing > `\l` or `\du`. They can't see other customers' stuff, but they can see how > many customers you have and their database/login names. The only way around > it I know is that run separate "clusters" aka RDS instances. > > You can try to lock this down somewhat by revoking access to various system > tables, but it starts breaking a lot of tools (e.g. some GUI tools don't > know what to do if they get an error just listing the databases). Also it is > so piecemeal I wouldn't trust that I'd blocked off all avenues of getting > the information. > > I'd love to be corrected on this btw if anyone has better information! :-) Heroku had that issue and used hash values for the user and database names. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +