From: Andres Freund <andres@anarazel.de>
To: Magnus Hagander <magnus@hagander.net>
To: Ian Barwick <ian.barwick@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Prevent running pg_basebackup as root
Date: Thu, 6 Feb 2020 18:07:02 -0800
Message-ID: <20200207020702.o64l2i4mkv5us6oy@alap3.anarazel.de> (raw)
In-Reply-To: <CABUevEyjDjGFkQdTWQNPJFxe8zHH2b53DNtW-vKrxyuMRA0MuQ@mail.gmail.com>
References: <E1ixp9U-0005XS-59@gemulon.postgresql.org>
<20200205172259.GW3195@tamriel.snowman.net>
<20200206070417.GJ23913@paquier.xyz>
<CABUevEyjDjGFkQdTWQNPJFxe8zHH2b53DNtW-vKrxyuMRA0MuQ@mail.gmail.com>
Hi,
On 2020-02-06 13:02:07 +0100, Magnus Hagander wrote:
> I agree with Stephen that this seems to be misguided, and my vote is
> to revert.
+1. I honestly don't think we should increase the number of "root
disallowed" tools unless actually necessary.
Maybe that's looking too far into the future, but I'd like to see
improvements to pg_basebackup that make it integrate with root requiring
tooling, to do more efficient base backups. E.g. having pg_basebackup
handle start/stop backup and WAL handling, but do the actual backup of
the data via a snapshot mechanism (yes, one needs start/stop backup in
the general case, for multiple FSs), would be nice.
Btw, I think it's good form in a discussion like this to CC the original
author. I'll also add a reference to this discussion from the -hackers
thread.
Greetings,
Andres Freund
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: andres@anarazel.de, magnus@hagander.net, ian.barwick@2ndquadrant.com, michael@paquier.xyz, sfrost@snowman.net
Subject: Re: pgsql: Prevent running pg_basebackup as root
In-Reply-To: <20200207020702.o64l2i4mkv5us6oy@alap3.anarazel.de>
References: <E1ixp9U-0005XS-59@gemulon.postgresql.org> <20200205172259.GW3195@tamriel.snowman.net> <20200206070417.GJ23913@paquier.xyz> <CABUevEyjDjGFkQdTWQNPJFxe8zHH2b53DNtW-vKrxyuMRA0MuQ@mail.gmail.com> <20200207020702.o64l2i4mkv5us6oy@alap3.anarazel.de>
* 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