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 1gsy2b-0005sD-R8 for pgsql-general@arkaria.postgresql.org; Sun, 10 Feb 2019 22:57:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gsy2Z-00009o-5G for pgsql-general@arkaria.postgresql.org; Sun, 10 Feb 2019 22:57:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsy2Y-00009h-OL for pgsql-general@lists.postgresql.org; Sun, 10 Feb 2019 22:57:34 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsy2S-0007Xa-0o for pgsql-general@lists.postgresql.org; Sun, 10 Feb 2019 22:57:33 +0000 Received: by mail-wm1-x341.google.com with SMTP id v26so13435294wmh.3 for ; Sun, 10 Feb 2019 14:57:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BVVcaNfIbAIFNLZk3aGQsbZ2biak0V8wSj22QQvK7Mw=; b=kkfzcktFuC7EgdseEU96iBkqLCNnfPsz43i+gNeWcp6glRAfLbK+yTZCOlHYHy8tCY LzpyznN3eJgK3fuJ3KJa6c7+h50cmy4vj8qEIA2WnZghznHHW7TlRruQ63NoIgXD4Vb6 6L6CyDuxIYdTaN/pjWwpOppvr75IsNjR1pKAzjNw0F3oYD+e1G3WLOYar0fdWSWco7mX J+W9ORU6jUHPDjJkS1Co+9nNzOaayQNDGmxU3F7f0sZx91u1pZa6EPCl2THOBaG6xMgg vbUAJvdFVNnHZesjRTwA9uQylLJ1MvTNgPr5NAaR3yLdwW226t1VtJkgiu762cSrlWql c8kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BVVcaNfIbAIFNLZk3aGQsbZ2biak0V8wSj22QQvK7Mw=; b=T6qWAhddqST5jaQ6nCOb0TN3fLjQTNlqSBieI2kwcp8B719aN57WklJvph8OHdbLVp 1nv8f2DSxfaRKyUgfWXids9YqE1jhYGTnUGfS3hnkwrs4dPlfKaO2URnCDxg3k4N4u0o immfZvUN009Ljpbjq44FM9M6iEVGJV+LcZ7WSSS8z00A0O8p0iRnAs+h6+rgzY47fCKg TOVacITLSOHJ5OLCY56NbaWczENlmcoQ/+V0iU432dk77PGh6pGSONvJM+I/0CPhPobY lr/XFyGOYDBFBySnxJsobaVDNHCUQrXaqO6odhU403rEdk32YGxkr3Pjrd0FLL223h0z qipw== X-Gm-Message-State: AHQUAuYEW5HrhWdHkQL02sluSTzyVxjtBZRh60gZRkA236FAhb4qTMfq G4d3GlOkM1laZs2m8njLV0HEtndc X-Google-Smtp-Source: AHgI3IbGwJ9EbTHVdvoE93fA/Wn5vWeTz3wZmqHClPCVoGaWEYcMDcmr31n/LJcRa0hlph1PFmBdtg== X-Received: by 2002:a1c:6342:: with SMTP id x63mr6798179wmb.92.1549839446029; Sun, 10 Feb 2019 14:57:26 -0800 (PST) Received: from localhost.localdomain (ppp194030245115.access.hol.gr. [194.30.245.115]) by smtp.gmail.com with ESMTPSA id d2sm6076985wrs.97.2019.02.10.14.57.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 10 Feb 2019 14:57:25 -0800 (PST) From: auxsvr To: pgsql-general@lists.postgresql.org Subject: Shared hosting with FDW on AWS RDS Date: Mon, 11 Feb 2019 00:57:23 +0200 Message-ID: <4776368.YtMxgcCULL@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, 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, but materialized views will be pulling from them data specific to each customer. So far, everything seems to work fine and be secure, as we've revoked access to the remote tables for the customer users, but I'm feeling a bit uneasy considering that the credentials for full access are stored in each database. My understanding is that remote user mapping is designed so that this will not be an issue, but I was wondering if access to the metadata schema might allow to circumvent this restriction. Also, I was wondering if someone has experience hardening databases on RDS, as the so called superuser does not have the right to revoke access from the metadata schema. Comments and suggestions are welcome. -- Regards, Peter