Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l35KE-0005wh-AU for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 22:54:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l35KD-0001uO-3O for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 22:54:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l35KC-0001uH-Rp for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 22:54:40 +0000 Received: from [64.147.123.24] (helo=wout1-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l35K7-0007OL-Lu for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 22:54:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id C613F1A41; Fri, 22 Jan 2021 17:54:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 22 Jan 2021 17:54:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=b hyttFeB4zamkyy2KYoo1BfCDuHfHko5hwiHrFLa9Dg=; b=bnsmkvH7eHXP/4nhT 5aSzuerx1owKliIa+jZoGiCwysLNzNvILB1IVrvAz0DH/1/SJBK6HyTW5WJTHNWb VujcrfGoLvI/vnQess2H76Hs6mBkBHzhz6wx5jTeg5xT2bKADp27K7IKdyC2WS3S jziOSwL85OoBMlKutCby8KWJqs1pzyZAem9SV2b6/SMJWdYGlmY2J/Az+3JeqJmF KPWX+dnFPbN5yn0OmBaCxyiDcw92fdt0+g9IEQM0hj7QOct+gnZPhMsZEgEYIl/S WwKkVDworCZ8QSOcGVt1Cg0gg62Jk1G8ylTllioWwA2X345bGRk1Ig9nEMi3ADPm DZ4pQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=bhyttFeB4zamkyy2KYoo1BfCDuHfHko5hwiHrFLa9 Dg=; b=gBetGpk8q/0IMjZqJwlciyHkb7q/uW+jWkqhC90QURX/nmhbCEEVGaRrr 4PGttte7h037JdV1yNZB1hGYsIeK9DEol+2IaMxCtPxnJpmImGfmAM97QC8BpWjS HpL+bVCLrTrkfI4+TW72NBl7bcD9lIwS7uWeFkJjNAjshIxPpb49VB5x9oTp+E2o bO+i16V/68wt5j+9j75XjC5IumoY+ltLDcNrqO1uKga0ZxUlNMH7CSkzRlTIoqfr 6kP8JoaXcHgGqG/IjE5NTPUo48OaukY7dHmlmvua0LSfl5b6PM4ESus2H4ibISkV k9lo/IjAH7pFRsGT4nIl4JSkYXIhw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepuddufeejteevffehgfduhedthfdvteekieeuheefveev udetkeelueehgeduhefhnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepjeehrddujedvrddugedrudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homh X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id DC76324005A; Fri, 22 Jan 2021 17:54:22 -0500 (EST) Subject: Re: localhost ssl To: Rob Sargent , "pgsql-generallists.postgresql.org" References: <1ca17e3b-14de-69ff-5f0b-4082376571ca@aklaver.com> <73ae4494-3b65-6ecd-b610-9a9ac5c9cce1@gmail.com> <5f8db865-2f0e-6764-f2f0-b344feb42368@aklaver.com> <2f653f6c-5f27-13fd-49be-90845a45ef43@gmail.com> <4665f2de-d2a2-4623-8c61-0f42c899e8a3@aklaver.com> From: Adrian Klaver Message-ID: <8d6c56b4-ec30-bae9-c570-a80df9955582@aklaver.com> Date: Fri, 22 Jan 2021 14:54:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.24 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/22/21 2:48 PM, Rob Sargent wrote: > >> Check out this section: >> >> https://www.postgresql.org/docs/12/ssl-tcp.html#SSL-CLIENT-CERTIFICATES >> >> "...  the cn (Common Name) in the certificate matches the user name or >> an applicable mapping." >> >> This section spells out what is needed for the various forms of client >> cert SSL authentication. >> >>> >>> I have specific roles accessing specific schemas via sql which is not >>> schema qualified. >>> >> >> I'm  assuming this is some sort of security. Just wondering if there >> is provision made for people who know how to do SET search_path or \dn >> or schema qualify objects? >> >> > Honest, I've been reading 18.9 but as you can see it uses CN for host > and then 20.12 suggests using CN for role. Difference between server certificate and client certificate. To get a handle on this is going to take an outline of what your authentication needs are? > > Yes, I'm confused.  As I said in reply to Jeff, I would rather not need > to remember to set the search_path, which I can avoid if I login as "role". I have not seen that conversation and I do not see it in the archive either. Is that off-list, different thread, something else? -- Adrian Klaver adrian.klaver@aklaver.com