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 1gsyOL-0006vm-25 for pgsql-general@arkaria.postgresql.org; Sun, 10 Feb 2019 23:20:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gsyOJ-0004LJ-Mi for pgsql-general@arkaria.postgresql.org; Sun, 10 Feb 2019 23:20:03 +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 1gsyOJ-0004LC-Ao for pgsql-general@lists.postgresql.org; Sun, 10 Feb 2019 23:20:03 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsyOG-0001vq-QV for pgsql-general@lists.postgresql.org; Sun, 10 Feb 2019 23:20:02 +0000 Received: by mail-pg1-x52e.google.com with SMTP id d9so4126849pgl.1 for ; Sun, 10 Feb 2019 15:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illuminatedcomputing-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=NrwW8kGOh/lDilub4C3xyLkp7tKi4R39vs+XnrNku9I=; b=uwhKI7uqyxV+Ac3akd8AmRSuKfJrHYwzHuGeNwZANAPFzEq2CY6ykbWz9KSQ3+IRJC YwPsdpcV4HQn9sixS1ococW7zPKa6u23ZqtZKYKYp7ys7hex3lqYWmf6cqP1bKmzfZza ZK6FIjYTzDRwXYqBoV0ZR0xwDqQ6GkUbAEJbxa8GUbm1GXQOnfqOlmQdxwpPhmSWLFpp 5zpXarQo38Wl0CBPiIQU/dTFDkjSaFkdPGV+f1IUj0VL26eJH8Usuro4EX+6oSUFvDFm jW4mI2E2RNTTlAIBIObrJo9HYL9PAunP64tsquHQCyr2GurKaqrlLCQIIlYQNHqd5ydM 4jhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NrwW8kGOh/lDilub4C3xyLkp7tKi4R39vs+XnrNku9I=; b=VL0e7CpZM8j0h2YYjyrrriXwu+RWFxV1CcN3zHS0ePproiBE9tqfM9hDDm5ClwpU1D oK9UKD9zrjS2vytku8p5jIHZIGNZnSoeU93sUAboTtgRqORsDTvhI5ScW6UKRtt5VY22 6GycRRBfNpiNXC6rpCaa/23sSl3Etwry1Xpkpz/fTHC2FRifJLz6Giqh5VFn6ml+Tkqk v5fqELkwCjRobn0vYs21+4FAX91kczOJvn5+N2R80ndq3leeeA2U0+TYb/FgIb5n3fjj fF+tYE5AvHn05hAgDKxBCF3T7oI9hLbk2lTeJE4hX7BO94uVAWo0dfAU0o3x04EBsjVZ pRIg== X-Gm-Message-State: AHQUAubcWulEPYQ0kerVav77qKm4CRU3Xw28+Y4S5AXVgL/Nqdh27s4o 7snEk8H6JQ6ECeMN4Z6wQ8zq0Z7HUeA= X-Google-Smtp-Source: AHgI3IbX0XTtu/703UhcLRPRt9wvNdMOXQFYaxP+8xfyCWK4uEf/jFTi/dRIOoNgJJnbrKjcJv7ZoA== X-Received: by 2002:a63:571f:: with SMTP id l31mr27693394pgb.91.1549840797779; Sun, 10 Feb 2019 15:19:57 -0800 (PST) Received: from [192.168.2.201] (static-50-53-109-254.bvtn.or.frontiernet.net. [50.53.109.254]) by smtp.googlemail.com with ESMTPSA id u123sm11235892pfb.1.2019.02.10.15.19.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 15:19:56 -0800 (PST) Subject: Re: Shared hosting with FDW on AWS RDS To: pgsql-general@lists.postgresql.org References: <4776368.YtMxgcCULL@localhost.localdomain> From: Paul Jungwirth Message-ID: Date: Sun, 10 Feb 2019 15:19:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <4776368.YtMxgcCULL@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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! :-) -- Paul ~{:-) pj@illuminatedcomputing.com