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 1mnN6y-0006hY-18 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Nov 2021 15:44:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnN6w-0006ra-5r for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Nov 2021 15:44:34 +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 1mnN6v-0006qx-Iy for pgsql-hackers@lists.postgresql.org; Wed, 17 Nov 2021 15:44:33 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mnN6s-0004Hb-Nj for pgsql-hackers@postgresql.org; Wed, 17 Nov 2021 15:44:32 +0000 Received: by mail-pg1-x529.google.com with SMTP id 200so2639961pga.1 for ; Wed, 17 Nov 2021 07:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6TO/j0OBHYRBQXejPe2Obm02/K7tlcbsT+czvbIFxcc=; b=lyWvuxhUHjNas8TiwJvm/YxB3FsQeD8O433qzHR4JMorATi2AhwkKI0QsJKJifZAlr 0o8IWK/IOffvdtsj/hR8liVSShUkxz94TpCzn3T6m6xjMIIh2Wh9KTgZL00b0l4tTIKc m0eDBKP1egQWs9XAdncFJlaldJqnSb/n5F6W4og5G7zTEC9mbKs8fPOXXFnGshO7W0xt fImFt0rOtHn5X78tyStYeL2TGaSJx5PWHYAO4Dizfylb6B5mgGWRbfF2vAaIIdl6sIyr mQgrpZWN+PY+mp07qKZHEAKwu5aeVR3GFhPkUQYG3TBRlmpkRe3k2hcv3d48P6DTt9QT TEVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6TO/j0OBHYRBQXejPe2Obm02/K7tlcbsT+czvbIFxcc=; b=ukUufNSeDxpx27gmeFc0hJZYA6kfM7XRhxF6YBWysFUrszggVI7OON4NnTmX2VS1XB XTzwa4EyHkXScBolBL2GKtqgxCpj28YlZJgPOBoUNW7YZDzVs8kl1PYlnYUaMScYVtjz KgO+zFz1e5YjsxaUoeX/FifjbnWXQ6Gk4nPy4/RGOMBbHl77cj/nHUzzv35b3czqG+KH ZRWKrpBDNhIQbREywUv/JQEaU925RJL2bRWwD9APPgPRzfI1ExlBuK3mVMLUeXc+zj3x rktKGaqgPuJRDHlWu7Q8LquzqC5/P5YJmIJqic+6nsJvy4pHIE9HJMFdtpOJzleUJiyI /fkQ== X-Gm-Message-State: AOAM532CRmNGU0eLlcfxhlCd6oQAzlxfpR0ZfZHaYM+s+nazQsop88hg KlwkbqSKYeCIwC6steXfdRGr7/hX/bgq71TLYIEaAHTrY+HFEVxcsJz2Qu4DXewUYR48YyGuOnj kD06oZPB6e0Gb3++VmCq8LLPQ9biqBphMxcuyXpz7pqDNSEA0EwUXmKxjer1UWfUCtAuwyA0AVG 5lNU/QIHpV7WnV2QqUERH2+Gtu6NNwyCZDnK/O X-Google-Smtp-Source: ABdhPJz87XVA5GYAq6hwTrnl7sqMzZGglAFH2supb6wZ+ExHpHfrHDlZhnV/lN2WMEdnZfE9q5scnw== X-Received: by 2002:a05:6a00:1a01:b0:47b:ae61:9bd1 with SMTP id g1-20020a056a001a0100b0047bae619bd1mr49429075pfv.0.1637163869151; Wed, 17 Nov 2021 07:44:29 -0800 (PST) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id p2sm71858pja.55.2021.11.17.07.44.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Nov 2021 07:44:28 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Non-superuser subscription owners From: Mark Dilger In-Reply-To: Date: Wed, 17 Nov 2021 07:44:27 -0800 Cc: Andrew Dunstan , PostgreSQL-development , Robert Haas Content-Transfer-Encoding: quoted-printable Message-Id: <6A2B0FF6-CC86-48CE-B0D3-5401AA5CFEA9@enterprisedb.com> References: <9DFC88D3-1300-4DE8-ACBC-4CEF84399A53@enterprisedb.com> <6BB4451E-7B1B-474C-BD1F-DB7531E720C6@enterprisedb.com> To: Jeff Davis X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 16, 2021, at 8:11 PM, Jeff Davis wrote: >=20 > On Wed, 2021-11-03 at 12:50 -0700, Mark Dilger wrote: >> The first two patches are virtually unchanged. The third updates the >> behavior of the apply workers, and updates the documentation to >> match. >=20 > v2-0001 corrects some surprises, but may create others. Why is = renaming > allowed, but not changing the options? What if we add new options, and > some of them seem benign for a non-superuser to change? The patch cannot anticipate which logical replication options may be = added to the project in some later commit. We can let that commit = adjust the behavior to allow the option if we agree it is sensible for = non-superusers to do so. > The commit message part of the patch says that it's to prevent non- > superusers from being able to (effectively) create subscriptions, but > don't we want privileged non-superusers to be able to create > subscriptions? Perhaps, but I don't think merely owning a subscription should entitle a = role to create new subscriptions. Administrators may quite = intentionally create low-power users, ones without access to anything = but a single table, or a single schema, as a means of restricting the = damage that a subscription might do (or more precisely, what the = publisher might do via the subscription.) It would be surprising if = that low-power user was then able to recreate the subscription into = something different. We should probably come back to this topic in a different patch, perhaps = a patch that introduces a new pg_manage_subscriptions role or such. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company