Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl1aM-00040Z-Nk for pgsql-admin@arkaria.postgresql.org; Thu, 15 May 2014 19:44:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wl1aM-00007I-72 for pgsql-admin@arkaria.postgresql.org; Thu, 15 May 2014 19:44:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl1aL-00007C-IO for pgsql-admin@postgresql.org; Thu, 15 May 2014 19:44:57 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl1aI-0005g2-Hu for pgsql-admin@postgresql.org; Thu, 15 May 2014 19:44:57 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Wl1aH-00047L-Do; Thu, 15 May 2014 15:44:53 -0400 Date: Thu, 15 May 2014 15:44:53 -0400 From: Bruce Momjian To: Daniel Gomez Blanco Cc: pgsql-admin@postgresql.org Subject: Re: Pros and cons of giving someone superuser privilege Message-ID: <20140515194453.GA25052@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Fri, Apr 25, 2014 at 03:46:52PM +0200, Daniel Gomez Blanco wrote: > Hi all, > > I'm part of a service where we provide users with their own PostgreSQL > instances. The idea is that we provide them with a website to request and > manage their databases (start/stop, backups, restores, upgrades, monitoring, > etc). By doing this, we avoid having to give them access to the machine where > their database is running, as this would be a security concern. But in the end, > the user is the sole responsible for the database. > > At the moment we create an "admin" user for them and give it "createdb" and > "createrole" privileges. My question is, in case we give that user the > superuser privilege, what would the repercussion be concerning security (as in Have you considered that your users can _create_ superusers? I think modified Amazon Postgres blocks that, but native Postgres does not. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin