Hiding users and databases

From: Ross Dougherty <ross(at)dougherty(dot)id(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Hiding users and databases
Date: 2014-10-17 02:48:25
Message-ID: CAJt6HJDuQsyKB4+8yoi4sg4C2J97OecLg9f1gw_98uqGuRW2-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

We run database servers that each contain multiple customer databases.
We would like to give customers access to their own database but even
though they are unable to connect to the databases of other customers
due to connect grants they are still able to see all other databases
and users on the server.

Is there a way to mask or hide databases which they don’t have connect
grants to and hide users/roles aside from their own? I have found some
methods involving modifying the system catalogs but would prefer not
to do this. I would like to avoid renaming all users/databases to
non-identifiable names if possible but so far I think this is my only
option. Any other suggestions would be appreciated.

Thanks,
Ross

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerome Wagner 2014-10-17 09:35:48 FDW wrapper for clustered app management
Previous Message Adrian Klaver 2014-10-16 22:46:40 Re: Weird library problem