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 1pe8qN-0004Ut-Ck for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2023 06:18:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pe8qK-0008Sa-Si for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2023 06:18:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pe8qJ-0008SR-R0 for pgsql-hackers@lists.postgresql.org; Mon, 20 Mar 2023 06:18:04 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pe8qF-00032H-P0 for pgsql-hackers@lists.postgresql.org; Mon, 20 Mar 2023 06:18:03 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id A83215809C5; Mon, 20 Mar 2023 02:17:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 20 Mar 2023 02:17:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1679293074; x=1679300274; bh=voZ0mTT6I6QUsok6OagHpOobjkc79yuVwn0 EbnRqYhA=; b=Qs/gvxLxe0Do89SYrUQXggY/ECu9mfq5o+uvSB8V6xkjVwzNwGD JlWWiMBYEjbC3hA9/4Mu8hsbqWAsnQv9PKP4yl+nW6poLhTfB6WQzp8x5t1sCHRi kftcVALm942R446qbcluIhYB1FCqa1v7lsRoQbCJ9ZTLgY63tW2mo+NxPa6ewqQY 0QhAC1lH6YD4U7LEDK7J9Zwm9O+Kqkzh60oNH7SkKo/59SqTIYRKHhuvtD2cQQlG 5QRADHF28QSe/UiRGXyjboQmwd8aBjj2lCykFgQO53uV9WnGzCzGLnszxPVfn9c6 umZY/LiZ6oFKDa8vHSgzcdbSyDh9CIvB55A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefjedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Mar 2023 02:17:53 -0400 (EDT) Message-ID: Date: Mon, 20 Mar 2023 07:17:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Privileges on PUBLICATION Content-Language: en-US To: "Gregory Stark (as CFM)" , Antonin Houska Cc: pgsql-hackers@lists.postgresql.org, Euler Taveira , Amit Kapila References: <20330.1652105397@antos> <8a00e0e1-dc4e-422c-9dcf-664b16b18625@www.fastmail.com> <2810.1652171844@antos> <5859.1652423797@antos> <57022.1652867097@antos> <4c420c17-8570-4b52-b7f6-9ce3f53d7ef9@www.fastmail.com> <14292.1655733695@antos.home> <746c9a65-e2cc-2573-a50e-ab5ea884f680@enterprisedb.com> <1537.1667454192@antos> <2497.1667546930@antos> <043c52a4-c001-0201-94fc-305dffb8313e@enterprisedb.com> <3862.1668424068@antos> <94545.1669732512@antos> <54334.1671208627@antos> <485382af-1dff-b3b0-9ace-67bdd0082220@enterprisedb.com> <6778.1675252927@antos> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14.03.23 19:30, Gregory Stark (as CFM) wrote: > FYI this looks like it needs a rebase due to a conflict in copy.c and > an offset in pgoutput.c. > > Is there anything specific that still needs review or do you think > you've handled all Peter's concerns? In particular, is there "a > comprehensive description of what it is trying to do"? :) The latest versions of the patch have pretty much addressed my initial comments. The patch is structured and explained better now. Most extraneous or incomplete changes have been addressed. The problem now is that it's still a quite complicated patch that introduces a security feature. It still touches a number of subsystems on different levels of abstraction. This functionality is not of the kind, "if you don't use it it won't affect you", since it effectively pokes holes into the existing privileges checking in order to allow publication privileges checking to override it in some cases. It will take significant effort to do a complete analysis and testing on whether it is secure and robust. I don't think I will have time for that, and I don't think anyone will want to commit something like this at the last moment. We have already taken a number of things from earlier patches and committed them separately as refactorings. I don't see anything in the current patch anymore that we might want to take independently like that. So in summary I think it would be best to keep this patch around for PG17.