pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Thomas Jacob <jacob@internet24.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Best practice running a shared DB hosting server
Date: Wed, 13 Aug 2008 08:57:39 -0600
Message-ID: <dcc563d10808130757o45cdeb45jaa87cc09d0bdd837@mail.gmail.com> (raw)
In-Reply-To: <1218635097.28547.28.camel@enterprise.ims-firmen.de>
References: <1218635097.28547.28.camel@enterprise.ims-firmen.de>

On Wed, Aug 13, 2008 at 7:44 AM, Thomas Jacob <jacob@internet24.de> wrote:
> Hello List,
>
> I was wondering if there is something like
> a best practice document for running
> PostgreSQL (probably 8.3.3) securely in a shared
> Web+DB hosting environment, where different
> people without any administrative relationship
> between them may run their databases on
> the same server.

Well, databases are designed to be accessed by people you trust to not
do really stupid things that can affect the other users.

I'd set up a db per user with pg_hba.conf set to only allow them to
log into the db of their own name.

> I am particularly interested in the
> role, permission and schema layout.

Each user = a new database. Let them do what they want to in there.

> Also I'm worried about the amount of information
> available to ordinary DB users. For instance,
> without revoking access to pg_catalog from
> PUBLIC all users can see the usernames,
> database names etc. of all other users. But
> revoking the right from pg_catalog doesn't
> seem to be an option, as this breaks
> several features of the psql utility and probably
> other things.

Hiding such things would only be security via obscurity and would
accomplish exactly nothing..  Actually keeping people from logging
into another user's database is much more important.  that you can do
with pg_hba.conf.



view thread (10+ messages)  latest in thread

Message-ID: <dcc563d10808130757o45cdeb45jaa87cc09d0bdd837@mail.gmail.com>
Permalink:  ../dcc563d10808130757o45cdeb45jaa87cc09d0bdd837@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10808130757o45cdeb45jaa87cc09d0bdd837@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, jacob@internet24.de
  Subject: Re: Best practice running a shared DB hosting server
  In-Reply-To: <dcc563d10808130757o45cdeb45jaa87cc09d0bdd837@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox