pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow users with BYPASSRLS to alter their own passwords.
Date: Tue, 03 Nov 2020 20:41:56 +0000
Message-ID: <E1ka37s-0005no-R9@gemulon.postgresql.org> (raw)

Allow users with BYPASSRLS to alter their own passwords.

The intention in commit 491c029db was to require superuserness to
change the BYPASSRLS property, but the actual effect of the coding
in AlterRole() was to require superuserness to change anything at all
about a BYPASSRLS role.  Other properties of a BYPASSRLS role should
be changeable under the same rules as for a normal role, though.

Fix that, and also take care of some documentation omissions related
to BYPASSRLS and REPLICATION role properties.

Tom Lane and Stephen Frost, per bug report from Wolfgang Walther.
Back-patch to all supported branches.

Discussion: https://postgr.es/m/a5548a9f-89ee-3167-129d-162b5985fcf8@technowledgy.de

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/768dbef0d49826c2e404ceb1567b3cc9e2bbc30a

Modified Files
--------------
doc/src/sgml/ref/alter_role.sgml  |  4 +++-
doc/src/sgml/ref/create_role.sgml | 11 +++++++++--
src/backend/commands/user.c       | 10 ++++++----
3 files changed, 18 insertions(+), 7 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1ka37s-0005no-R9@gemulon.postgresql.org>
Permalink:  ../E1ka37s-0005no-R9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ka37s-0005no-R9@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Allow users with BYPASSRLS to alter their own passwords.
  In-Reply-To: <E1ka37s-0005no-R9@gemulon.postgresql.org>
  References: <E1ka37s-0005no-R9@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox