Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csvK3-0004cc-NW for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 17:54:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csvK2-0006Kv-T1 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2017 17:54:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csvIV-0001IY-At for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 17:52:47 +0000 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1csvIS-0002UY-FF for pgsql-hackers@postgresql.org; Tue, 28 Mar 2017 17:52:46 +0000 Received: by mail-qt0-x232.google.com with SMTP id i34so70968288qtc.0 for ; Tue, 28 Mar 2017 10:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IX8RIsbIj82z3Ej5BXIWAFFgmVXwAoq+vV8B0qGLwjA=; b=ruuTo9Tq+SMCsHnnp2dxfcbPbb6ktfcuib5kHgLB6UiTbYIxcvUDodUHn58FqGVCqK fCYflFx85XGkgxjPILZrEY4iECKUFS8fo+fGMXXoiXiYjojboRiYZrA7fEPmUY7zW2QM bcMXfLz/eUGIVwyXQg+cHO2Ed0+WQEryuxYSEVJjn2sSxmwNXa5QuGl7sA1hGnXZCVV7 ESWDnYdJYJ9qZbpNjIS20xCLo/vj1Sk8COty80Am8+trAWw469AMMDWzBI/4ci0+BB/x afasOYjnq9rmW/gAYJuy1ZtMh0NPooWn1guUoC/QHVjPDfEnDNhO0Hg3qdGJzCqlD6wR cYHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IX8RIsbIj82z3Ej5BXIWAFFgmVXwAoq+vV8B0qGLwjA=; b=MDjN8qIHx6N3R+32nZ6YJI5ijFYp4DeoIGihJ21xhta3sEctwkAXlMKO4p9ad6r1Ia 6Dj40IUryNIUUQKUdUjiytjvxivom7WNfHzX/kNyKvlt9hbri8I5sjlGt4sOmcS+ocCs l5tm/Pmd7fIRymTgTQLKlYLbadxtzoZWMrdw+kixCxh7A4PMqxCYNqUtcN79KYu9Gj/5 6s3hD0Xj5GW33XsHppLHKTBLKMlfGGQqb9Xu1EntEYbsTdXJ87E4g5dIfNbuwdM6cfJb rQ0VU1iy0vnFS48d83WfpWQ2RQ/hUWhxAMv4pwhV1TVcWllco7iKWzLA5F92QSYjR+9M PVLA== X-Gm-Message-State: AFeK/H1USAvKBHkgojJ/JWxkBgNxZ5DDFLGGa3scr1wuo9bmF0fa6QwtSnqPpO+60OguSQ== X-Received: by 10.200.37.208 with SMTP id f16mr26573388qtf.118.1490723562845; Tue, 28 Mar 2017 10:52:42 -0700 (PDT) Received: from [192.168.2.121] (24-113-198-113.wavecable.com. [24.113.198.113]) by smtp.gmail.com with ESMTPSA id y3sm3093654qke.59.2017.03.28.10.52.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Mar 2017 10:52:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Monitoring roles patch From: Mark Dilger In-Reply-To: Date: Tue, 28 Mar 2017 10:52:40 -0700 Cc: Dave Page , Peter Eisentraut , Stephen Frost , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170322131510.GC9812@tamriel.snowman.net> <20170323122335.GK9812@tamriel.snowman.net> To: Robert Haas X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > On Mar 28, 2017, at 9:55 AM, Robert Haas wrote: >=20 > On Tue, Mar 28, 2017 at 12:47 PM, Dave Page wrote: >>> I don't see any precedent in the code for having a hardcoded role, othe= r than >>> superuser, and allowing privileges based on a hardcoded test for member= ship >>> in that role. I'm struggling to think of all the security implications= of that. >>=20 >> This would be the first. >=20 > Isn't pg_signal_backend an existing precedent? Sorry, I meant to say that there is no precedent for allowing access to dat= a based on a hardcoded test for membership in a role other than superuser. All the locations that use pg_signal_backend are checking for something other than data access privileges. That distinction was clear to me in the context of= what I was saying, but I obviously didn't phrase it right in my email. mark --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers