From mmohammadi@pentaho.com Fri Feb 22 03:55:19 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8jjD-0006Lv-8Q for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 03:55:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8jjC-0004FR-K9 for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 03:55:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8jjA-0004FF-4J; Fri, 22 Feb 2013 03:55:16 +0000 Received: from server505f.appriver.com ([98.129.35.10] helo=server505.appriver.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8jj5-00057j-BO; Fri, 22 Feb 2013 03:55:15 +0000 X-Note-AR-ScanTimeLocal: 2/21/2013 9:55:09 PM X-Policy: GLOBAL - pentaho.com X-Policy: GLOBAL - pentaho.com X-Primary: mmohammadi@pentaho.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: @pentaho.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNKNOWN->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.35.1 X-Note-Reverse-DNS: smtp.exg5.exghost.com X-Note-Return-Path: mmohammadi@pentaho.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G328 G329 G330 G331 G335 G336 G347 G443 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.35.1] (HELO smtp.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 6.0.1) with ESMTPS id 359020342; Thu, 21 Feb 2013 21:55:09 -0600 Received: from MBX36.exg5.exghost.com ([169.254.1.225]) by HT03.exg5.exghost.com ([98.129.23.45]) with mapi; Thu, 21 Feb 2013 21:55:08 -0600 From: Maz Mohammadi To: "pgsql-general@postgresql.org" , "pgsql-jdbc@postgresql.org" Date: Thu, 21 Feb 2013 21:55:27 -0600 Subject: confirming security. Thread-Topic: confirming security. Thread-Index: Ac4QrwgU3wf/42oLT7CHrNt+Q/ld4g== Message-ID: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_9F992F0A0D9BA04F914597F75435942D09575EB6B2MBX36exg5exgh_" MIME-Version: 1.0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org --_000_9F992F0A0D9BA04F914597F75435942D09575EB6B2MBX36exg5exgh_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all, I've been following the instructions on http://www.postgresql.org/docs/9.1/= static/ssl-tcp.html to enable SSL for postgres 9.1 which I have installed o= n linux. When I start the server, there is no change in the authentication. I can st= ill login using psql for the same person. At the end, I need to connect to the DB through JDBC via cert. authenticati= on. 1) Is there a log file which I can check to see if the security algori= thm has been changed? 2) If not, is there a way that I can try to validate the changes. -maz --_000_9F992F0A0D9BA04F914597F75435942D09575EB6B2MBX36exg5exgh_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all,<= /o:p>

 

I&#= 8217;ve been following the instructions on http://www.postgresql.org/docs/9.1/stati= c/ssl-tcp.html to enable SSL for postgres 9.1 which I have installed on= linux.

 

When I start the server, there is no change in the authentication= . I can still login using psql for the same person.

 

At the end, I need t= o connect to the DB through JDBC via cert. authentication.

 

1)&n= bsp;     Is there a log file wh= ich I can check to see if the security algorithm has been changed?

2)      = If not, is there a way that I can try to validate the chan= ges.

 

-maz

 

<= /body>= --_000_9F992F0A0D9BA04F914597F75435942D09575EB6B2MBX36exg5exgh_-- From pierce@hogranch.com Fri Feb 22 04:10:46 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8jyA-0007IF-5E for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 04:10:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8jy9-0008NX-E7 for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 04:10:45 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8jrI-0007op-K2 for pgsql-general@postgresql.org; Fri, 22 Feb 2013 04:03:40 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8jrG-000064-AP for pgsql-general@postgresql.org; Fri, 22 Feb 2013 04:03:40 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r1M43V901420 for ; Thu, 21 Feb 2013 20:03:31 -0800 Message-ID: <5126EE15.8030402@hogranch.com> Date: Thu, 21 Feb 2013 20:03:33 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: confirming security. References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> In-Reply-To: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> Content-Type: multipart/alternative; boundary="------------060800040208090808040807" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org This is a multi-part message in MIME format. --------------060800040208090808040807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2/21/2013 7:55 PM, Maz Mohammadi wrote: > > When I start the server, there is no change in the authentication. I > can still login using psql for the same person. > did you disable other authentication methods in pg_hba.conf ? I would leave the LOCAL line as peer, and use ssl for HOST lines, then to test, use psql -h localhost ..... -- john r pierce 37N 122W somewhere on the middle of the left coast --------------060800040208090808040807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2/21/2013 7:55 PM, Maz Mohammadi wrote:

 

When I start the server, there is no change in the authentication. I can still login using psql for the same person.


did you disable other authentication methods in pg_hba.conf ?      I would leave the LOCAL line as peer, and use ssl for HOST lines, then to test, use psql -h localhost .....



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast
--------------060800040208090808040807-- From mmohammadi@pentaho.com Fri Feb 22 15:49:55 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8usk-0002er-Tc for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 15:49:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8usk-00053e-98 for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 15:49:54 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8usi-00053K-GZ for pgsql-general@postgresql.org; Fri, 22 Feb 2013 15:49:53 +0000 Received: from server505c.appriver.com ([98.129.35.7] helo=server505.appriver.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8use-0002pS-Ti for pgsql-general@postgresql.org; Fri, 22 Feb 2013 15:49:51 +0000 X-Note-AR-ScanTimeLocal: 2/22/2013 9:49:46 AM X-Policy: GLOBAL - pentaho.com X-Policy: GLOBAL - pentaho.com X-Primary: mmohammadi@pentaho.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: @pentaho.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNKNOWN->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.35.1 X-Note-Reverse-DNS: X-Note-Return-Path: mmohammadi@pentaho.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G328 G329 G330 G331 G335 G336 G347 G443 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.35.1] (HELO smtp.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.4.8) with ESMTPS id 290658853; Fri, 22 Feb 2013 09:49:46 -0600 Received: from MBX36.exg5.exghost.com ([169.254.1.225]) by HT09-e5.exg5.exghost.com ([98.129.23.242]) with mapi; Fri, 22 Feb 2013 09:49:45 -0600 From: Maz Mohammadi To: John R Pierce , "pgsql-general@postgresql.org" Date: Fri, 22 Feb 2013 09:50:04 -0600 Subject: Re: confirming security. Thread-Topic: [GENERAL] confirming security. Thread-Index: Ac4Qst88+oIsQExvTzOZsOPkA/6fOQAX7k4Q Message-ID: <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> <5126EE15.8030402@hogranch.com> In-Reply-To: <5126EE15.8030402@hogranch.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_9F992F0A0D9BA04F914597F75435942D09576C4DCFMBX36exg5exgh_" MIME-Version: 1.0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org --_000_9F992F0A0D9BA04F914597F75435942D09576C4DCFMBX36exg5exgh_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thx John, It got me a long way. I actually have a more complex installation (I think= ) that I originally thought on my test linux box. Looks like all the files= that I modify are under /var/lib/post../coord. I added the line.. to pg_hba.conf hostssl all all 127.0.0.1/32 cert and after restarting the coordinator node, it errored because I had to modi= fy postgresql.conf (ssl=3Doff) . So I feel that the server is now running = in SSL mode. But when I used psql...I'm getting this.... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D postgres-xc@adminuser-VirtualBox:~/coord$ psql -h localhost testdb psql (PGXC 1.0.0, based on PG 9.1.4) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help. testdb=3D# select 2+2; ?column? ---------- 4 (1 row) testdb=3D# \q =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D It's telling me it's through an SSL connection, but I didn't specify any ke= ystore on my side for psql? Does it pick it up from somewhere? Any help is greatly appreciated :) Postgresql isn't half bad ;) From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgr= esql.org] On Behalf Of John R Pierce Sent: Thursday, February 21, 2013 11:04 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] confirming security. On 2/21/2013 7:55 PM, Maz Mohammadi wrote: When I start the server, there is no change in the authentication. I can st= ill login using psql for the same person. did you disable other authentication methods in pg_hba.conf ? I would = leave the LOCAL line as peer, and use ssl for HOST lines, then to test, use= psql -h localhost ..... -- john r pierce 37N 122W somewhere on the middle of the left coast --_000_9F992F0A0D9BA04F914597F75435942D09576C4DCFMBX36exg5exgh_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

= Thx John,

&nbs= p;

It got me a long way.  = I actually have a more complex installation (I think) that I originally tho= ught on my test linux box.  Looks like all the files that I modify are= under /var/lib/post../coord.

 

I added the lin= e.. to pg_hba.conf

&n= bsp;

hostssl   all &n= bsp;         all   &= nbsp;       127.0.0.1/32   &nb= sp;   cert

 

and after restarting th= e coordinator node, it errored because I had to modify postgresql.conf (ssl= =3Doff) .  So I feel that the server is now running in SSL mode.<= /o:p>

 

But when I used psql…I’m getting this&= #8230;.

 <= /span>

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D

postgres-xc@adminus= er-VirtualBox:~/coord$ psql -h localhost testdb

psql (PGXC 1.0.0, based on PG 9.1.4)

SSL connection (cipher: DHE-RSA-AES256-SHA= , bits: 256)

Type "he= lp" for help.

&n= bsp;

testdb=3D# select 2+2;

?column? <= /p>

----------

        4

(1 row)

 

te= stdb=3D# \q

=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

 

It’s tel= ling me it’s through an SSL connection, but I didn’t specify an= y keystore on my side for psql?  Does it pick it up from somewhere?&nb= sp;

Any help is greatly a= ppreciated J

 

Postgresql isn= 217;t half bad ;)

&nb= sp;

 

 

From: pgsql-general-owner@= postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of = John R Pierce
Sent: Thursday, February 21, 2013 11:04 PM
<= b>To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] con= firming security.

 

On 2/21/2013 7:55 PM, Maz Moham= madi wrote:

 

When I start the server,= there is no change in the authentication. I can still login using psql for= the same person.


did y= ou disable other authentication methods in pg_hba.conf ?   &= nbsp;  I would leave the LOCAL line as peer, and use ssl for HOST line= s, then to test, use psql -h localhost .....




=

-- 
john r pierce    &nbs=
p;            &=
nbsp;           &nbs=
p;        37N 122W
=
somewhere on the middle of the left coast
= --_000_9F992F0A0D9BA04F914597F75435942D09576C4DCFMBX36exg5exgh_-- From adrian.klaver@gmail.com Fri Feb 22 15:57:54 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8v0U-0003DL-OV for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 15:57:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8v0T-0007Uz-UQ for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 15:57:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8v0S-0007Ut-RS for pgsql-general@postgresql.org; Fri, 22 Feb 2013 15:57:52 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8v0M-0008Rp-Cp for pgsql-general@postgresql.org; Fri, 22 Feb 2013 15:57:52 +0000 Received: by mail-pa0-f44.google.com with SMTP id kp1so545746pab.3 for ; Fri, 22 Feb 2013 07:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ZrP3SMUqjMj1fFzvSMBnnjjSI1nyzmCduXw3g4+PK8I=; b=xzQUXJkqPe9tz2XsNvsWRLj58/TSgF8tw0tsG2IFKrvznAqLDCQNft+p/4UdxAvmhW VM3eKtTGB4cQGOebk6GeqVto4MhScjXCCm0ODKkUPxL/dSDzw4pR1G+Ifv995/gYnfpt UknjpP4g9oj2+rS70fusgDPilOu2Ism5o/PTXnF9qTD+fQc6IaUm0IZvCbD/zima0qPY nzXGvjmpx1jVNiCTfGhMya/WujPKJbS6iV87DfulRiauBTxDy2HviPzQwUeDGsfAm519 /bTrk056EXkASWgQMEQZnQ/d7jl4IUGKcfM2lor+8Tcds3NKIVQYoXX+wIT+2G5dbH48 2T8A== X-Received: by 10.68.8.69 with SMTP id p5mr3717788pba.212.1361548664451; Fri, 22 Feb 2013 07:57:44 -0800 (PST) Received: from [192.168.0.2] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id a10sm2901824pbq.29.2013.02.22.07.57.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Feb 2013 07:57:43 -0800 (PST) Message-ID: <51279576.1080102@gmail.com> Date: Fri, 22 Feb 2013 07:57:42 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Maz Mohammadi CC: John R Pierce , "pgsql-general@postgresql.org" Subject: Re: confirming security. References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> <5126EE15.8030402@hogranch.com> <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> In-Reply-To: <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 02/22/2013 07:50 AM, Maz Mohammadi wrote: > Thx John, > > It got me a long way. I actually have a more complex installation (I > think) that I originally thought on my test linux box. Looks like all > the files that I modify are under /var/lib/post../coord. > > I added the line.. to pg_hba.conf > > hostssl all all 127.0.0.1/32 cert > > and after restarting the coordinator node, it errored because I had to > modify postgresql.conf (ssl=off) . So I feel that the server is now > running in SSL mode. > > But when I used psql…I’m getting this…. > > ============== > > postgres-xc@adminuser-VirtualBox:~/coord$ psql -h localhost testdb > > psql (PGXC 1.0.0, based on PG 9.1.4) > > SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) > > Type "help" for help. > > testdb=# select 2+2; > > ?column? > > ---------- > > 4 > > (1 row) > > testdb=# \q > > ============== > > It’s telling me it’s through an SSL connection, but I didn’t specify any > keystore on my side for psql? Does it pick it up from somewhere? > > Any help is greatly appreciated J > > Postgresql isn’t half bad ;) > Is the above line from pg_hba.conf the only one in the file? If not could you post the entire file contents? Remember in pg_hba.conf first match wins. -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general From mmohammadi@pentaho.com Fri Feb 22 16:13:45 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8vFo-0004MP-SI for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 16:13:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8vFo-0001X5-By for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 16:13:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8vFn-0001Ww-9B for pgsql-general@postgresql.org; Fri, 22 Feb 2013 16:13:43 +0000 Received: from server505g.appriver.com ([98.129.35.12] helo=server505.appriver.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8vFi-0000IT-2z for pgsql-general@postgresql.org; Fri, 22 Feb 2013 16:13:42 +0000 X-Note-AR-ScanTimeLocal: 2/22/2013 10:13:36 AM X-Policy: GLOBAL - pentaho.com X-Policy: GLOBAL - pentaho.com X-Primary: mmohammadi@pentaho.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: @pentaho.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNKNOWN->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.35.1 X-Note-Reverse-DNS: smtp.exg5.exghost.com X-Note-Return-Path: mmohammadi@pentaho.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G328 G329 G330 G331 G335 G336 G347 G443 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.35.1] (HELO smtp.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 6.0.1) with ESMTPS id 360183299; Fri, 22 Feb 2013 10:13:36 -0600 Received: from MBX36.exg5.exghost.com ([169.254.1.225]) by HT08-E5.exg5.exghost.com ([98.129.23.244]) with mapi; Fri, 22 Feb 2013 10:13:33 -0600 From: Maz Mohammadi To: Adrian Klaver CC: "pgsql-general@postgresql.org" Date: Fri, 22 Feb 2013 10:13:54 -0600 Subject: Re: confirming security. Thread-Topic: [GENERAL] confirming security. Thread-Index: Ac4RFVuGrNMJK2wcRhKqZnjOQ+qNzwAABuzA Message-ID: <9F992F0A0D9BA04F914597F75435942D09576C4DF5@MBX36.exg5.exghost.com> References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> <5126EE15.8030402@hogranch.com> <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> <51279576.1080102@gmail.com> In-Reply-To: <51279576.1080102@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Ahhh yes....it is now... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only #local all all trust # IPv4 local connections: #host all all 127.0.0.1/32 trust # IPv6 local connections: #host all all ::1/128 trust # Allow replication connections from localhost, by a user with the # replication privilege. #local replication postgres-xc trust #host replication postgres-xc 127.0.0.1/32 trust #host replication postgres-xc ::1/128 trust hostssl all all 127.0.0.1/32 cert =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D And the result... postgres-xc@adminuser-VirtualBox:~/coord$ psql -h localhost testdb psql: FATAL: connection requires a valid client certificate FATAL: no pg_hba.conf entry for host "127.0.0.1", user "postgres-xc", data= base "testdb", SSL off Thank you so much! -----Original Message----- From: Adrian Klaver [mailto:adrian.klaver@gmail.com]=20 Sent: Friday, February 22, 2013 10:58 AM To: Maz Mohammadi Cc: John R Pierce; pgsql-general@postgresql.org Subject: Re: [GENERAL] confirming security. On 02/22/2013 07:50 AM, Maz Mohammadi wrote: > Thx John, > > It got me a long way. I actually have a more complex installation (I > think) that I originally thought on my test linux box. Looks like all=20 > the files that I modify are under /var/lib/post../coord. > > I added the line.. to pg_hba.conf > > hostssl all all 127.0.0.1/32 cert > > and after restarting the coordinator node, it errored because I had to=20 > modify postgresql.conf (ssl=3Doff) . So I feel that the server is now=20 > running in SSL mode. > > But when I used psql...I'm getting this.... > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > postgres-xc@adminuser-VirtualBox:~/coord$ psql -h localhost testdb > > psql (PGXC 1.0.0, based on PG 9.1.4) > > SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) > > Type "help" for help. > > testdb=3D# select 2+2; > > ?column? > > ---------- > > 4 > > (1 row) > > testdb=3D# \q > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > It's telling me it's through an SSL connection, but I didn't specify=20 > any keystore on my side for psql? Does it pick it up from somewhere? > > Any help is greatly appreciated J > > Postgresql isn't half bad ;) > Is the above line from pg_hba.conf the only one in the file? If not could you post the entire file contents? Remember in pg_hba.conf first match wins. -- Adrian Klaver adrian.klaver@gmail.com --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general From pierce@hogranch.com Fri Feb 22 19:35:24 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8yOy-0003LS-AU for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 19:35:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8yOx-0000I2-HD for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 19:35:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8yOw-0000Hw-2G for pgsql-general@postgresql.org; Fri, 22 Feb 2013 19:35:22 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8yOt-0006Rv-93 for pgsql-general@postgresql.org; Fri, 22 Feb 2013 19:35:20 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r1MJZC914185 for ; Fri, 22 Feb 2013 11:35:12 -0800 Message-ID: <5127C86C.4020505@hogranch.com> Date: Fri, 22 Feb 2013 11:35:08 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: confirming security. References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> <5126EE15.8030402@hogranch.com> <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> <51279576.1080102@gmail.com> <9F992F0A0D9BA04F914597F75435942D09576C4DF5@MBX36.exg5.exghost.com> In-Reply-To: <9F992F0A0D9BA04F914597F75435942D09576C4DF5@MBX36.exg5.exghost.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 2/22/2013 8:13 AM, Maz Mohammadi wrote: > Ahhh yes....it is now... > > =========== > # TYPE DATABASE USER ADDRESS METHOD > # "local" is for Unix domain socket connections only > #local all all trust > # IPv4 local connections: > #host all all 127.0.0.1/32 trust > # IPv6 local connections: > #host all all ::1/128 trust > # Allow replication connections from localhost, by a user with the > # replication privilege. > #local replication postgres-xc trust > #host replication postgres-xc 127.0.0.1/32 trust > #host replication postgres-xc ::1/128 trust > hostssl all all 127.0.0.1/32 cert I would leave a local line in front of that like.. local all postgres peer this will allow the postgres user to log on regardless when using unix sockets rather than tcp/ip (eg, when not specifying any -h hostname). handy for database administration and fixing problems. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general From mmohammadi@pentaho.com Fri Feb 22 20:43:15 2013 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8zSd-0007vU-C4 for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 20:43:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U8zSc-0003Vj-Og for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2013 20:43:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8zSa-0003Tq-Kx for pgsql-general@postgresql.org; Fri, 22 Feb 2013 20:43:12 +0000 Received: from server505a.appriver.com ([98.129.35.4] helo=server505.appriver.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U8zSX-0007W8-Mr for pgsql-general@postgresql.org; Fri, 22 Feb 2013 20:43:11 +0000 X-Note-AR-ScanTimeLocal: 2/22/2013 2:43:07 PM X-Policy: GLOBAL - pentaho.com X-Policy: GLOBAL - pentaho.com X-Primary: mmohammadi@pentaho.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: @pentaho.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNKNOWN->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.35.1 X-Note-Reverse-DNS: smtp.exg5.exghost.com X-Note-Return-Path: mmohammadi@pentaho.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G328 G329 G330 G331 G335 G336 G347 G443 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.35.1] (HELO smtp.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 6.0.1) with ESMTPS id 360301445; Fri, 22 Feb 2013 14:41:46 -0600 Received: from MBX36.exg5.exghost.com ([169.254.1.225]) by HT07.exg5.exghost.com ([98.129.23.207]) with mapi; Fri, 22 Feb 2013 14:41:45 -0600 From: Maz Mohammadi To: John R Pierce , "pgsql-general@postgresql.org" Date: Fri, 22 Feb 2013 14:42:06 -0600 Subject: Re: confirming security. Thread-Topic: [GENERAL] confirming security. Thread-Index: Ac4RNAmt6IlJmvblSN6zNh1awuNV7wAAVmog Message-ID: <9F992F0A0D9BA04F914597F75435942D09576C4F80@MBX36.exg5.exghost.com> References: <9F992F0A0D9BA04F914597F75435942D09575EB6B2@MBX36.exg5.exghost.com> <5126EE15.8030402@hogranch.com> <9F992F0A0D9BA04F914597F75435942D09576C4DCF@MBX36.exg5.exghost.com> <51279576.1080102@gmail.com> <9F992F0A0D9BA04F914597F75435942D09576C4DF5@MBX36.exg5.exghost.com> <5127C86C.4020505@hogranch.com> In-Reply-To: <5127C86C.4020505@hogranch.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Good tip! Thank you. -----Original Message----- From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgr= esql.org] On Behalf Of John R Pierce Sent: Friday, February 22, 2013 2:35 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] confirming security. On 2/22/2013 8:13 AM, Maz Mohammadi wrote: > Ahhh yes....it is now... > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # TYPE DATABASE USER ADDRESS METHOD > # "local" is for Unix domain socket connections only > #local all all trust > # IPv4 local connections: > #host all all 127.0.0.1/32 trust > # IPv6 local connections: > #host all all ::1/128 trust > # Allow replication connections from localhost, by a user with the #=20 > replication privilege. > #local replication postgres-xc trust > #host replication postgres-xc 127.0.0.1/32 trust > #host replication postgres-xc ::1/128 trust > hostssl all all 127.0.0.1/32 cert I would leave a local line in front of that like.. local all postgres peer this will allow the postgres user to log on regardless when using unix sock= ets rather than tcp/ip (eg, when not specifying any -h hostname).=20=20 handy for database administration and fixing problems. --=20 john r pierce 37N 122W somewhere on the middle of the left coast --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general