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 1lU5Xn-0003WC-8x for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Apr 2021 10:36:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lU5Xm-0004n8-2F for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Apr 2021 10:36:18 +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 1lU5Xl-0004mz-S1 for pgsql-hackers@lists.postgresql.org; Wed, 07 Apr 2021 10:36:17 +0000 Received: from mail-ed1-f46.google.com ([209.85.208.46]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lU5Xi-0000Sv-EA for pgsql-hackers@lists.postgresql.org; Wed, 07 Apr 2021 10:36:16 +0000 Received: by mail-ed1-f46.google.com with SMTP id r22so7711690edq.9 for ; Wed, 07 Apr 2021 03:36:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=l8OmATVM8azX5DQZW3ZYhb4dcwc3mt7m0Hy7jcWWDu0=; b=rV95J1GMTh6+sktlttyyVvgth48/GGaoV+qxv41sSUXeoqSq01DJjngDxBaXouBNFw //Yx+gH5uPRLpsh8+rYfyT1dz4xYY06EiRib0bOEMFn2UFlehrlshOR4ch+g7ahZZ1cJ JvGWuZ1gwtyb5W+xo20qhAs81T4b+ESkZaFv0xeeyntJW2r9m4pSvklA6osmrviYghr8 nDC6fQYW2Thlhq4kTlBG50x2SyFzQ30RQrJzSsATWNFZD1HlUD/9TWAaqld8KUFHR8Zu Q8xO0WNE6BQhPYVuLr6X50CTG/gRyGTpYBthw13OUQx+b6HpC/Cd8mPOWXh8+YKifVrm 0Zng== X-Gm-Message-State: AOAM531gSHPFalMTHzrdFFDbYpEa/G9k9J4g108O29gaHlfFWfxE15Wi //S0+8kaTVH5+GXS4jB8H5o= X-Google-Smtp-Source: ABdhPJx5guZpz7teQmWJaRU5KB1yX4woml8vcMbooC7f/ygljDM0CE3XLAVUYWOifXtPcuuLcHMq5g== X-Received: by 2002:a50:aa92:: with SMTP id q18mr3513792edc.385.1617791772849; Wed, 07 Apr 2021 03:36:12 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:3ba3:2b01:2b20:6fbc:d447:592]) by smtp.gmail.com with ESMTPSA id h23sm4267855ejd.103.2021.04.07.03.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 03:36:12 -0700 (PDT) Message-ID: <606d8b1c.1c69fb81.3df04.1a99@mx.google.com> X-Google-Original-Message-ID: <20210407103611.GD21506@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1lU5Xf-0005Id-7K; Wed, 07 Apr 2021 12:36:11 +0200 Date: Wed, 7 Apr 2021 12:36:11 +0200 From: Michael Banck To: Stephen Frost Cc: gkokolatos@pm.me, Anastasia Lubennikova , "pgsql-hackers@lists.postgresql.org" Subject: Re: New predefined roles- 'pg_read/write_all_data' References: <20200828003023.GU29590@tamriel.snowman.net> <159895771273.18329.10477215354702372718.pgcf@coridan.postgresql.org> <160397087449.1204.5186411958611164965.pgcf@coridan.postgresql.org> <20201029141959.GK16415@tamriel.snowman.net> <5a3e197e-3f6c-50e4-9774-c6b82b7151f1@postgrespro.ru> <20201123223147.GQ16415@tamriel.snowman.net> <4GHYHFHb6AQyOjxMZ47he7YvJSBAkZr968U31kr8a2GLlNFyXRH_-DJAjcL2Xh6jJ3TumkX44XkoeG3Utj5u8UA4thBUt9m87tv8WIDNoCg=@pm.me> <20210401200006.GV20766@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210401200006.GV20766@tamriel.snowman.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Thu, Apr 01, 2021 at 04:00:06PM -0400, Stephen Frost wrote: > diff --git a/doc/src/sgml/user-manag.sgml b/doc/src/sgml/user-manag.sgml > index d171b13236..fe0bdb7599 100644 > --- a/doc/src/sgml/user-manag.sgml > +++ b/doc/src/sgml/user-manag.sgml > @@ -518,6 +518,24 @@ DROP ROLE doomed_role; > > > > + > + pg_read_all_data > + Read all data (tables, views, sequences), as if having SELECT > + rights on those objects, and USAGE rights on all schemas, even without > + having it explicitly. This role does not have the role attribute > + BYPASSRLS set. If RLS is being used, an administrator > + may wish to set BYPASSRLS on roles which this role is > + GRANTed to. > + > + > + pg_write_all_data > + Write all data (tables, views, sequences), as if having INSERT, > + UPDATE, and DELETE rights on those objects, and USAGE rights on all > + schemas, even without having it explicitly. This role does not have the > + role attribute BYPASSRLS set. If RLS is being used, > + an administrator may wish to set BYPASSRLS on roles > + which this role is GRANTed to. > + Shouldn't those "SELECT", "INSERT" etc. be wrapped in tags? Michael -- Michael Banck Projektleiter / Senior Berater Tel.: +49 2166 9901-171 Fax: +49 2166 9901-100 Email: michael.banck@credativ.de credativ GmbH, HRB Mönchengladbach 12080 USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Sascha Heuer Unser Umgang mit personenbezogenen Daten unterliegt folgenden Bestimmungen: https://www.credativ.de/datenschutz