From: Ian Barwick <ian.barwick@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: Magnus Hagander <magnus@hagander.net>
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: Fri, 7 Feb 2020 11:23:56 +0900
Message-ID: <31687170-2e93-0f2c-aca1-974db69460ea@2ndquadrant.com> (raw)
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>
On 2020/02/07 11:07, Andres Freund wrote:
> 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.
Thanks for the notification.
Points raised upthread seem reasonable enough; to be honest I was expecting
this patch to hang around a bit longer anway, because (as so often) there's
some aspect which wouldn't have occurred to me.
Regards
Ian Barwick
--
Ian Barwick https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
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: ian.barwick@2ndquadrant.com, andres@anarazel.de, magnus@hagander.net, michael@paquier.xyz, sfrost@snowman.net
Subject: Re: pgsql: Prevent running pg_basebackup as root
In-Reply-To: <31687170-2e93-0f2c-aca1-974db69460ea@2ndquadrant.com>
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> <31687170-2e93-0f2c-aca1-974db69460ea@2ndquadrant.com>
* 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