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 1l35En-0005kY-4f for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 22:49:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l35EG-0006Rs-0d for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 22:48:32 +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 1l35EE-0006Rh-RD for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 22:48:30 +0000 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l35E8-0007M4-1u for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 22:48:29 +0000 Received: by mail-io1-xd32.google.com with SMTP id z22so14489972ioh.9 for ; Fri, 22 Jan 2021 14:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ahD3SPNjpLhu6krEqNrfJM640cUw1jnSwnQ1s1egZHI=; b=j4XagF8s4HiEFGYK95n5nsKUkn96URrgQB/fJwbNcGmmq2tXnTNXv9DbmI2oWEc5Zs xX6tH4exAAQ65YMytcL5CKH8AB6eoOOrgzrNqcvgFA4GpM51PRO1folrsbK4yBAPoJ9J v83FDAda3+F32cT+Mur6X6OAr9rU6+j20w6lfnFRMG2LNWpRFRO/FnqUaQ7KCo07YK6V QWf2r2i8Ny09neIDJLQPzSF3ES99j6cQZTadObUgUURniXgc3VZndFsQkHBRWZgzevSm 6u6/Q3Cs5Iwq417WPS1Nble/D9GMQLV7OfALFxXfeJ5F85TS4g742qJWFlQzhywC5g5k Orsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ahD3SPNjpLhu6krEqNrfJM640cUw1jnSwnQ1s1egZHI=; b=ebvvLBlBX6ZECtMFmx4z9VhGfH2VjtTxtVViWFcf/mfcU4qip91vEBYhQYb2fhzQns VockISiuOjKclagvogp1hq0nrd0Ogtg1NteHy4sWmxNpgiJS+EAgJSC+S4QIHgXddjKa mAxKrshDHORD7kJYyLK5xOGhSol9YSZ9p3KD5ifpinuSRdxeJyX/diSXZ0KULZ45OASA aVcrkE5RFEhReTmUnD50lQRm1PEK1F3ugJx9Eh67/DWmhDw3BjNy6rdMjKDhwH2v38oL FJvyDYL+WsesCRZhfyLzQarvaoO4LLlUO3IrZUuHYRP4EXFz99OlzW063rcRIw+27w7L Ltqg== X-Gm-Message-State: AOAM530tzV3NIH8h1l9D5pvDD8mFhnF9QYyWYBZLOeGbaNiC7vDym1t5 kjf2ZxI1qzGZtZvBFritR5PdigPCJck= X-Google-Smtp-Source: ABdhPJwEp1U5WvYMy5r5yLw3Noiq1dYwC+pN3HtwY7oSDs5KjtOTu1SKoEAwUKvbJuh+AZXPC9h2fQ== X-Received: by 2002:a92:8455:: with SMTP id l82mr2433039ild.40.1611355703051; Fri, 22 Jan 2021 14:48:23 -0800 (PST) Received: from ?IPv6:2601:681:5500:dde0:5928:5288:3618:3f11? ([2601:681:5500:dde0:5928:5288:3618:3f11]) by smtp.gmail.com with ESMTPSA id m69sm7175991ilb.86.2021.01.22.14.48.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jan 2021 14:48:22 -0800 (PST) Subject: Re: localhost ssl To: Adrian Klaver , "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: Rob Sargent Message-ID: Date: Fri, 22 Jan 2021 15:48:22 -0700 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: <4665f2de-d2a2-4623-8c61-0f42c899e8a3@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 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. 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".