<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: securing your postgresql database</title>
	<atom:link href="http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/</link>
	<description></description>
	<lastBuildDate>Fri, 12 Mar 2010 05:34:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dicas-L Infraestrutura para Aplicações Web Seguras parte 2 &#8211; SGBDs &#171; .Info &#8211; windows, linux, software e mais.</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-29559</link>
		<dc:creator>Dicas-L Infraestrutura para Aplicações Web Seguras parte 2 &#8211; SGBDs &#171; .Info &#8211; windows, linux, software e mais.</dc:creator>
		<pubDate>Tue, 09 Mar 2010 11:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-29559</guid>
		<description>[...] Securing your PostgreSQL Database [...]</description>
		<content:encoded><![CDATA[<p>[...] Securing your PostgreSQL Database [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Infraestrutura para Aplicações Web Seguras parte 2 – SGBDs &#124; Alexos Core Labs</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-29426</link>
		<dc:creator>Infraestrutura para Aplicações Web Seguras parte 2 – SGBDs &#124; Alexos Core Labs</dc:creator>
		<pubDate>Fri, 26 Feb 2010 02:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-29426</guid>
		<description>[...] Securing your PostgreSQL Database * PostgreSQL &#8211; [...]</description>
		<content:encoded><![CDATA[<p>[...] Securing your PostgreSQL Database * PostgreSQL &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Segurança em bancos de dados PostgreSQL &#124; Israel Junior</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-25252</link>
		<dc:creator>Segurança em bancos de dados PostgreSQL &#124; Israel Junior</dc:creator>
		<pubDate>Mon, 03 Mar 2008 11:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-25252</guid>
		<description>[...] passada encontrei um post bem interessante sobre segurança em bancos de dados PostgreSQL. O artigo é velhinho e vai fazer aniversário em 18 de agosto, mas as dicas são de extrema [...]</description>
		<content:encoded><![CDATA[<p>[...] passada encontrei um post bem interessante sobre segurança em bancos de dados PostgreSQL. O artigo é velhinho e vai fazer aniversário em 18 de agosto, mas as dicas são de extrema [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depesz</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-21942</link>
		<dc:creator>depesz</dc:creator>
		<pubDate>Fri, 21 Sep 2007 21:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-21942</guid>
		<description>apparently revoking access to pg_catalog doesn&#039;t fully work. tom lane responded to my mail fo pgsql-bugs (http://archives.postgresql.org/pgsql-bugs/2007-09/msg00059.php), but as i understand it is not supported, and will not work fully.

this of course allows user to see sources of your functions, but i dont see it as a big threat. if your database is protected using proper revokes, knowing source codes of functions will not help much - after all - data will still be secure.</description>
		<content:encoded><![CDATA[<p>apparently revoking access to pg_catalog doesn&#8217;t fully work. tom lane responded to my mail fo pgsql-bugs (<a href="http://archives.postgresql.org/pgsql-bugs/2007-09/msg00059.php" rel="nofollow">http://archives.postgresql.org/pgsql-bugs/2007-09/msg00059.php</a>), but as i understand it is not supported, and will not work fully.</p>
<p>this of course allows user to see sources of your functions, but i dont see it as a big threat. if your database is protected using proper revokes, knowing source codes of functions will not help much &#8211; after all &#8211; data will still be secure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: semartin</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-20988</link>
		<dc:creator>semartin</dc:creator>
		<pubDate>Mon, 10 Sep 2007 12:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-20988</guid>
		<description>Reading this thread (answer from Tom Lane)
http://www.issociate.de/board/post/429754/Revoking_usage_of_pg_catalog.html
makes you wonder if access to certain objects is necessary for database to respond to user requests.
Or am I missing something since I&#039;m  using PostgreSQL on a &quot;need-to-know&quot; basis?
Oh, I almost forgot: thanks for your effort on this site.</description>
		<content:encoded><![CDATA[<p>Reading this thread (answer from Tom Lane)<br />
<a href="http://www.issociate.de/board/post/429754/Revoking_usage_of_pg_catalog.html" rel="nofollow">http://www.issociate.de/board/post/429754/Revoking_usage_of_pg_catalog.html</a><br />
makes you wonder if access to certain objects is necessary for database to respond to user requests.<br />
Or am I missing something since I&#8217;m  using PostgreSQL on a &#8220;need-to-know&#8221; basis?<br />
Oh, I almost forgot: thanks for your effort on this site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depesz</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-20987</link>
		<dc:creator>depesz</dc:creator>
		<pubDate>Mon, 10 Sep 2007 12:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-20987</guid>
		<description>@semartin:
i mailed buginfo about it. will see how it will go :)</description>
		<content:encoded><![CDATA[<p>@semartin:<br />
i mailed buginfo about it. will see how it will go <img src='http://www.depesz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depesz</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-20986</link>
		<dc:creator>depesz</dc:creator>
		<pubDate>Mon, 10 Sep 2007 12:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-20986</guid>
		<description>@semartin:
apparently it is possible. it looks like a bug though.

depesz</description>
		<content:encoded><![CDATA[<p>@semartin:<br />
apparently it is possible. it looks like a bug though.</p>
<p>depesz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: semartin</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-20985</link>
		<dc:creator>semartin</dc:creator>
		<pubDate>Mon, 10 Sep 2007 12:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-20985</guid>
		<description>After revoking usage privileges on schema pg_catalog from public user webapp still runs queries such as &quot;select * from pg_tables&quot; or &quot;select * from pg_user&quot; and inspects database internals.
Are those queries permitted regardless of user rights on schema and corresponding objects?</description>
		<content:encoded><![CDATA[<p>After revoking usage privileges on schema pg_catalog from public user webapp still runs queries such as &#8220;select * from pg_tables&#8221; or &#8220;select * from pg_user&#8221; and inspects database internals.<br />
Are those queries permitted regardless of user rights on schema and corresponding objects?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #59: a Carnival of the Vanities for DBAs &#171; I&#8217;m just a simple DBA on a complex production system</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19871</link>
		<dc:creator>Log Buffer #59: a Carnival of the Vanities for DBAs &#171; I&#8217;m just a simple DBA on a complex production system</dc:creator>
		<pubDate>Fri, 24 Aug 2007 16:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19871</guid>
		<description>[...] Meanwhile, on the OpenSource web: Ronald, at Technical Notes blog posts a bunch of links for Oracle DBAs learning MySQL and also advice regarding backup and recovery. Last week I received a task to take ownership of MySQL server and write a recovery procedure for it, I can testify that both articles are very useful. Charlie Cahoon ends in his Summer of Code blog with a release of his MySQL proxy. Corra is already using MySQL Proxy on Ubuntu. Morgan Tocker and Brian &#8220;Krow&#8221; Aker try to decide how big transactions should be, and last but not least &lt;/depesz&gt; explains how to secure PostgreSQL. [...]</description>
		<content:encoded><![CDATA[<p>[...] Meanwhile, on the OpenSource web: Ronald, at Technical Notes blog posts a bunch of links for Oracle DBAs learning MySQL and also advice regarding backup and recovery. Last week I received a task to take ownership of MySQL server and write a recovery procedure for it, I can testify that both articles are very useful. Charlie Cahoon ends in his Summer of Code blog with a release of his MySQL proxy. Corra is already using MySQL Proxy on Ubuntu. Morgan Tocker and Brian &#8220;Krow&#8221; Aker try to decide how big transactions should be, and last but not least &lt;/depesz&gt; explains how to secure PostgreSQL. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PDK</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19847</link>
		<dc:creator>PDK</dc:creator>
		<pubDate>Thu, 23 Aug 2007 19:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19847</guid>
		<description>You&#039;re welcome, I try to help where I can.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome, I try to help where I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depesz</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19804</link>
		<dc:creator>depesz</dc:creator>
		<pubDate>Wed, 22 Aug 2007 18:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19804</guid>
		<description>@PDK:
i didn&#039;t mention it for a very simple reason - i didn&#039;t know anything about kerberos authentication as i never used it :)

so, thanks for valuable input - without your comment there was no chance i will write anything about it, but now the tutorial (with comments) give more information then i have :)</description>
		<content:encoded><![CDATA[<p>@PDK:<br />
i didn&#8217;t mention it for a very simple reason &#8211; i didn&#8217;t know anything about kerberos authentication as i never used it <img src='http://www.depesz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>so, thanks for valuable input &#8211; without your comment there was no chance i will write anything about it, but now the tutorial (with comments) give more information then i have <img src='http://www.depesz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PDK</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19803</link>
		<dc:creator>PDK</dc:creator>
		<pubDate>Wed, 22 Aug 2007 18:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19803</guid>
		<description>Good tutorial, however I feel I should point out that disallowing remote superuser connections won&#039;t work in the case of Kerberos authentication. Granted, this is probably the exception among postgresql users, but I&#039;m sure enough people use it.

However, you can essentially block remote superuser connections by limiting credentials and login shells only to postgres servers, and making sure that only people and admins you trust can log in and use said superuser.

Still, it should be noted that Kerberos uses TCP/IP and currently cannot use Unix Domain Sockets, if that makes any difference.</description>
		<content:encoded><![CDATA[<p>Good tutorial, however I feel I should point out that disallowing remote superuser connections won&#8217;t work in the case of Kerberos authentication. Granted, this is probably the exception among postgresql users, but I&#8217;m sure enough people use it.</p>
<p>However, you can essentially block remote superuser connections by limiting credentials and login shells only to postgres servers, and making sure that only people and admins you trust can log in and use said superuser.</p>
<p>Still, it should be noted that Kerberos uses TCP/IP and currently cannot use Unix Domain Sockets, if that makes any difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EdwinF</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19800</link>
		<dc:creator>EdwinF</dc:creator>
		<pubDate>Wed, 22 Aug 2007 15:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19800</guid>
		<description>Simply great, thnx a bunch!.</description>
		<content:encoded><![CDATA[<p>Simply great, thnx a bunch!.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depesz</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19679</link>
		<dc:creator>depesz</dc:creator>
		<pubDate>Mon, 20 Aug 2007 06:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19679</guid>
		<description>@Mathew:
i didn&#039;t because i think that:
1. every admin should know it
2. i write specifically about postrgesql, and chrooting (and other things like this) are mostly general, not application dependant

maybe in future, if i&#039;ll have too much free time :)</description>
		<content:encoded><![CDATA[<p>@Mathew:<br />
i didn&#8217;t because i think that:<br />
1. every admin should know it<br />
2. i write specifically about postrgesql, and chrooting (and other things like this) are mostly general, not application dependant</p>
<p>maybe in future, if i&#8217;ll have too much free time <img src='http://www.depesz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathew</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19665</link>
		<dc:creator>Mathew</dc:creator>
		<pubDate>Mon, 20 Aug 2007 00:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19665</guid>
		<description>Good read - picked up some things I hadn&#039;t thought about before.

Given that you kept he discussion &quot;inside&quot; PostgreSQL you didn&#039;t mention classics that every admin should know - like chrooting.  Might make a good part 2?</description>
		<content:encoded><![CDATA[<p>Good read &#8211; picked up some things I hadn&#8217;t thought about before.</p>
<p>Given that you kept he discussion &#8220;inside&#8221; PostgreSQL you didn&#8217;t mention classics that every admin should know &#8211; like chrooting.  Might make a good part 2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: depesz</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19644</link>
		<dc:creator>depesz</dc:creator>
		<pubDate>Sun, 19 Aug 2007 18:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19644</guid>
		<description>i connect over unix socket *only* on devel machines. (on servers postgresql is in chroot, and applications are in chroots, so connecting over unix socket would be ... complicated).

on devel machine i want to be able to simply \c - postgres. i want to be able to psql -U postgres -d template1.
and &quot;ident&quot; breaks it for me.

i know i can &quot;fix&quot; it by using pg_ident.conf, but if i have to fix it that way - i much more prefer &quot;trust&quot;.

additionally - i hate it because it is one of the most common problems with fresh postgresql instalation. (this, tcpip socket, and &quot;user root does not exist :)&quot;.</description>
		<content:encoded><![CDATA[<p>i connect over unix socket *only* on devel machines. (on servers postgresql is in chroot, and applications are in chroots, so connecting over unix socket would be &#8230; complicated).</p>
<p>on devel machine i want to be able to simply \c &#8211; postgres. i want to be able to psql -U postgres -d template1.<br />
and &#8220;ident&#8221; breaks it for me.</p>
<p>i know i can &#8220;fix&#8221; it by using pg_ident.conf, but if i have to fix it that way &#8211; i much more prefer &#8220;trust&#8221;.</p>
<p>additionally &#8211; i hate it because it is one of the most common problems with fresh postgresql instalation. (this, tcpip socket, and &#8220;user root does not exist <img src='http://www.depesz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Screwtape</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19617</link>
		<dc:creator>Screwtape</dc:creator>
		<pubDate>Sun, 19 Aug 2007 08:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19617</guid>
		<description>I&#039;m curious - why do you hate &quot;ident sameuser&quot; so much? Granted, it&#039;s horribly broken over TCP-IP, but if you&#039;re on an OS that supports SO_PEERCRED and you&#039;re connecting over a Unix-domain socket, this form of identification is apparently unspoofable - surely that&#039;s a good thing?</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious &#8211; why do you hate &#8220;ident sameuser&#8221; so much? Granted, it&#8217;s horribly broken over TCP-IP, but if you&#8217;re on an OS that supports SO_PEERCRED and you&#8217;re connecting over a Unix-domain socket, this form of identification is apparently unspoofable &#8211; surely that&#8217;s a good thing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xor</title>
		<link>http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/comment-page-1/#comment-19608</link>
		<dc:creator>xor</dc:creator>
		<pubDate>Sun, 19 Aug 2007 08:20:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.depesz.com/index.php/2007/08/18/securing-your-postgresql-database/#comment-19608</guid>
		<description>Thank you! :)</description>
		<content:encoded><![CDATA[<p>Thank you! <img src='http://www.depesz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
