Re: Catalog Security WAS: Views, views, views: Summary

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, andrew(at)supernews(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Catalog Security WAS: Views, views, views: Summary
Date: 2005-05-14 02:39:38
Message-ID: 20050514023938.GA25930@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, May 14, 2005 at 12:25:01PM +1000, Russell Smith wrote:

> - Which parts of other databases can be seen by users?

The name, username of the owner, etc. No table names, for example.
The user list is also visible to everyone, across databases.

> - What is the best method to restrict connections to db's people don't have
> permissions to.

pg_hba.conf. Apparently some people run separate postmasters for each,
and there are reasons to do that (shared xlogs can be a hassle, for
example; if something goes ill in another database, you may be screwed
too. Or shared oldest Xid.)

> Tom mentioned that he had not had these security concerns raised before. From
> my point of view I just have no idea about the level of information offered
> to any given user and am scared to run PostgreSQL in an ISP shared
> environment because of it.

Actually I've seen complaints before. Within a DB you can see the names
and columns of all tables, views, etc. Some people want to hide that,
and I see the point. In a shared environment you can probably get away
with giving separate databases to each, and you have perfect isolation,
so no worries there. But if you want to partially share data in a
useful manner (say use foreign keys from one "DB" to another) you have
to use schemas, and by doing so you are automatically granting
visibility to lots of info about your database. (Not the data itself
though.)

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"Hoy es el primer día del resto de mi vida"

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2005-05-14 02:47:38 Re: Catalog Security WAS: Views, views, views: Summary
Previous Message Russell Smith 2005-05-14 02:25:01 Re: Catalog Security WAS: Views, views, views: Summary