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 1mnSCJ-0000Mg-Jp for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Nov 2021 21:10:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnSCI-0004pp-CK for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Nov 2021 21:10:26 +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 1mnSCI-0004pg-2y for pgsql-hackers@lists.postgresql.org; Wed, 17 Nov 2021 21:10:26 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mnSCF-0006tL-MH for pgsql-hackers@postgresql.org; Wed, 17 Nov 2021 21:10:24 +0000 Received: by mail-pj1-x1030.google.com with SMTP id h24so3353634pjq.2 for ; Wed, 17 Nov 2021 13:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=KSfs3NfJcj+FSXRYaSKmqqWWzb6sLuFbAeMtgCCWnJQ=; b=1XTiE8OSMxfl9m82xFJUnbpKvcwJrqM7cAlHsMN6fP8ygjfOT9J3StR+pUsy98sNkk NGo0m63HWil2N1Xvf1OLhwP/usG3zcjnQo/fLdn2oFynAfUE9YZg6zggHGyFdR3oCUdO 6vjv83fm64oeT2Ly25EqId61VIOoZJIKdOQcTvibVQ/I2MrUsUNeixm6smwvged6113b aM3r7Jr3Xt9R9SX9C8KWdHjPZi6+gtmCTTl5z9jTebprRyswqZjM/m04f+xy4ekJBJ2N aLR32GlaLJMT/xXLpqhOkcS19Cvxhf/dbapOnHfIDYTcJ/c4Rf/iP2wpA9XXINslTSSi +VEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=KSfs3NfJcj+FSXRYaSKmqqWWzb6sLuFbAeMtgCCWnJQ=; b=ClieGeIeHbFPV1z1yYn+rgTIVlvTX0IqES5KUkfGjbKslj+Rhm3vloxsqF3YNQjLoE 0jcsVRbheZIdpJ+/qT9EAEUsW6nViyUg8KwXZ/cYVJNs7zSc5eCh4iLy6ssnYbMRBt1y qny2rSKgdCFJ996m46vjBh8E+5d8JAPcy7XX+LmW+LAFrBjNOW03WPwObtSr/n7Jbn+J pKjDiZPsOZFGLy8QY8bb/5YO1MBKZToa+7mxm5kyqHTzOMqfGumIy4Zzc+3O9y/vGngq 1fYg7NAujjK2JfiApUSVLCfgzfEpaqjMU2frmcA2YPZBV/0e9RSld74DSG9bP6S/Nvnb fwZQ== X-Gm-Message-State: AOAM532vDAuM4AYOQKwJd4LALxtFftP7JqaSmV25KY2J7/ucj0J5pM5Z 8Pe7r6C0gtOKiP4NSlZm16C1Fw== X-Google-Smtp-Source: ABdhPJzfEyvDf1jdinbe6YrhMU7uLFV0Nd7LW0Ko8wSDqrdb3mBpK4vPpuYJVm9Pu8j7cPgh+xcF0Q== X-Received: by 2002:a17:902:b615:b0:143:bbf0:aad0 with SMTP id b21-20020a170902b61500b00143bbf0aad0mr42497198pls.12.1637183422425; Wed, 17 Nov 2021 13:10:22 -0800 (PST) Received: from jdavis.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id u13sm511733pgp.27.2021.11.17.13.10.21 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Nov 2021 13:10:21 -0800 (PST) Message-ID: Subject: Re: Non-superuser subscription owners From: Jeff Davis To: Mark Dilger Cc: Andrew Dunstan , PostgreSQL-development , Robert Haas Date: Wed, 17 Nov 2021 13:10:20 -0800 In-Reply-To: References: <9DFC88D3-1300-4DE8-ACBC-4CEF84399A53@enterprisedb.com> <6BB4451E-7B1B-474C-BD1F-DB7531E720C6@enterprisedb.com> <6A2B0FF6-CC86-48CE-B0D3-5401AA5CFEA9@enterprisedb.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-11-17 at 10:48 -0800, Mark Dilger wrote: > GRANT *might* be part of some solution, but it is unclear to me how > best to do it. The various configuration parameters on subscriptions > entail different security concerns. We might take a fine-grained > approach and create a predefined role for each I think you misunderstood the idea: not using predefined roles, just plain old ordinary GRANT on a subscription object to ordinary roles. GRANT REFRESH ON SUBSCRIPTION sub1 TO nonsuper; This should be easy enough because the subscription is a real object, right? Regards, Jeff Davis