pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas
Date: Fri, 10 Sep 2021 06:39:18 +0000
Message-ID: <E1mOaBy-0006mH-1P@gemulon.postgresql.org> (raw)

Revoke PUBLIC CREATE from public schema, now owned by pg_database_owner.

This switches the default ACL to what the documentation has recommended
since CVE-2018-1058.  Upgrades will carry forward any old ownership and
ACL.  Sites that declined the 2018 recommendation should take a fresh
look.  Recipes for commissioning a new database cluster from scratch may
need to create a schema, grant more privileges, etc.  Out-of-tree test
suites may require such updates.

Reviewed by Peter Eisentraut.

Discussion: https://postgr.es/m/20201031163518.GB4039133@rfd.leadboat.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b073c3ccd06e4cb845e121387a43faa8c68a7b62

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out |  2 +-
contrib/postgres_fdw/sql/postgres_fdw.sql      |  2 +-
doc/src/sgml/ddl.sgml                          | 56 ++++++++++++++------------
doc/src/sgml/user-manag.sgml                   | 19 ++++-----
src/bin/initdb/initdb.c                        |  3 +-
src/bin/pg_dump/pg_dump.c                      | 28 ++++++++-----
src/bin/pg_dump/t/002_pg_dump.pl               | 19 ++++-----
src/include/catalog/catversion.h               |  2 +-
src/include/catalog/pg_namespace.dat           |  2 +-
src/pl/plperl/expected/plperl_setup.out        |  4 ++
src/pl/plperl/sql/plperl_setup.sql             |  4 ++
src/test/regress/input/tablespace.source       |  5 ++-
src/test/regress/output/tablespace.source      |  4 +-
13 files changed, 86 insertions(+), 64 deletions(-)



view thread (20+ messages)  latest in thread

Message-ID: <E1mOaBy-0006mH-1P@gemulon.postgresql.org>
Permalink:  ../E1mOaBy-0006mH-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mOaBy-0006mH-1P@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: noah@leadboat.com
  Subject: Re: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas
  In-Reply-To: <E1mOaBy-0006mH-1P@gemulon.postgresql.org>
  References: <E1mOaBy-0006mH-1P@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