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 1oYQGN-0001Lp-8A for pgsql-general@arkaria.postgresql.org; Wed, 14 Sep 2022 11:09:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYQGK-00075N-Tm for pgsql-general@arkaria.postgresql.org; Wed, 14 Sep 2022 11:09:00 +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 1oYQGK-00074p-Hn for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 11:09:00 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYQGD-0005wU-Fr for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 11:08:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663153730; bh=FdTS/L+TOy4ntqm06q8FMqzfFZSXhW5PHb+uIhLfeuw=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=f0LLOuEYQllv8gff0ha0NvNhM8VV4FMF1yqi2esLAq0n7x140NP/o3dleDpyMSunO dhy9Ny/UI1S3XJQAuCobA0oCynnlPPIW3nlBQRqooFFQHFmrPZDSAd9CvjhjRVSOJM BmdMn0XoFU2QVJlKvRUYIMtp7zJ8SGsG+eAo3kUc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([84.190.237.65]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MiJVG-1pDVe01rNu-00fRhT for ; Wed, 14 Sep 2022 13:08:50 +0200 Received: from ncq by hermes with local (Exim 4.94.2) (envelope-from ) id 1oYQG9-0007yi-8Q for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 13:08:49 +0200 Date: Wed, 14 Sep 2022 13:08:49 +0200 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: Is it possible to stop sessions killing eachother when they all authorize as the same role? Message-ID: References: <2F078227-5EEF-4553-89FF-046A6AF12F25@yugabyte.com> <1883844.1663044542@sss.pgh.pa.us> <0CAFB5D3-8EB2-4EE1-A50B-7CBFCB7D558D@yugabyte.com> <1AD29374-E9DD-4640-AE0C-882A20A909D9@yugabyte.com> <2384348.1663103458@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:IbwBP2y6pg0VYGMk8bpdYhbV1HZD4uA7Jetx0zuQnlUEpmFEqbk cbGy0LeIZ4VJWqv/rFcDWr5lVkt5G5EVNbHnvTGGUQPQ4thfKbnjFcsvw08yC7oBA8vr+/7 0+LPzbIZLhKBXd/i47GnEmcvJ2C6nJgWZU3W09ZmGE7VUsnNC9SNEbQkJXqgQ67wG8DTgco Q8kCb8abjXc0WVGf0G9Dg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Wi6sYAOfd/o=:1dMLgGTmiA30gRFhFfKRZ4 6Z45hS/mAb67LxYr3NhOQv0Id7EVAPxr6QZzCMGGx+bp3k7dMS/bkpfmKaCnUm5+D39ro0GjC QaVnf4L33Xl2gZ4zqewAvmYcUQO9BLiI9lripLlL2bmyq0iHn3AXuRn+SYeob/lqlqJhBIYQ8 rVR97ExWf9o1QZWzH6QzD/keH4WcIVexhShHqHjEv0MROAURRSIzlkY7ExOU2qnEur3Xz9gy7 24PusTmMbdmVxtJbz/bNdJ4U5+cDa7tcT9EQdCajNps2GC9PLYCG6mwqUyXAzDA0BotQvWh8Y nzKeYP6awoTzsMfgd3airb2KR9JEFDx/OlwJX0O0KvUnlinRiotxuTfvVkaeRfKJ4F/cCfQc3 /s8Brps+5YUfOK6LhSrS9TDgJn/IKiFQeBJdCKKhcTtyqDrf/4pmI3+qzFZgGjIvrKMbMh3NC DeTqS29ZHGq4XibMX+GS4m+VtJ1h4RSgoAcNL8HVjJku6sYQrEMB1Rd/m7wbMZ3JoTmTiIfKb 9PfPdkHOo8jr/VJXyVg6mlJSUQAfzWF2odGJVBrY6HFsCzzhgC4OoNirDeGFm2dugeY9PsXg0 XZhLdPn5iHLO0wIc2fV16n6RpJTdqSCQ8fz04RCWIFxVvwW3Op5ME+b/SS5kK5m2zhSms3GX0 te2zwlg6LSHBX3ePlF3GDEVXmhogNY5IQc/kxR2DHRcKkc27REnImGYBAoAtv4TmXBJJubX05 z+3tpVU3AoQDukBjDEPXwVoKcZhjk+yIpgoUak1KlX3EiXuXF/13BC8qYHkO3KQJjkK1QtI7S L9JXufueMeLLzMjGh63nakEqUvENOmHowV3lD5EeOUYeOs73JkS98FjvxIkx1PxPHols2HP6x EmiLbYMIOdGjG93fdxITarpqaIit9CLMoVhLR81aKwW+Hl67mE4ciwfpuYkVeuvse11wb/ZgO LgQZ59YqaVu2Yfy0Xfl0fAv9m9nMhaqNGnEHIwHpbpwHARMjBOxJJghQqg+NCZncr9AG7oNvK hKZOmVXDJaqEm6PmSSmffoAwKlOxhP1xGWwpjseEBB7ivhK+2Auof55bDxtQbjfZ4OZA98EmO Yivl147G+6OdSRfF2l6Mka6ZPeL66zPIUXBmiNdAG+FPM9kNH/GE/6BL8EOt+++0EVs/ObvNz 29SopU/Dt/INtlX/aBrWp/bQ/d Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Wed, Sep 14, 2022 at 10:10:30AM +0200 schrieb Karsten Hilbert: > Am Tue, Sep 13, 2022 at 05:10:58PM -0400 schrieb Tom Lane: > > > (I recall that somewhere we have some code that warns about no-op > > grants. I wonder if issuing a warning for no-op revokes would be > > helpful.) > > Surely, in the light of security a no-op revoke is > potentially more dangerous than a no-op grant. In the sense where no-op means "despite being revoked it is still granted by another grant" rather than "the revoke is a no-op because it is already revoked", that is. (although the latter can be used to inform on the first if the latter extends to all "levels" of revokage ... :-) Thanks, Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B